|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.objectModel.TXMLObjectFactory
public final class TXMLObjectFactory
TXMLObjectFactory is the base class factory for the instantiation of concrete TXMLObject classes. This class provides DOM and JDOM as concrete object models. The support of other object models is possible by implementing further TXMLObjectFactory classes that are responsible for the instantiation of the appropiate object model adapter classes for TXMLObject. These concrete factories can be chosen thru the System property "com.softwareag.tamino.db.api.objectModel.TXMLObjectFactory" which has to point to the concrete class. If this is omitted this class simply serves as the default factory.
Constructor Summary | |
---|---|
protected |
TXMLObjectFactory()
Protected Constructor. |
Method Summary | |
---|---|
static TXMLObjectFactory |
getInstance()
Gets the singleton instance. |
TXMLObject |
newXMLObject(java.io.InputStream inputStream)
Creates a TXMLObject instance with an underlying input stream. |
TXMLObject |
newXMLObject(java.io.InputStream inputStream,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying input stream. |
TXMLObject |
newXMLObject(java.io.InputStream inputStream,
java.lang.String systemId)
Creates a TXMLObject instance with an underlying input stream. |
TXMLObject |
newXMLObject(java.io.InputStream inputStream,
java.lang.String systemId,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying input stream. |
TXMLObject |
newXMLObject(java.lang.Object element)
Factory method. |
TXMLObject |
newXMLObject(java.lang.Object element,
java.util.Locale locale)
Factory method. |
TXMLObject |
newXMLObject(java.io.Reader reader)
Creates a TXMLObject instance with an underlying character input stream. |
TXMLObject |
newXMLObject(java.io.Reader reader,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying character input stream. |
TXMLObject |
newXMLObject(java.io.Reader reader,
java.lang.String systemId)
Creates a TXMLObject instance with an underlying character input stream. |
TXMLObject |
newXMLObject(java.io.Reader reader,
java.lang.String systemId,
java.util.Locale locale)
Creates a TXMLObject instance with an underlying character input stream. |
TXMLObject |
newXMLObject(TXMLObjectModel xmlObjectModel)
Factory method. |
TXMLObject |
newXMLObject(TXMLObjectModel xmlObjectModel,
java.util.Locale locale)
Factory method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TXMLObjectFactory()
Method Detail |
---|
public static TXMLObjectFactory getInstance()
public TXMLObject newXMLObject(TXMLObjectModel xmlObjectModel)
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance() , null , null ); xmlObject.readFrom( inputStream ); org.w3c.dom.Element rootElement = (org.w3c.dom.Element)xmlObject.getElement();
xmlObjectModel
- specifies the concrete object model that should be used.
public TXMLObject newXMLObject(TXMLObjectModel xmlObjectModel, java.util.Locale locale)
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance() , null , null ); xmlObject.readFrom( inputStream ); org.w3c.dom.Element rootElement = (org.w3c.dom.Element)xmlObject.getElement();
xmlObjectModel
- specifies the concrete object model that should be used.
public TXMLObject newXMLObject(java.lang.Object element)
element
- is the concrete object representing the XML document which is wrapped by the TXMLObject adapter.
public TXMLObject newXMLObject(java.lang.Object element, java.util.Locale locale)
element
- is the concrete object representing the XML document which is wrapped by the TXMLObject adapter.
public TXMLObject newXMLObject(java.io.InputStream inputStream)
inputStream
- is the byte input stream for XML data.
public TXMLObject newXMLObject(java.io.InputStream inputStream, java.util.Locale locale)
inputStream
- is the byte input stream for XML data.
public TXMLObject newXMLObject(java.io.InputStream inputStream, java.lang.String systemId)
inputStream
- is the byte input stream for XML data.systemId
- the base URI of the data to resolve relative references.
public TXMLObject newXMLObject(java.io.InputStream inputStream, java.lang.String systemId, java.util.Locale locale)
inputStream
- is the byte input stream for XML data.systemId
- the base URI of the data to resolve relative references.
public TXMLObject newXMLObject(java.io.Reader reader)
reader
- is the character input stream for XML data.
public TXMLObject newXMLObject(java.io.Reader reader, java.util.Locale locale)
reader
- is the character input stream for XML data.
public TXMLObject newXMLObject(java.io.Reader reader, java.lang.String systemId)
reader
- is the character input stream for XML data.systemId
- the base URI of the data to resolve relative references.
public TXMLObject newXMLObject(java.io.Reader reader, java.lang.String systemId, java.util.Locale locale)
reader
- is the character input stream for XML data.systemId
- the base URI of the data to resolve relative references.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |