Package lrgs.statusxml
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) No content characters expected -- only sub-elements.void
endElement
(XmlHierarchyParser hier, String namespaceURI, String localName, String qname) Signals the end of the current element.void
ignorableWhitespace
(char[] ch, int start, int length) Does nothing.myName()
void
set
(int tag, boolean value) From TaggedBooleanOwner, called from TaggedBooleanSetter when string elements are parsed.void
set
(int tag, long value) From TaggedLongOwner, called from TaggedLongSetter when long elements are parsed.void
From TaggedStringOwner, called when string elements are parsed.void
setHideHostNames
(boolean hideHostNames) void
startElement
(XmlHierarchyParser hier, String namespaceURI, String localName, String qname, Attributes atts) Called when sub-element seen under Archive Statistics.void
writeXml
(XmlOutputStream xos) Writes this object's data, along with subordinates, to an XML file.
-
Constructor Details
-
LrgsStatusSnapshotXio
Construct parser.- Parameters:
lsse
- the LrgsStatusSnapshotExt to populate from XML data
-
-
Method Details
-
myName
- Specified by:
myName
in interfaceXmlObjectWriter
- Returns:
- XML tag for this element
-
characters
No content characters expected -- only sub-elements.- Specified by:
characters
in interfaceXmlObjectParser
- Parameters:
ch
- the charactersstart
- the startlength
- 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 interfaceXmlObjectParser
- Parameters:
hier
- the parser stacknamespaceURI
- ignoredlocalName
- name of the new elementqname
- ignoredatts
- 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 interfaceXmlObjectParser
- Parameters:
hier
- the parser stacknamespaceURI
- ignoredlocalName
- name of the elementqname
- ignored- Throws:
SAXException
-
ignorableWhitespace
Does nothing.- Specified by:
ignorableWhitespace
in interfaceXmlObjectParser
- Throws:
SAXException
-
set
From TaggedStringOwner, called when string elements are parsed.- Specified by:
set
in interfaceTaggedStringOwner
- 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 interfaceTaggedLongOwner
- Parameters:
tag
- numeric tag defined abovevalue
- the value
-
set
public void set(int tag, boolean value) From TaggedBooleanOwner, called from TaggedBooleanSetter when string elements are parsed.- Specified by:
set
in interfaceTaggedBooleanOwner
- Parameters:
tag
- numeric tag defined abovevalue
- the value
-
writeXml
Writes this object's data, along with subordinates, to an XML file.- Specified by:
writeXml
in interfaceXmlObjectWriter
- Parameters:
xos
- the output stream object- Throws:
IOException
- on IO error
-
setHideHostNames
public void setHideHostNames(boolean hideHostNames)
-