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 IOException
parseXML
stream
- a InputStream
object.IOException
public Path getPath(String pathName) throws IOException
getPath
pathName
- a String
object.Path
object.IOException
- if any.public Map<String,Path> getPaths() throws IOException
getPaths
Map
object.IOException
- if any.public Collection<String> getTargetCommands(Path path, int index, String target) throws IOException
getTargetCommands
path
- a Path
object.index
- a int.target
- a String
object.Collection
object.IOException
- if any.public Target[] getTargetList(int index, Path path) throws IOException
getTargetList
index
- a int.path
- a Path
object.Target
objects.IOException
- if any.public boolean pathHasTarget(Path path, String target) throws IOException
pathHasTarget
path
- a Path
object.target
- a String
object.IOException
- if any.public void addPath(Path newPath) throws IOException
addPath
newPath
- a Path
object.IOException
- if any.public void replacePath(String oldName, Path newPath) throws IOException
replacePath
oldName
- a String
object.newPath
- a Path
object.IOException
- if any.public void removePath(Path path) throws IOException
path
- the path to removeIOException
IOException
- if any.public void removePath(String name) throws IOException
name
- the name of the path to removeIOException
IOException
- if any.public void saveCurrent() throws IOException
saveCurrent
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, FileNotFoundException
update
IOException
- if any.FileNotFoundException
- if any.Copyright © 2021. All rights reserved.