org.apache.axiom.om.impl.dom
Class ProcessingInstructionImpl

java.lang.Object
  extended by org.apache.axiom.om.impl.dom.NodeImpl
      extended by org.apache.axiom.om.impl.dom.ChildNode
          extended by org.apache.axiom.om.impl.dom.ProcessingInstructionImpl
All Implemented Interfaces:
Cloneable, OMNodeEx, OMNode, OMProcessingInstruction, OMSerializable, Node, NodeList, ProcessingInstruction

public class ProcessingInstructionImpl
extends ChildNode
implements ProcessingInstruction, OMProcessingInstruction


Field Summary
 
Fields inherited from class org.apache.axiom.om.impl.dom.ChildNode
nextSibling, parentNode, previousSibling
 
Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.apache.axiom.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Constructor Summary
ProcessingInstructionImpl(DocumentImpl ownerDocument, String target, String value, OMFactory factory)
           
 
Method Summary
 String getData()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 String getTarget()
          Gets the target of this Processing Instruction.
 int getType()
          Returns the type of node.
 String getValue()
          Gets the value of this Processing Instruction.
 void internalSerialize(XMLStreamWriter writer, boolean cache)
          Serializes the node.
 void setData(String data)
           
 void setTarget(String target)
          Sets the target of this Processing Instruction.
 void setType(int nodeType)
           
 void setValue(String text)
          Sets the value of this Processing Instruction.
 
Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode
cloneNode, detach, discard, getNextOMSibling, getNextOMSiblingIfAvailable, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling
 
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl
appendChild, build, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getOMFactory, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
 

Constructor Detail

ProcessingInstructionImpl

public ProcessingInstructionImpl(DocumentImpl ownerDocument,
                                 String target,
                                 String value,
                                 OMFactory factory)
Method Detail

getType

public int getType()
Description copied from interface: OMNode
Returns the type of node.

Specified by:
getType in interface OMNode
Returns:
Returns one of OMNode.ELEMENT_NODE, OMNode.TEXT_NODE, OMNode.CDATA_SECTION_NODE, OMNode.COMMENT_NODE, OMNode.DTD_NODE, OMNode.PI_NODE, OMNode.ENTITY_REFERENCE_NODE or OMNode.SPACE_NODE.

setType

public void setType(int nodeType)
             throws OMException
Specified by:
setType in interface OMNodeEx
Throws:
OMException

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node

getTarget

public String getTarget()
Description copied from interface: OMProcessingInstruction
Gets the target of this Processing Instruction.

Specified by:
getTarget in interface OMProcessingInstruction
Specified by:
getTarget in interface ProcessingInstruction
Returns:
Returns string.

setTarget

public void setTarget(String target)
Description copied from interface: OMProcessingInstruction
Sets the target of this Processing Instruction.

Specified by:
setTarget in interface OMProcessingInstruction

getValue

public String getValue()
Description copied from interface: OMProcessingInstruction
Gets the value of this Processing Instruction.

Specified by:
getValue in interface OMProcessingInstruction
Returns:
Returns String.

setValue

public void setValue(String text)
Description copied from interface: OMProcessingInstruction
Sets the value of this Processing Instruction.

Specified by:
setValue in interface OMProcessingInstruction

getData

public String getData()
Specified by:
getData in interface ProcessingInstruction

setData

public void setData(String data)
             throws DOMException
Specified by:
setData in interface ProcessingInstruction
Throws:
DOMException

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node

getNodeValue

public String getNodeValue()
                    throws DOMException
Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class NodeImpl
Throws:
DOMException

internalSerialize

public void internalSerialize(XMLStreamWriter writer,
                              boolean cache)
                       throws XMLStreamException
Description copied from interface: OMNodeEx
Serializes the node. Note that this is an internal method that MUST NOT be used outside of Axiom. Please use OMSerializable.serialize(XMLStreamWriter, boolean) instead.

Specified by:
internalSerialize in interface OMNodeEx
cache - indicates if caching should be enabled
Throws:
XMLStreamException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.