org.edg.info
Class ReplicaDecoder

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.edg.info.ReplicaDecoder
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ReplicaDecoder
extends org.xml.sax.helpers.DefaultHandler

Translates an XML message to the local Registry DB.


Constructor Summary
ReplicaDecoder()
          Creates a new ReplicaDecoder.
 
Method Summary
 void characters(char[] ch, int start, int length)
          Method called by the sax parser when text content is found.
 Replica decode(java.lang.String message)
          Attempts to decode the message into a Replica.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String elementName)
          Method called by the sax parser when an element is terminated.
 void error(org.xml.sax.SAXParseException e)
          Called when the SAX parser encounters an error.
 void fatalError(org.xml.sax.SAXParseException e)
          Called when the SAX parser encounters a 'serious' error.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String elementName, org.xml.sax.Attributes attributes)
          Method called by the sax parser when a new element is found.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaDecoder

public ReplicaDecoder()
Creates a new ReplicaDecoder.

Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
Method called by the sax parser when text content is found.


endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String elementName)
Method called by the sax parser when an element is terminated.


startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String elementName,
                         org.xml.sax.Attributes attributes)
Method called by the sax parser when a new element is found.


decode

public Replica decode(java.lang.String message)
               throws org.glite.rgma.system.RGMAException
Attempts to decode the message into a Replica.

Throws:
org.glite.rgma.system.RGMAException

error

public void error(org.xml.sax.SAXParseException e)
Called when the SAX parser encounters an error.


fatalError

public void fatalError(org.xml.sax.SAXParseException e)
Called when the SAX parser encounters a 'serious' error.