Class AdnStandard

java.lang.Object
org.dlese.dpc.schemedit.standards.adn.AdnStandard

public class AdnStandard extends Object
Represents an controlled vocabulary item from the ADN educational metadata standard. ADN represents standards as strings delimited by semi-colons, which serve to break the text up into "levels". This class provides access to the string representation for each level.
Author:
ostwald

  • Constructor Details

    • AdnStandard

      public AdnStandard(String text)
      Constructor for the AdnStandard object given a ResultDoc instance
      Parameters:
      text - NOT YET DOCUMENTED
  • Method Details

    • getGradeRange

      public String getGradeRange()
    • getMatchKey

      public String getMatchKey()
      Gets the matchKey attribute of the AdnStandard object
      Returns:
      The matchKey value
    • getText

      public String getText()
      Gets the text attribute of the AdnStandard object, that is the entire string used to define this vocab item. The text attribute is colon-delimited to express hierarchical relations.
      Returns:
      The text value
    • getSplit

      public String getSplit(int level)
      Gets the specified segment of the colon-delimited text field.
      Parameters:
      level - NOT YET DOCUMENTED
      Returns:
      The split value
    • getLevels

      public int getLevels()
      Gets the levels attribute of the AdnStandard object
      Returns:
      The levels value
    • getLeaf

      public String getLeaf()
      Gets the last segment of the text attribute.
      Returns:
      The leaf value
    • toString

      public String toString()
      Description of the Method
      Overrides:
      toString in class Object
      Returns:
      Description of the Return Value
    • getComparator

      public AdnStandard.StandardComparator getComparator()
      Gets the comparator attribute of the AdnStandard object
      Returns:
      The comparator value
    • prtln

      protected void prtln(String s)
      Description of the Method
      Parameters:
      s - Description of the Parameter