ist.palcom.xml
Class XMLFactory

java.lang.Object
  extended by ist.palcom.xml.XMLFactory
Direct Known Subclasses:
CommunicationInfoXMLFactory

public abstract class XMLFactory
extends java.lang.Object

XMLFactory parses XML and creates XMLRepresentables from it. This implementation is not thread-safe.


Field Summary
static java.lang.String DTD
           
 
Constructor Summary
XMLFactory()
           
 
Method Summary
 XMLRepresentable createFromElement(XmlPullParser parser)
          Creates an XMLRepresentable from the element where the parser is currently standing.
protected abstract  XMLRepresentable createFromTagName(java.lang.String tagName)
           
 XMLRepresentable createFromXMLData(byte[] xmlData, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DTD

public static java.lang.String DTD
Constructor Detail

XMLFactory

public XMLFactory()
Method Detail

createFromXMLData

public XMLRepresentable createFromXMLData(byte[] xmlData,
                                          int offset,
                                          int length)
                                   throws XMLException
Throws:
XMLException

createFromElement

public XMLRepresentable createFromElement(XmlPullParser parser)
                                   throws XMLException
Creates an XMLRepresentable from the element where the parser is currently standing. When calling this method, the parser must be on the start tag of the element. After returning from the method, the parser will be at the end tag of the element.

Throws:
XMLException

createFromTagName

protected abstract XMLRepresentable createFromTagName(java.lang.String tagName)
                                               throws XMLException
Throws:
XMLException