common-util

local.tomas.common.xml
Class XMLStreamParser

java.lang.Object
  extended by local.tomas.common.xml.XMLStreamParser
Direct Known Subclasses:
StreamParserImpl

public abstract class XMLStreamParser
extends Object

This class is used to create an object from its XML description.

Author:
tomas

Constructor Summary
protected XMLStreamParser()
           
 
Method Summary
static XMLStreamParser createInstance(Source source)
          Create class instance.
abstract  Object parse()
          Parse XML stream and create object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStreamParser

protected XMLStreamParser()
Method Detail

createInstance

public static XMLStreamParser createInstance(Source source)
Create class instance.

Parameters:
source - - XML source to create object from
Returns:
the instance

parse

public abstract Object parse()
                      throws XMLException
Parse XML stream and create object.

Returns:
the object
Throws:
XMLException

common-util

Copyright © 2007 null. All Rights Reserved.