Class LrgsStatusSnapshotXio

java.lang.Object
lrgs.statusxml.LrgsStatusSnapshotXio
All Implemented Interfaces:
TaggedBooleanOwner, TaggedLongOwner, TaggedStringOwner, XmlObjectParser, XmlObjectWriter

public class LrgsStatusSnapshotXio extends Object implements XmlObjectParser, TaggedBooleanOwner, TaggedLongOwner, TaggedStringOwner, XmlObjectWriter
This class maps the DECODES XML representation for LrgsStatusSnapshot elements.
  • Constructor Details

    • LrgsStatusSnapshotXio

      public LrgsStatusSnapshotXio(LrgsStatusSnapshotExt lsse)
      Construct parser.
      Parameters:
      lsse - the LrgsStatusSnapshotExt to populate from XML data
  • Method Details

    • myName

      public String myName()
      Specified by:
      myName in interface XmlObjectWriter
      Returns:
      XML tag for this element
    • characters

      public void characters(char[] ch, int start, int length) throws SAXException
      No content characters expected -- only sub-elements.
      Specified by:
      characters in interface XmlObjectParser
      Parameters:
      ch - the characters
      start - the start
      length - the length
      Throws:
      SAXException
    • startElement

      public void startElement(XmlHierarchyParser hier, String namespaceURI, String localName, String qname, Attributes atts) throws SAXException
      Called when sub-element seen under Archive Statistics.
      Specified by:
      startElement in interface XmlObjectParser
      Parameters:
      hier - the parser stack
      namespaceURI - ignored
      localName - name of the new element
      qname - ignored
      atts - attributes from the new element
      Throws:
      SAXException
    • endElement

      public void endElement(XmlHierarchyParser hier, String namespaceURI, String localName, String qname) throws SAXException
      Signals the end of the current element.
      Specified by:
      endElement in interface XmlObjectParser
      Parameters:
      hier - the parser stack
      namespaceURI - ignored
      localName - name of the element
      qname - ignored
      Throws:
      SAXException
    • ignorableWhitespace

      public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
      Does nothing.
      Specified by:
      ignorableWhitespace in interface XmlObjectParser
      Throws:
      SAXException
    • set

      public void set(int tag, String value)
      From TaggedStringOwner, called when string elements are parsed.
      Specified by:
      set in interface TaggedStringOwner
      Parameters:
      tag - numeric tag defined above.
      value - the string value parse
    • set

      public void set(int tag, long value)
      From TaggedLongOwner, called from TaggedLongSetter when long elements are parsed.
      Specified by:
      set in interface TaggedLongOwner
      Parameters:
      tag - numeric tag defined above
      value - the value
    • set

      public void set(int tag, boolean value)
      From TaggedBooleanOwner, called from TaggedBooleanSetter when string elements are parsed.
      Specified by:
      set in interface TaggedBooleanOwner
      Parameters:
      tag - numeric tag defined above
      value - the value
    • writeXml

      public void writeXml(XmlOutputStream xos) throws IOException
      Writes this object's data, along with subordinates, to an XML file.
      Specified by:
      writeXml in interface XmlObjectWriter
      Parameters:
      xos - the output stream object
      Throws:
      IOException - on IO error
    • setHideHostNames

      public void setHideHostNames(boolean hideHostNames)