Package hec.util
Class XMLUtilities
java.lang.Object
rma.util.RmaBaseXmlUtilities
hec.util.BaseXMLUtilities
hec.util.XMLUtilities
-
Field Summary
Fields inherited from class rma.util.RmaBaseXmlUtilities
DATA_ATTRIBUTE, DOUBLE_ARRAY_NODE_NAME, FLOAT_ARRAY_NODE_NAME, INDEX_ATTRIBUTE, INT_ARRAY_NODE_NAME, LENGTH_ATTRIBUTE, LOCAL_RECT_NODE, NAME_ATTRIBUTE, NUM_POINTS_ATTR, RANGE_ATTRIBUTE, STEP_ATTRIBUTE, STRING_ARRAY_NODE_NAME, TWO_D_DOUBLE_ARRAY_NODE_NAME, WORLD_LINE_NODE, WORLD_PT_NODE, WORLD_RECT_NODE, WORLD_REGION_CLOCKWISE, WORLD_REGION_NODE, WORLD_REGION_SELF_INTERSECTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jdom.DocumentloadDocument(HecFile file) create and load the XML Document from the HecFileImpl filestatic voidfor testingstatic booleansaveDocument(org.jdom.Document doc, HecFile file) save the XML Document doc to the File filestatic booleanwriteXMLFile(org.jdom.Document doc, String fileName) Methods inherited from class hec.util.BaseXMLUtilities
addChildContent, addChildContent, addChildContent, addChildContent, addChildContent, getChildElement, loadLocalRect, loadNamedType, loadWorldLine, loadWorldPt, loadWorldRect, loadWorldRegion, saveDescription, saveLocalRect, saveNamedType, saveWorldLine, saveWorldPt, saveWorldRect, saveWorldRegion, setDescriptionMethods inherited from class rma.util.RmaBaseXmlUtilities
addAttributes, addXMLSchemaNamespaceDeclaration, addXSDLocation, addXSLTLocation, attributeListToMap, buildElement, buildElement, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, createArrayElements, displayArrays, getAttributeValueAsBoolean, getAttributeValueAsDouble, getAttributeValueAsFloat, getAttributeValueAsInt, getAttributeValueAsLong, getAttributeValueAsShort, getChildElementAsBoolean, getChildElementAsColor, getChildElementAsDouble, getChildElementAsInt, getChildElementAsLong, getChildElementAsString, getChildElementAsString, getChildElementAttribute, getContentAsBoolean, getContentAsDouble, getContentAsInt, getContentAsLong, getContentAsString, getContentAsString, getDescription, getDoubleArrayElements, getFloatArrayElements, getIntArrayElements, getOrCreateChild, getStepSize, getStringArrayElements, loadColor, loadDocument, saveChildElement, saveChildElement, saveChildElement, saveChildElement, saveColor, saveDescription, saveWindowSizeAndLocation, setAttributeValueAsDouble, setAttributeValueAsLong, setChildElementAsColor, setChildElementAsDouble, setChildElementAsInt, setChildElementAttribute, setWindowSizeAndLocation, toXmlString, toXmlString
-
Constructor Details
-
XMLUtilities
public XMLUtilities()
-
-
Method Details
-
main
for testing- Parameters:
args-
-
writeXMLFile
-
saveDocument
save the XML Document doc to the File file- Parameters:
doc- XML Document to savefile- RMAFile to save to- Returns:
- true if the document was written successfully.
-
loadDocument
create and load the XML Document from the HecFileImpl file- Parameters:
file- the file containing an XML document- Returns:
- the Document if the load was successful or null
-