Class PathEnvironment.Entry
- java.lang.Object
-
- net.ssehub.easy.producer.core.persistence.datatypes.PathEnvironment.Entry
-
- Enclosing class:
- PathEnvironment
private class PathEnvironment.Entry extends java.lang.ObjectDefines a mapping entry consisting of an unique symbolic name and a set of paths.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String name, java.lang.String[] paths)Creates a new entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(java.lang.String[] paths)Adds the given paths.private voidconvertPaths(java.lang.String[] paths)Converts the paths to independent paths.(package private) java.lang.StringgetName()Returns the name of this mapping.(package private) java.io.FilemakeAbsolute(java.lang.String location)Makes the given location absolute.(package private) java.lang.StringmakeRelative(java.io.File location)Makes the given location relative.java.lang.StringtoString()Returns a textual representation of this object.
-
-
-
Method Detail
-
convertPaths
private void convertPaths(java.lang.String[] paths)
Converts the paths to independent paths.- Parameters:
paths- the pats to be converted
-
makeRelative
java.lang.String makeRelative(java.io.File location)
Makes the given location relative.- Parameters:
location- the location to make relative- Returns:
- the relative location or null if the location cannot be made relative by this entry
-
makeAbsolute
java.io.File makeAbsolute(java.lang.String location)
Makes the given location absolute.- Parameters:
location- the location to make absolute- Returns:
- the absolute location or null if the location cannot be made absolute by this entry
-
getName
java.lang.String getName()
Returns the name of this mapping.- Returns:
- the name
-
add
void add(java.lang.String[] paths)
Adds the given paths.- Parameters:
paths- the paths to add
-
toString
public java.lang.String toString()
Returns a textual representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- a textual representation
-
-