Package hec.rss.model

Class XMLManager

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, LockableObject, MessagePrinter, TsRecordContainer, Serializable, Cloneable, Comparable, Observer, mil.army.usace.hec.rmi.csinterface.CallBackInterface, rma.lang.Modifiable
Direct Known Subclasses:
ReportIntervalManager

public abstract class XMLManager extends Manager
See Also:
  • Constructor Details

    • XMLManager

      public XMLManager()
  • Method Details

    • init

      public void init()
      Specified by:
      init in class Manager
      See Also:
    • saveDescription

      protected void saveDescription(org.jdom.Element parent)
      save the NamedType's description. This saves the description as an Element with each line of description stored as a child Element. XML doesn't preserve the newlines when just an attribute is used.
      Parameters:
      parent - the parent to add the description Element to.
    • loadDescription

      protected void loadDescription(org.jdom.Element descElem)
      set the NamedType's description from the Element descElem.
      Parameters:
      descElem - the Element that holds the NamedType's description as created by saveDescription(Element)
    • saveDocument

      protected boolean saveDocument(org.jdom.Document doc, HecFile file)
      save the XML Document doc to the File file
      Parameters:
      doc - XML Document to save
      file - RMAFile to save to
      Returns:
      true if the document was written successfully.
    • readFile

      public boolean readFile(Identifier id)
      Overrides:
      readFile in class Manager
    • loadDocument

      protected abstract boolean loadDocument(org.jdom.Document doc)
      Parameters:
      doc -
      Returns: