Class AsnToAdnMapper
java.lang.Object
org.dlese.dpc.schemedit.standards.adn.AsnToAdnMapper
Provides services for mapping between different standards formats, namely ASN and ADN (dlese), as well as
convenience methods for translating between the different gradeRange representations.
- Author:
- Jonathan Ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdnText(String asnId) Gets the adnText corresponding to asnIdGiven adnText, return asnIdgetAsfText(String asnId) Gets the asnText corresponding to asnIdintgetEndGrade(String gradeRange) Gets the endGrade attribute of the AsnToAdnMapper objectgetGradeRangeLabel(String gradeRangeValue) Gets the label (for UI purposes) of a gradeRange value.Returns unordered set of registered gradeRanges represented as controlled DLESE vocab (e.g., "DLESE:Primary elementary") corresponding to the grades represented by ASF standards, namely, K-12.getIds()Returns unordered set containing all registered asnIds;intgetStartGrade(String gradeRange) Gets the startGrade attribute of the AsnToAdnMapper objectstatic voidThe main program for the AsnToAdnMapper class
-
Constructor Details
-
AsnToAdnMapper
Constructor for the AsnToAdnMapper object- Parameters:
path- path to xml file containing mappings from ansId to ansText and adnText
-
-
Method Details
-
getSource
-
getAsfId
Given adnText, return asnId- Parameters:
adnText- NOT YET DOCUMENTED- Returns:
- The asnId value
-
getAsfText
Gets the asnText corresponding to asnId- Parameters:
asnId- NOT YET DOCUMENTED- Returns:
- The asnText value
-
getAdnText
Gets the adnText corresponding to asnId- Parameters:
asnId- NOT YET DOCUMENTED- Returns:
- The adnText value
-
getIds
Returns unordered set containing all registered asnIds;- Returns:
- The ids value
-
main
The main program for the AsnToAdnMapper class- Parameters:
args- The command line arguments
-
getGradeRanges
Returns unordered set of registered gradeRanges represented as controlled DLESE vocab (e.g., "DLESE:Primary elementary") corresponding to the grades represented by ASF standards, namely, K-12.- Returns:
- The gradeRanges value
-
getGradeRangeLabel
Gets the label (for UI purposes) of a gradeRange value. E.g., for the value of "DLESE:Primary elementary", the label is "Primary elementary".- Parameters:
gradeRangeValue- NOT YET DOCUMENTED- Returns:
- The gradeRangeLabel value
-
getStartGrade
Gets the startGrade attribute of the AsnToAdnMapper object- Parameters:
gradeRange- NOT YET DOCUMENTED- Returns:
- The startGrade value
-
getEndGrade
Gets the endGrade attribute of the AsnToAdnMapper object- Parameters:
gradeRange- NOT YET DOCUMENTED- Returns:
- The endGrade value
-