public abstract class DestinationPathManager extends Object
Abstract DestinationPathManager class.
Constructor and Description |
---|
DestinationPathManager() |
Modifier and Type | Method and Description |
---|---|
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
|
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
|
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 removeorg.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 removeorg.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.Copyright © 2017. All rights reserved.