Package gov.nasa.pds.model.plugin
Class LDDDOMParser
- java.lang.Object
-
- gov.nasa.pds.model.plugin.LDDDOMParser
-
public class LDDDOMParser extends Object
Parses an XML document - Local_DD
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LDDDOMParser.TermEntryQMObject
-
Constructor Summary
Constructors Constructor Description LDDDOMParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishCloneOfLDDUserAttributes()
String
getClassWord(String deName)
get the Data Element Concept (DEC) - data element side - from the attribute class word - if the data element name is a class word, return it, e.g.String
getDataConceptFromDataType(String lValueType)
get the conceptual domain (CD) from the data typeString
getDescriptorWord(boolean isValue, String deName)
void
getLocalDD()
void
getLocalDDPhase2()
void
getLocalDDPhase3()
void
OverwriteFrom11179DataDict()
void
printAttr(DOMAttr lDOMAttr)
void
printClass(DOMClass lDOMClass)
void
printDebugAttribute(DOMAttr lDOMAttr, String note)
void
printDebugClass(DOMClass lDOMClass, String note)
void
printDebugProperty(DOMProp lDOMProp, String note)
void
printDebugPropertyArr(ArrayList<DOMProp> lDOMPropArr, String note)
void
printDocumentHeader(SchemaFileDefn lSchemaFileDefn)
void
printDocumentSummary()
void
printLine(int lLevel, String lLeftPart, String lRightPart)
void
printParsedHeader(SchemaFileDefn lSchemaFileDefn)
void
printProtegeClassBegin(String lName, String lDefinition, String lSuperClass)
void
printProtegeClassEnd()
void
printProtegePontAttr(DOMAttr lDOMAttr)
void
printProtegePontAttrValues(DOMAttr lDOMAttr)
void
validateAssociationCardinalities(String lMinCard, String lMaxCard, String lLocalIdentifier)
void
validateLDDAttributes()
void
writeLocalDDFiles(SchemaFileDefn lSchemaFileDefn)
-
-
-
Method Detail
-
getLocalDD
public void getLocalDD() throws IOException
- Throws:
IOException
-
getLocalDDPhase2
public void getLocalDDPhase2()
-
getLocalDDPhase3
public void getLocalDDPhase3()
-
OverwriteFrom11179DataDict
public void OverwriteFrom11179DataDict()
-
writeLocalDDFiles
public void writeLocalDDFiles(SchemaFileDefn lSchemaFileDefn) throws IOException
- Throws:
IOException
-
printDocumentHeader
public void printDocumentHeader(SchemaFileDefn lSchemaFileDefn)
-
printParsedHeader
public void printParsedHeader(SchemaFileDefn lSchemaFileDefn)
-
printDocumentSummary
public void printDocumentSummary()
-
printAttr
public void printAttr(DOMAttr lDOMAttr)
-
printClass
public void printClass(DOMClass lDOMClass)
-
finishCloneOfLDDUserAttributes
public void finishCloneOfLDDUserAttributes()
-
validateLDDAttributes
public void validateLDDAttributes()
-
validateAssociationCardinalities
public void validateAssociationCardinalities(String lMinCard, String lMaxCard, String lLocalIdentifier)
-
getClassWord
public String getClassWord(String deName)
get the Data Element Concept (DEC) - data element side - from the attribute class word - if the data element name is a class word, return it, e.g. NAME - if the data element name ends in a class word, return it, e.g. mission_NAME - if the data element name ends in an 'S', then it is a COUNT. - otherwise the class word is assumed to be VALUE, return the last token, e.g. emission_ANGLE, filtered through valid concept list.
-
getDataConceptFromDataType
public String getDataConceptFromDataType(String lValueType)
get the conceptual domain (CD) from the data type
-
printProtegePontAttr
public void printProtegePontAttr(DOMAttr lDOMAttr)
-
printProtegePontAttrValues
public void printProtegePontAttrValues(DOMAttr lDOMAttr)
-
printProtegeClassBegin
public void printProtegeClassBegin(String lName, String lDefinition, String lSuperClass)
-
printProtegeClassEnd
public void printProtegeClassEnd()
-
printDebugPropertyArr
public void printDebugPropertyArr(ArrayList<DOMProp> lDOMPropArr, String note)
-
-