org.finra.jtaf.core.model.test
Class TestPath

java.lang.Object
  extended by 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


Field Summary
static String CURRENT
           
static String PARENT
           
static String SEPARATOR
           
 
Constructor Summary
TestPath(String path)
           
 
Method Summary
 String[] getComponents()
          TODO: It may be necessary to return a copy of the components
 String getNormalizedPath()
           
 String getPath()
          This is identical to toString
 boolean isAbsolute()
           
 boolean isRelative()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

TestPath

public TestPath(String path)
Method Detail

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.