public class OMLinkedListImplFactory extends Object implements OMFactory
| Constructor and Description |
|---|
OMLinkedListImplFactory() |
OMLinkedListImplFactory(OMLinkedListMetaFactory metaFactory) |
| Modifier and Type | Method and Description |
|---|---|
OMAttribute |
createOMAttribute(String localName,
OMNamespace ns,
String value)
Creates attribute.
|
OMComment |
createOMComment(OMContainer parent,
String content)
Creates a comment.
|
OMDocType |
createOMDocType(OMContainer parent,
String content)
Creates DocType/DTD.
|
OMDocument |
createOMDocument()
Creates a new OMDocument.
|
OMDocument |
createOMDocument(OMXMLParserWrapper builder) |
OMSourcedElement |
createOMElement(OMDataSource source,
QName qname)
Construct element with arbitrary data source.
|
OMSourcedElement |
createOMElement(OMDataSource source,
String localName,
OMNamespace ns)
Construct element with arbitrary data source.
|
OMElement |
createOMElement(QName qname)
Create an OMElement with the given QName
If the QName contains a prefix, we will ensure that an OMNamespace is created mapping the
given namespace to the given prefix.
|
OMElement |
createOMElement(QName qname,
OMContainer parent)
Create an OMElement with the given QName under the given parent.
|
OMElement |
createOMElement(String localName,
OMNamespace ns)
Method createOMElement.
|
OMElement |
createOMElement(String localName,
OMNamespace ns,
OMContainer parent) |
OMElement |
createOMElement(String localName,
OMNamespace ns,
OMContainer parent,
OMXMLParserWrapper builder)
Method createOMElement.
|
OMElement |
createOMElement(String localName,
String namespaceURI,
String prefix)
Create an element with the given name.
|
OMNamespace |
createOMNamespace(String uri,
String prefix)
Method createOMNamespace.
|
OMProcessingInstruction |
createOMProcessingInstruction(OMContainer parent,
String piTarget,
String piData)
Creates a PI.
|
OMText |
createOMText(Object dataHandler,
boolean optimize)
Creates text.
|
OMText |
createOMText(OMContainer parent,
char[] charArary,
int type) |
OMText |
createOMText(OMContainer parent,
OMText source)
Create OMText node that is a copy of the source text node
|
OMText |
createOMText(OMContainer parent,
QName text) |
OMText |
createOMText(OMContainer parent,
QName text,
int type) |
OMText |
createOMText(OMContainer parent,
String text)
Method createOMText.
|
OMText |
createOMText(OMContainer parent,
String text,
int type) |
OMText |
createOMText(OMContainer parent,
String s,
String mimeType,
boolean optimize)
Creates text.
|
OMText |
createOMText(String s)
Method createOMText.
|
OMText |
createOMText(String contentID,
DataHandlerProvider dataHandlerProvider,
boolean optimize)
Create a binary
OMText node supporting deferred loading of the content. |
OMText |
createOMText(String s,
int type) |
OMText |
createOMText(String contentID,
OMContainer parent,
OMXMLParserWrapper builder) |
OMText |
createOMText(String s,
String mimeType,
boolean optimize)
Creates text.
|
OMMetaFactory |
getMetaFactory()
Get the
OMMetaFactory from which this factory was obtained. |
public OMLinkedListImplFactory(OMLinkedListMetaFactory metaFactory)
public OMLinkedListImplFactory()
public OMMetaFactory getMetaFactory()
OMFactoryOMMetaFactory from which this factory was obtained.getMetaFactory in interface OMFactorypublic OMElement createOMElement(String localName, OMNamespace ns)
createOMElement in interface OMFactorylocalName - ns - public OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent)
createOMElement in interface OMFactoryparent - the parent to which the newly created element will be added; this may be
null, in which case the behavior of the method is the same as
OMFactory.createOMElement(String, OMNamespace)public OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent, OMXMLParserWrapper builder)
createOMElement in interface OMFactorylocalName - ns - parent - builder - public OMElement createOMElement(String localName, String namespaceURI, String prefix)
OMFactorycreateOMElement in interface OMFactorylocalName - the local part of the name; must not be nullnamespaceURI - the namespace URI, or the empty string if the element has no namespace; must not
be nullprefix - the namespace prefix, or null if a prefix should be generatedpublic OMElement createOMElement(QName qname, OMContainer parent) throws OMException
createOMElement in interface OMFactoryqname - the QName of the element to createparent - the OMContainer in which to place the new elementOMException - if there's a namespace mapping problempublic OMElement createOMElement(QName qname) throws OMException
createOMElement in interface OMFactoryqname - OMException - TODO: when???public OMSourcedElement createOMElement(OMDataSource source, String localName, OMNamespace ns)
createOMElement in interface OMFactorysource - localName - ns - public OMSourcedElement createOMElement(OMDataSource source, QName qname)
createOMElement in interface OMFactorysource - the data sourceqname - the name of the element produced by the data sourcepublic OMNamespace createOMNamespace(String uri, String prefix)
createOMNamespace in interface OMFactoryuri - prefix - public OMText createOMText(OMContainer parent, String text)
createOMText in interface OMFactoryparent - text - public OMText createOMText(OMContainer parent, QName text)
createOMText in interface OMFactorytext - - This text itself can contain a namespace inside it.public OMText createOMText(OMContainer parent, String text, int type)
createOMText in interface OMFactorytype - - this should be either of XMLStreamConstants.CHARACTERS,
XMLStreamConstants.CDATA, XMLStreamConstants.SPACE, XMLStreamConstants.ENTITY_REFERENCEpublic OMText createOMText(OMContainer parent, char[] charArary, int type)
createOMText in interface OMFactorypublic OMText createOMText(OMContainer parent, QName text, int type)
createOMText in interface OMFactorytext - - This text itself can contain a namespace inside it.public OMText createOMText(String s)
createOMText in interface OMFactorys - public OMText createOMText(String s, int type)
createOMText in interface OMFactorytype - - OMText node can handle SPACE, CHARACTERS, CDATA and ENTITY REFERENCES. For
Constants, use either XMLStreamConstants or constants found in OMNode.public OMText createOMText(String s, String mimeType, boolean optimize)
createOMText in interface OMFactorys - mimeType - optimize - public OMText createOMText(Object dataHandler, boolean optimize)
createOMText in interface OMFactorydataHandler - optimize - public OMText createOMText(String contentID, DataHandlerProvider dataHandlerProvider, boolean optimize)
OMFactoryOMText node supporting deferred loading of the content.createOMText in interface OMFactorycontentID - the content ID identifying the binary content; may be nulldataHandlerProvider - used to load the DataHandler when requested from the returned
OMText nodeoptimize - determines whether the binary content should be optimizedpublic OMText createOMText(String contentID, OMContainer parent, OMXMLParserWrapper builder)
createOMText in interface OMFactorypublic OMText createOMText(OMContainer parent, OMText source)
OMFactorycreateOMText in interface OMFactorypublic OMText createOMText(OMContainer parent, String s, String mimeType, boolean optimize)
createOMText in interface OMFactoryparent - s - mimeType - optimize - public OMAttribute createOMAttribute(String localName, OMNamespace ns, String value)
createOMAttribute in interface OMFactorylocalName - ns - value - public OMDocType createOMDocType(OMContainer parent, String content)
createOMDocType in interface OMFactoryparent - content - public OMProcessingInstruction createOMProcessingInstruction(OMContainer parent, String piTarget, String piData)
createOMProcessingInstruction in interface OMFactoryparent - piTarget - piData - public OMComment createOMComment(OMContainer parent, String content)
createOMComment in interface OMFactoryparent - content - public OMDocument createOMDocument()
OMFactorycreateOMDocument in interface OMFactorypublic OMDocument createOMDocument(OMXMLParserWrapper builder)
createOMDocument in interface OMFactoryCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.