Package hec.lang
Class DSSPathString
java.lang.Object
hec.lang.DSSPathString
- All Implemented Interfaces:
Serializable
Represents a DSS pathname string. It is not connected directly
to any data the way of hec.heclib.dss.HecDSSPathname.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructs a DSSPathString based on pathname stringDSSPathString(String[] sa) Constructs a DSSPathString based on an array of six pathname part stringsConstructs a DSSPathString based on six pathname part strings -
Method Summary
Modifier and TypeMethodDescriptionvoidlimits size of path parts and total path lengthstatic voidcleanPathParts(String[] parts) limits size of path parts and total path lengthgetAPart()getBPart()getCPart()getDPart()getEPart()getFPart()getPart(int p) Returns a pathname string.static StringgetPathname(String[] parts) booleanisValid()static booleanstatic String[]parsePathname(String pathname) static intparsePathname(String pathname, int[] slashPositions) voidvoidvoidvoidvoidvoidvoidvoidsetPathname(String pathname) voidsetPathname(String[] sa) voidtoString()Returns a pathname string.
-
Field Details
-
APART
public static final int APART- See Also:
-
BPART
public static final int BPART- See Also:
-
CPART
public static final int CPART- See Also:
-
DPART
public static final int DPART- See Also:
-
EPART
public static final int EPART- See Also:
-
FPART
public static final int FPART- See Also:
-
MAX_PART_LEN
public static final int MAX_PART_LEN- See Also:
-
MAX_PATH_LEN
public static final int MAX_PATH_LEN- See Also:
-
DELIM
- See Also:
-
-
Constructor Details
-
DSSPathString
public DSSPathString()Default constructor -
DSSPathString
Constructs a DSSPathString based on pathname string -
DSSPathString
Constructs a DSSPathString based on six pathname part strings -
DSSPathString
Constructs a DSSPathString based on an array of six pathname part strings
-
-
Method Details
-
toString
Returns a pathname string. Returns "Invalid DSSPathname" the the path is invalid -
setPathname
-
getPathname
Returns a pathname string. Returns null the the path is invalid -
getPathname
-
setPathname
-
setPathname
-
parsePathname
-
parsePathname
-
getPart
-
setPart
-
getAPart
-
getBPart
-
getCPart
-
getDPart
-
getEPart
-
getFPart
-
setAPart
-
setBPart
-
setCPart
-
setDPart
-
setEPart
-
setFPart
-
isValid
public boolean isValid() -
isValid
-
cleanPathParts
public void cleanPathParts()limits size of path parts and total path length -
cleanPathParts
limits size of path parts and total path length
-