nz.ac.waikato.mcennis.rat
Interface XMLParserObject

All Known Subinterfaces:
ActorQueryXML, AggregatorXML, DataVectorXML, DistanceXML, GraphQueryXML, LinkQueryXML, PropertyQueryXML, PropertyValueXML<Type>, PropertyXML
All Known Implementing Classes:
ActorByLinkXML, ActorByModeXML, ActorByPropertyXML, AllGraphsXML, AndActorQueryXML, AndGraphQueryXML, AndLinkQueryXML, AssociativeMiningItemsXML, AttributeXML, BasicPropertyXML, ChebyshevDistanceXML, ConcatenationXML, CosineDistanceXML, DataVectorQueryXML, DotProductDistanceXML, DoubleArrayVectorXML, DoubleXML, EuclideanDistanceXML, ExponentialDistanceXML, FileXML, FirstItemXML, GraphByActorXML, GraphByIDXML, GraphByLevelXML, GraphByLinkXML, GraphByPropertyXML, InstancesXML, InstanceVectorXML, InstanceXML, IntegerXML, JaccardDistanceXML, LinkByActorXML, LinkByPropertyXML, LinkByRelationXML, LongXML, ManhattanDistanceXML, MapVectorXML, MaxXML, MeanXML, MinXML, NullActorQueryXML, NullGraphQueryXML, NullLinkQueryXML, NullPropertyQueryXML, NullXML, NumericQueryXML, OrActorQueryXML, OrGraphQueryXML, OrLinkQueryXML, PearsonDistanceXML, ProductXML, StandardDeviationXML, StringQueryXML, StringXML, SumXML, URLXML, WeightedKLDDistanceXML, XorActorQueryXML, XorGraphQueryXML, XorLinkQueryXML

public interface XMLParserObject

Base class for all SAX parsers for particular objects independent of whether or not the given XML section is the document root or a sub-element of a XML document.


Nested Class Summary
static class XMLParserObject.State
          Enumeration of the current state of the XML Parser object.
 
Method Summary
 XMLParserObject.State buildingStatus()
          Returns whether or not the current object has been built from an XML file.
 void characters(char[] ch, int start, int length)
          Procedure called for handling character data.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Procedure called when end tags are reaached.
 XMLParserObject newCopy()
          Return a new, clean object of this class with no common resources with the original beyond static resources of the class.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          Procedure called when inside this given object.
 

Method Detail

startElement

void startElement(java.lang.String uri,
                  java.lang.String localName,
                  java.lang.String qName,
                  org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Procedure called when inside this given object. If this object is 'UNITIALIZED' the state is changed to loading.

Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler

characters

void characters(char[] ch,
                int start,
                int length)
                throws org.xml.sax.SAXException
Procedure called for handling character data.

Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler

endElement

void endElement(java.lang.String uri,
                java.lang.String localName,
                java.lang.String qName)
                throws org.xml.sax.SAXException
Procedure called when end tags are reaached. If this completes the object, state is changed to READY

Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler

buildingStatus

XMLParserObject.State buildingStatus()
Returns whether or not the current object has been built from an XML file.

Returns:
current state of the object

newCopy

XMLParserObject newCopy()
Return a new, clean object of this class with no common resources with the original beyond static resources of the class.

Returns:
new object of this class

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads