org.apache.axis2.om.impl.llom
Class OMProcessingInstructionImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.llom.OMNodeImpl
      extended byorg.apache.axis2.om.impl.llom.OMProcessingInstructionImpl
All Implemented Interfaces:
OMNode, OMNodeEx, OMProcessingInstruction

public class OMProcessingInstructionImpl
extends OMNodeImpl
implements OMProcessingInstruction


Field Summary
protected  java.lang.String target
           
protected  java.lang.String value
           
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
builder, done, nextSibling, nodeType, parent, previousSibling
 
Fields inherited from interface org.apache.axis2.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Constructor Summary
OMProcessingInstructionImpl(OMContainer parentNode)
          Constructor OMProcessingInstructionImpl
OMProcessingInstructionImpl(OMContainer parentNode, java.lang.String target, java.lang.String value)
          Constructor OMProcessingInstructionImpl
 
Method Summary
 void discard()
          discard this node
 java.lang.String getTarget()
          get the target of this PI
 java.lang.String getValue()
          get the value of this PI
 void serialize(OMOutputImpl omOutput)
          Serialize the node without caching
 void serializeWithCache(OMOutputImpl omOutput)
          Serialize the node with caching
 void setTarget(java.lang.String target)
          set the target of this PI
 void setValue(java.lang.String text)
          set the value of this PI
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
build, detach, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serializeWithCache, setComplete, setNextSibling, setParent, setPreviousSibling, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.om.OMNode
build, detach, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serializeWithCache
 

Field Detail

target

protected java.lang.String target

value

protected java.lang.String value
Constructor Detail

OMProcessingInstructionImpl

public OMProcessingInstructionImpl(OMContainer parentNode,
                                   java.lang.String target,
                                   java.lang.String value)
Constructor OMProcessingInstructionImpl

Parameters:
parentNode -
target -
value -

OMProcessingInstructionImpl

public OMProcessingInstructionImpl(OMContainer parentNode)
Constructor OMProcessingInstructionImpl

Parameters:
parentNode -
Method Detail

serializeWithCache

public void serializeWithCache(OMOutputImpl omOutput)
                        throws XMLStreamException
Serialize the node with caching

Overrides:
serializeWithCache in class OMNodeImpl
Parameters:
omOutput -
Throws:
XMLStreamException
See Also:
serializeWithCache(org.apache.axis2.om.impl.OMOutputImpl)

serialize

public void serialize(OMOutputImpl omOutput)
               throws XMLStreamException
Serialize the node without caching

Overrides:
serialize in class OMNodeImpl
Parameters:
omOutput -
Throws:
XMLStreamException
See Also:
serialize(org.apache.axis2.om.impl.OMOutputImpl)

getValue

public java.lang.String getValue()
get the value of this PI

Specified by:
getValue in interface OMProcessingInstruction
Returns:
string

setTarget

public void setTarget(java.lang.String target)
set the target of this PI

Specified by:
setTarget in interface OMProcessingInstruction
Parameters:
target -

getTarget

public java.lang.String getTarget()
get the target of this PI

Specified by:
getTarget in interface OMProcessingInstruction
Returns:
string

setValue

public void setValue(java.lang.String text)
set the value of this PI

Specified by:
setValue in interface OMProcessingInstruction
Parameters:
text -

discard

public void discard()
             throws OMException
discard this node

Specified by:
discard in interface OMNode
Throws:
OMException