|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.DestinationPathManager
public abstract class DestinationPathManager
Abstract DestinationPathManager class.
| Field Summary | |
|---|---|
protected InputStream |
configIn
|
| Constructor Summary | |
|---|---|
DestinationPathManager()
|
|
| Method Summary | |
|---|---|
void |
addPath(Path newPath)
addPath |
Path |
getPath(String pathName)
getPath |
Map<String,Path> |
getPaths()
getPaths |
Collection<String> |
getTargetCommands(Path path,
int index,
String target)
getTargetCommands |
Target[] |
getTargetList(int index,
Path path)
getTargetList |
protected void |
parseXML(InputStream stream)
parseXML |
protected void |
parseXML(Reader reader)
Deprecated. |
boolean |
pathHasTarget(Path path,
String target)
pathHasTarget |
void |
removePath(Path path)
Removes a Path from the xml file. |
void |
removePath(String name)
Removes a Path form the xml file based on its name |
void |
replacePath(String oldName,
Path newPath)
replacePath |
void |
saveCurrent()
saveCurrent |
protected abstract void |
saveXML(String writerString)
saveXML |
abstract void |
update()
update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InputStream configIn
| Constructor Detail |
|---|
public DestinationPathManager()
| Method Detail |
|---|
@Deprecated
protected void parseXML(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
parseXML
reader - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
protected void parseXML(InputStream stream)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
parseXML
stream - a InputStream object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public Path getPath(String pathName)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
getPath
pathName - a String object.
Path object.
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public Map<String,Path> getPaths()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
getPaths
Map object.
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public Collection<String> getTargetCommands(Path path,
int index,
String target)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
getTargetCommands
path - a Path object.index - a int.target - a String object.
Collection object.
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public Target[] getTargetList(int index,
Path path)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
getTargetList
index - a int.path - a Path object.
Target objects.
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public boolean pathHasTarget(Path path,
String target)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
pathHasTarget
path - a Path object.target - a String object.
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public void addPath(Path newPath)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
addPath
newPath - a Path object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
public void replacePath(String oldName,
Path newPath)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
replacePath
oldName - a String object.newPath - a Path object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
public void removePath(Path path)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
path - the path to remove
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
public void removePath(String name)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
name - the name of the path to remove
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
public void saveCurrent()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
saveCurrent
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
protected abstract void saveXML(String writerString)
throws IOException
saveXML
writerString - a String object.
IOException - if any.
public abstract void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
FileNotFoundException
update
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
FileNotFoundException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||