nz.ac.waikato.mcennis.rat.reusablecores.distance.xml
Class CosineDistanceXML

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.reusablecores.distance.xml.CosineDistanceXML
All Implemented Interfaces:
DistanceXML, XMLParserObject

public class CosineDistanceXML
extends java.lang.Object
implements DistanceXML


Nested Class Summary
 
Nested classes/interfaces inherited from interface nz.ac.waikato.mcennis.rat.XMLParserObject
XMLParserObject.State
 
Constructor Summary
CosineDistanceXML()
           
 
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 exportAsXML(java.io.Writer writer)
           
 CosineDistance getDistanceMeasure()
           
 CosineDistanceXML 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CosineDistanceXML

public CosineDistanceXML()
Method Detail

getDistanceMeasure

public CosineDistance getDistanceMeasure()
Specified by:
getDistanceMeasure in interface DistanceXML

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

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

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

newCopy

public CosineDistanceXML 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 XMLParserObject
Returns:
new object of this class

exportAsXML

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

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