nz.ac.waikato.mcennis.rat.graph.property.xml
Class BasicPropertyXML

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.property.xml.BasicPropertyXML
All Implemented Interfaces:
PropertyXML, XMLParserObject

public class BasicPropertyXML
extends java.lang.Object
implements PropertyXML


Nested Class Summary
 
Nested classes/interfaces inherited from interface nz.ac.waikato.mcennis.rat.XMLParserObject
XMLParserObject.State
 
Constructor Summary
BasicPropertyXML()
           
 
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.
 void export(java.io.Writer writer)
           
 Property getProperty()
           
 PropertyXML newCopy()
          Return a new, clean object of this class with no common resources with the original beyond static resources of the class.
 void setProperty(Property property)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPropertyXML

public BasicPropertyXML()
Method Detail

export

public void export(java.io.Writer writer)
            throws java.io.IOException
Specified by:
export in interface PropertyXML
Throws:
java.io.IOException

getProperty

public Property getProperty()
Specified by:
getProperty in interface PropertyXML

newCopy

public PropertyXML newCopy()
Description copied from interface: XMLParserObject
Return a new, clean object of this class with no common resources with the original beyond static resources of the class.

Specified by:
newCopy in interface PropertyXML
Specified by:
newCopy in interface XMLParserObject
Returns:
new object of this class

setProperty

public void setProperty(Property property)
Specified by:
setProperty in interface PropertyXML

buildingStatus

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

Specified by:
buildingStatus in interface XMLParserObject
Returns:
current state of the object

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Description copied from interface: XMLParserObject
Procedure called for handling character data.

Specified by:
characters in interface XMLParserObject
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler

endElement

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

Specified by:
endElement in interface XMLParserObject
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler

startElement

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

Specified by:
startElement in interface XMLParserObject
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler

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