DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.adn
Class AdnStandard

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


Nested Class Summary
 class AdnStandard.StandardComparator
          Description of the Class
 
Constructor Summary
AdnStandard(String text)
          Constructor for the AdnStandard object given a ResultDoc instance
 
Method Summary
 AdnStandard.StandardComparator getComparator()
          Gets the comparator attribute of the AdnStandard object
 String getGradeRange()
           
 String getLeaf()
          Gets the last segment of the text attribute.
 int getLevels()
          Gets the levels attribute of the AdnStandard object
 String getMatchKey()
          Gets the matchKey attribute of the AdnStandard object
 String getSplit(int level)
          Gets the specified segment of the colon-delimited text field.
 String getText()
          Gets the text attribute of the AdnStandard object, that is the entire string used to define this vocab item.
protected  void prtln(String s)
          Description of the Method
 String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdnStandard

public AdnStandard(String text)
Constructor for the AdnStandard object given a ResultDoc instance

Parameters:
text - NOT YET DOCUMENTED
Method Detail

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

DLESE Tools
v1.6.0