Package gov.nasa.pds.model.plugin
Class DOMInfoModel
- java.lang.Object
-
- gov.nasa.pds.model.plugin.DOMInfoModel
-
public abstract class DOMInfoModel extends Object
-
-
Constructor Summary
Constructors Constructor Description DOMInfoModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
checkForFundamentalStructure(String lName)
return a fundamental structurestatic DOMAttr
cloneDOMAttr(String lClassNameSpaceIdNC, String lClassTitle, String lAttrNameSpaceIdNC, String lAttrTitle, DOMAttr lOrgAttr)
static void
DOMAttrWriter(DOMAttr attr, PrintWriter prDOMWriter)
print one attributestatic void
DOMPropWriter(DOMProp lProp, PrintWriter prDOMWrite)
static ArrayList<DOMAttr>
getAllAttrRecurse(ArrayList<DOMAttr> lAttrArr, ArrayList<DOMClass> visitedClass, DOMClass lClass)
Return all attributes in a class - recurse down through all associations.static ArrayList<String>
getAllRefAssocType(ArrayList<DOMAttr> lAttrArr)
static ArrayList<DOMAttr>
getAttArrByTitleStewardClassSteward()
static String
getAttrIdentifier(String lClassNameSpaceIdNC, String lClassTitle, String lAttrNameSpaceIdNC, String lAttrTitle)
return an attribute's identifierstatic String
getClassIdentifier(String lClassNameSpaceIdNC, String lClassTitle)
return a class's identifierstatic ArrayList<DOMAttr>
getMasterDOMAttrArr()
static ArrayList<DOMClass>
getMasterDOMClassArr()
getters and settersstatic ArrayList<DOMDataType>
getMasterDOMDataTypeArr()
static ArrayList<DOMProp>
getMasterDOMPropArr()
static ArrayList<DOMUnit>
getMasterDOMUnitArr()
static ArrayList<String>
getMultipleValue(ArrayList<String> valArr)
get multiple values from a value array;static String
getNextClassOrder()
static String
getNextGroupNum()
static String
getNextUId()
return the next uidstatic ArrayList<DOMProp>
getPropArrByTitleStewardClassSteward()
static String
getPropMapRDFIdentifier(String lInputIdentifier)
return property map's rdfIdentifierstatic String
getRuleRDFIdentifier(String lClassNameSpaceIdNC, String lClassTitle, String lAttrNameSpaceIdNC, String lAttrTitle)
return rules's rdfIdentifierstatic String
getSingletonAttrValue(ArrayList<String> valarr)
get a singleton value from a value array, single if multiple valuestatic String
getSingletonValueUpdate(ArrayList<String> valarr, String oVal)
get a singleton value from a value array, update only if oVal is TBDstatic ArrayList<gov.nasa.pds.model.plugin.DOMAssocClassDefn>
getSortedAlphaClassAssocClassArr(DOMClass lClass)
static String
getSortId(Integer iseq)
void
initInfoModel()
initializestatic boolean
isAttInactive(String lIdentifier)
static void
printWrappedTextArr(ArrayList<String> lLineArr, PrintWriter prXML)
static void
reset()
static void
resetClassOrder()
int
String2Int(String s1)
Convert String to intstatic ArrayList<String>
wrapTextNew(String lString, int beginOffset, int endOffset)
wrap a text string
-
-
-
Method Detail
-
initInfoModel
public void initInfoModel()
initialize
-
reset
public static void reset()
-
getMasterDOMDataTypeArr
public static ArrayList<DOMDataType> getMasterDOMDataTypeArr()
-
isAttInactive
public static boolean isAttInactive(String lIdentifier)
-
checkForFundamentalStructure
public String checkForFundamentalStructure(String lName)
return a fundamental structure
-
getNextUId
public static String getNextUId()
return the next uid
-
getNextClassOrder
public static String getNextClassOrder()
-
getNextGroupNum
public static String getNextGroupNum()
-
resetClassOrder
public static void resetClassOrder()
-
getClassIdentifier
public static String getClassIdentifier(String lClassNameSpaceIdNC, String lClassTitle)
return a class's identifier
-
getAttrIdentifier
public static String getAttrIdentifier(String lClassNameSpaceIdNC, String lClassTitle, String lAttrNameSpaceIdNC, String lAttrTitle)
return an attribute's identifier
-
getRuleRDFIdentifier
public static String getRuleRDFIdentifier(String lClassNameSpaceIdNC, String lClassTitle, String lAttrNameSpaceIdNC, String lAttrTitle)
return rules's rdfIdentifier
-
getPropMapRDFIdentifier
public static String getPropMapRDFIdentifier(String lInputIdentifier)
return property map's rdfIdentifier
-
wrapTextNew
public static ArrayList<String> wrapTextNew(String lString, int beginOffset, int endOffset)
wrap a text string
-
printWrappedTextArr
public static void printWrappedTextArr(ArrayList<String> lLineArr, PrintWriter prXML) throws IOException
- Throws:
IOException
-
String2Int
public int String2Int(String s1)
Convert String to int
-
getSingletonAttrValue
public static String getSingletonAttrValue(ArrayList<String> valarr)
get a singleton value from a value array, single if multiple value
-
getSingletonValueUpdate
public static String getSingletonValueUpdate(ArrayList<String> valarr, String oVal)
get a singleton value from a value array, update only if oVal is TBD
-
getMultipleValue
public static ArrayList<String> getMultipleValue(ArrayList<String> valArr)
get multiple values from a value array;
-
getAllAttrRecurse
public static ArrayList<DOMAttr> getAllAttrRecurse(ArrayList<DOMAttr> lAttrArr, ArrayList<DOMClass> visitedClass, DOMClass lClass)
Return all attributes in a class - recurse down through all associations.
-
cloneDOMAttr
public static DOMAttr cloneDOMAttr(String lClassNameSpaceIdNC, String lClassTitle, String lAttrNameSpaceIdNC, String lAttrTitle, DOMAttr lOrgAttr)
-
getSortedAlphaClassAssocClassArr
public static ArrayList<gov.nasa.pds.model.plugin.DOMAssocClassDefn> getSortedAlphaClassAssocClassArr(DOMClass lClass)
-
getAttArrByTitleStewardClassSteward
public static ArrayList<DOMAttr> getAttArrByTitleStewardClassSteward()
-
getPropArrByTitleStewardClassSteward
public static ArrayList<DOMProp> getPropArrByTitleStewardClassSteward()
-
DOMAttrWriter
public static void DOMAttrWriter(DOMAttr attr, PrintWriter prDOMWriter)
print one attribute
-
DOMPropWriter
public static void DOMPropWriter(DOMProp lProp, PrintWriter prDOMWrite)
-
-