org.finra.jtaf.core.model.test
Class TestPath
java.lang.Object
org.finra.jtaf.core.model.test.TestPath
public class TestPath
- extends Object
Handles basic path-related tasks:
- Removes unnecessary '/' characters
- Determines if the path is absolute
- Splits the components
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
CURRENT
public static final String CURRENT
- See Also:
- Constant Field Values
PARENT
public static final String PARENT
- See Also:
- Constant Field Values
TestPath
public TestPath(String path)
isAbsolute
public final boolean isAbsolute()
- Returns:
- True if this is an absolute path; false otherwise
isRelative
public final boolean isRelative()
- Returns:
- True if this is a relative path; false otherwise
getPath
public final String getPath()
- This is identical to toString
- Returns:
getNormalizedPath
public final String getNormalizedPath()
- Returns:
- The path wo/ duplicate / characters
getComponents
public String[] getComponents()
- TODO: It may be necessary to return a copy of the components
- Returns:
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014. All rights reserved.