Package hec.lang

Class DSSPathString

java.lang.Object
hec.lang.DSSPathString
All Implemented Interfaces:
Serializable

public class DSSPathString extends Object implements Serializable
Represents a DSS pathname string. It is not connected directly to any data the way of hec.heclib.dss.HecDSSPathname.
See Also:
  • Field Details

  • Constructor Details

    • DSSPathString

      public DSSPathString()
      Default constructor
    • DSSPathString

      public DSSPathString(String p)
      Constructs a DSSPathString based on pathname string
    • DSSPathString

      public DSSPathString(String a, String b, String c, String d, String e, String f)
      Constructs a DSSPathString based on six pathname part strings
    • DSSPathString

      public DSSPathString(String[] sa)
      Constructs a DSSPathString based on an array of six pathname part strings
  • Method Details

    • toString

      public String toString()
      Returns a pathname string. Returns "Invalid DSSPathname" the the path is invalid
      Overrides:
      toString in class Object
    • setPathname

      public void setPathname(String[] sa)
    • getPathname

      public String getPathname()
      Returns a pathname string. Returns null the the path is invalid
    • getPathname

      public static String getPathname(String[] parts)
    • setPathname

      public void setPathname(String a, String b, String c, String d, String e, String f)
    • setPathname

      public void setPathname(String pathname)
    • parsePathname

      public static String[] parsePathname(String pathname)
    • parsePathname

      public static int parsePathname(String pathname, int[] slashPositions)
    • getPart

      public String getPart(int p)
    • setPart

      public void setPart(String s, int p)
    • getAPart

      public String getAPart()
    • getBPart

      public String getBPart()
    • getCPart

      public String getCPart()
    • getDPart

      public String getDPart()
    • getEPart

      public String getEPart()
    • getFPart

      public String getFPart()
    • setAPart

      public void setAPart(String s)
    • setBPart

      public void setBPart(String s)
    • setCPart

      public void setCPart(String s)
    • setDPart

      public void setDPart(String s)
    • setEPart

      public void setEPart(String s)
    • setFPart

      public void setFPart(String s)
    • isValid

      public boolean isValid()
    • isValid

      public static boolean isValid(String pathname)
    • cleanPathParts

      public void cleanPathParts()
      limits size of path parts and total path length
    • cleanPathParts

      public static void cleanPathParts(String[] parts)
      limits size of path parts and total path length