public class OMLinkedListImplFactory extends Object implements OMFactoryEx
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.
|
OMComment |
createOMComment(OMContainer parent,
String content,
boolean fromBuilder) |
OMDocType |
createOMDocType(OMContainer parent,
String rootName,
String publicId,
String systemId,
String internalSubset)
Creates DTD (DOCTYPE declaration) node.
|
OMDocType |
createOMDocType(OMContainer parent,
String rootName,
String publicId,
String systemId,
String internalSubset,
boolean fromBuilder) |
OMDocument |
createOMDocument()
Creates a new OMDocument.
|
OMDocument |
createOMDocument(OMXMLParserWrapper builder) |
OMSourcedElement |
createOMElement(OMDataSource source)
Create a sourced element.
|
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,
OMContainer parent,
OMXMLParserWrapper builder)
Method createOMElement.
|
OMElement |
createOMElement(String localName,
OMNamespace ns)
Method createOMElement.
|
OMElement |
createOMElement(String localName,
OMNamespace ns,
OMContainer parent)
Create an element with the given name and parent.
|
OMElement |
createOMElement(String localName,
String namespaceURI,
String prefix)
Create an element with the given name.
|
OMEntityReference |
createOMEntityReference(OMContainer parent,
String name)
Create an entity reference.
|
OMEntityReference |
createOMEntityReference(OMContainer parent,
String name,
String replacementText,
boolean fromBuilder) |
OMNamespace |
createOMNamespace(String uri,
String prefix)
Method createOMNamespace.
|
OMProcessingInstruction |
createOMProcessingInstruction(OMContainer parent,
String piTarget,
String piData)
Creates a PI.
|
OMProcessingInstruction |
createOMProcessingInstruction(OMContainer parent,
String piTarget,
String piData,
boolean fromBuilder) |
OMText |
createOMText(Object dataHandler,
boolean optimize)
Creates text.
|
OMText |
createOMText(OMContainer parent,
char[] charArary,
int type) |
OMText |
createOMText(OMContainer parent,
Object dataHandler,
boolean optimize,
boolean fromBuilder) |
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 text,
int type,
boolean fromBuilder) |
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 s,
String mimeType,
boolean optimize)
Creates text.
|
OMMetaFactory |
getMetaFactory()
Get the
OMMetaFactory from which this factory was obtained. |
OMNode |
importNode(OMNode child)
This method is intended only to be used by Axiom intenals when merging Objects from different
Axiom implementations to the LLOM implementation.
|
public OMLinkedListImplFactory(OMLinkedListMetaFactory metaFactory)
public OMLinkedListImplFactory()
public OMMetaFactory getMetaFactory()
OMFactory
OMMetaFactory
from which this factory was obtained. More precisely, if the
OMFactory
instance has been obtained from a OMMetaFactory
using
OMMetaFactory.getOMFactory()
, OMMetaFactory.getSOAP11Factory()
or
OMMetaFactory.getSOAP12Factory()
, then the return value is the same as the original
OMMetaFactory
. Since OMAbstractFactory
creates a single OMMetaFactory
instance per Axiom implementation, this means that this method can be used to check if two
OMFactory
instances belong to the same Axiom implementation.getMetaFactory
in interface OMFactory
public OMElement createOMElement(String localName, OMNamespace ns)
createOMElement
in interface OMFactory
localName
- ns
- public OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent)
OMFactory
OMNamespace
has a
namespace URI but a null
prefix, the method will reuse an existing prefix if a
namespace declaration with a matching namespace URI is in scope on the parent or generate a
new prefix if no such namespace declaration exists.
If a new prefix is generated or if the specified prefix and namespace URI are not bound in
the scope of the parent element, the method will add an appropriate namespace declaration to
the new element. Note that this may also occur if null
is passed as
OMNamespace
parameter. In that case, if there is a default namespace declaration with
a non empty namespace URI in the scope of the parent element, a namespace declaration needs
to be added to the newly created element to override the default namespace.
createOMElement
in interface OMFactory
parent
- 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, OMContainer parent, OMXMLParserWrapper builder)
createOMElement
in interface OMFactoryEx
localName
- parent
- builder
- public OMElement createOMElement(String localName, String namespaceURI, String prefix)
OMFactory
createOMElement
in interface OMFactory
localName
- the local part of the name; must not be null
namespaceURI
- the namespace URI, or the empty string if the element has no namespace; must not
be null
prefix
- the namespace prefix, or null
if a prefix should be generatedpublic OMElement createOMElement(QName qname, OMContainer parent) throws OMException
createOMElement
in interface OMFactory
qname
- 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 OMFactory
qname
- OMException
public OMSourcedElement createOMElement(OMDataSource source)
OMFactory
QNameAwareOMDataSource
then
the returned OMSourcedElement
will use the information provided through this
interface to determine the local name, namespace URI and namespace prefix. For information
that is not available (either because the data source doesn't implement
QNameAwareOMDataSource
or because some of the methods defined by that interface
return null
) the element will be expanded to determine the missing information.
This is done lazily, i.e. only when the information is really required. E.g. this will not
occur during serialization of the element.
This is an optional operation which may not be supported by all factories.
createOMElement
in interface OMFactory
source
- the data source; must not be null
public OMSourcedElement createOMElement(OMDataSource source, String localName, OMNamespace ns)
createOMElement
in interface OMFactory
source
- localName
- ns
- public OMSourcedElement createOMElement(OMDataSource source, QName qname)
createOMElement
in interface OMFactory
source
- the data sourceqname
- the name of the element produced by the data sourcepublic OMNamespace createOMNamespace(String uri, String prefix)
createOMNamespace
in interface OMFactory
uri
- prefix
- public OMText createOMText(OMContainer parent, String text)
createOMText
in interface OMFactory
parent
- text
- public OMText createOMText(OMContainer parent, QName text)
createOMText
in interface OMFactory
text
- - This text itself can contain a namespace inside it.public OMText createOMText(OMContainer parent, String text, int type)
createOMText
in interface OMFactory
type
- the node type: OMNode.TEXT_NODE
, OMNode.CDATA_SECTION_NODE
or
OMNode.SPACE_NODE
public OMText createOMText(OMContainer parent, String text, int type, boolean fromBuilder)
createOMText
in interface OMFactoryEx
public OMText createOMText(OMContainer parent, char[] charArary, int type)
createOMText
in interface OMFactory
public OMText createOMText(OMContainer parent, QName text, int type)
createOMText
in interface OMFactory
text
- - This text itself can contain a namespace inside it.public OMText createOMText(String s)
createOMText
in interface OMFactory
s
- public OMText createOMText(String s, int type)
createOMText
in interface OMFactory
type
- the node type: OMNode.TEXT_NODE
, OMNode.CDATA_SECTION_NODE
or
OMNode.SPACE_NODE
public OMText createOMText(String s, String mimeType, boolean optimize)
createOMText
in interface OMFactory
s
- mimeType
- optimize
- public OMText createOMText(Object dataHandler, boolean optimize)
createOMText
in interface OMFactory
dataHandler
- optimize
- public OMText createOMText(OMContainer parent, Object dataHandler, boolean optimize, boolean fromBuilder)
createOMText
in interface OMFactoryEx
public OMText createOMText(String contentID, DataHandlerProvider dataHandlerProvider, boolean optimize)
OMFactory
OMText
node supporting deferred loading of the content.createOMText
in interface OMFactory
contentID
- the content ID identifying the binary content; may be null
dataHandlerProvider
- used to load the DataHandler
when requested from the returned
OMText
nodeoptimize
- determines whether the binary content should be optimizedpublic OMText createOMText(OMContainer parent, OMText source)
OMFactory
createOMText
in interface OMFactory
public OMText createOMText(OMContainer parent, String s, String mimeType, boolean optimize)
createOMText
in interface OMFactory
parent
- s
- mimeType
- optimize
- public OMAttribute createOMAttribute(String localName, OMNamespace ns, String value)
createOMAttribute
in interface OMFactory
localName
- ns
- value
- public OMDocType createOMDocType(OMContainer parent, String rootName, String publicId, String systemId, String internalSubset)
OMFactory
createOMDocType
in interface OMFactory
parent
- the parent to which the newly created text node will be added; this may be
null
rootName
- the root name, i.e. the name immediately following the DOCTYPE keywordpublicId
- the public ID of the external subset, or null
if there is no external
subset or no public ID has been specified for the external subsetsystemId
- the system ID of the external subset, or null
if there is no external
subsetinternalSubset
- the internal subset, or null
if there is noneOMDocType
nodepublic OMDocType createOMDocType(OMContainer parent, String rootName, String publicId, String systemId, String internalSubset, boolean fromBuilder)
createOMDocType
in interface OMFactoryEx
public OMProcessingInstruction createOMProcessingInstruction(OMContainer parent, String piTarget, String piData)
createOMProcessingInstruction
in interface OMFactory
parent
- piTarget
- piData
- public OMProcessingInstruction createOMProcessingInstruction(OMContainer parent, String piTarget, String piData, boolean fromBuilder)
createOMProcessingInstruction
in interface OMFactoryEx
public OMComment createOMComment(OMContainer parent, String content)
createOMComment
in interface OMFactory
parent
- content
- public OMComment createOMComment(OMContainer parent, String content, boolean fromBuilder)
createOMComment
in interface OMFactoryEx
public OMDocument createOMDocument()
OMFactory
createOMDocument
in interface OMFactory
public OMDocument createOMDocument(OMXMLParserWrapper builder)
createOMDocument
in interface OMFactoryEx
public OMEntityReference createOMEntityReference(OMContainer parent, String name)
OMFactory
createOMEntityReference
in interface OMFactory
parent
- the parent to which the newly created entity reference node will be added; this
may be null
name
- the name of the entityOMEntityReference
nodepublic OMEntityReference createOMEntityReference(OMContainer parent, String name, String replacementText, boolean fromBuilder)
createOMEntityReference
in interface OMFactoryEx
public OMNode importNode(OMNode child)
importNode
in interface OMFactoryEx
child
- Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.