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

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

public class OMProcessingInstructionImpl
extends OMNodeImpl
implements org.apache.axiom.om.OMProcessingInstruction


Field Summary
protected  java.lang.String target
           
protected  java.lang.String value
           
 
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
builder, done, factory, nextSibling, nodeType, parent, previousSibling
 
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
OMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode, org.apache.axiom.om.OMFactory factory)
          Constructor OMProcessingInstructionImpl.
OMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode, java.lang.String target, java.lang.String value, org.apache.axiom.om.OMFactory factory)
          Constructor OMProcessingInstructionImpl.
 
Method Summary
 void discard()
          Discards this node.
 java.lang.String getTarget()
          Gets the target of this Processing Instruction.
 java.lang.String getValue()
          Gets the value of this Processing Instruction.
 void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
          Serializes the node with caching.
 void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
          Serializes the node without caching.
 void setTarget(java.lang.String target)
          Sets the target of this Processing Instruction.
 void setValue(java.lang.String text)
          Sets the value of this Processing Instruction.
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
build, buildWithAttachments, detach, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, importNode, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, 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.axiom.om.OMNode
build, buildWithAttachments, detach, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 

Field Detail

target

protected java.lang.String target

value

protected java.lang.String value
Constructor Detail

OMProcessingInstructionImpl

public OMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode,
                                   java.lang.String target,
                                   java.lang.String value,
                                   org.apache.axiom.om.OMFactory factory)
Constructor OMProcessingInstructionImpl.

Parameters:
parentNode -
target -
value -

OMProcessingInstructionImpl

public OMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode,
                                   org.apache.axiom.om.OMFactory factory)
Constructor OMProcessingInstructionImpl.

Parameters:
parentNode -
Method Detail

internalSerialize

public void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
                       throws javax.xml.stream.XMLStreamException
Serializes the node with caching.

Specified by:
internalSerialize in interface org.apache.axiom.om.impl.OMNodeEx
Overrides:
internalSerialize in class OMNodeImpl
Parameters:
writer -
Throws:
javax.xml.stream.XMLStreamException

internalSerializeAndConsume

public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
                                 throws javax.xml.stream.XMLStreamException
Serializes the node without caching.

Specified by:
internalSerializeAndConsume in interface org.apache.axiom.om.impl.OMNodeEx
Overrides:
internalSerializeAndConsume in class OMNodeImpl
Parameters:
writer -
Throws:
javax.xml.stream.XMLStreamException

getValue

public java.lang.String getValue()
Gets the value of this Processing Instruction.

Specified by:
getValue in interface org.apache.axiom.om.OMProcessingInstruction
Returns:
string

setTarget

public void setTarget(java.lang.String target)
Sets the target of this Processing Instruction.

Specified by:
setTarget in interface org.apache.axiom.om.OMProcessingInstruction
Parameters:
target -

getTarget

public java.lang.String getTarget()
Gets the target of this Processing Instruction.

Specified by:
getTarget in interface org.apache.axiom.om.OMProcessingInstruction
Returns:
Returns String.

setValue

public void setValue(java.lang.String text)
Sets the value of this Processing Instruction.

Specified by:
setValue in interface org.apache.axiom.om.OMProcessingInstruction
Parameters:
text -

discard

public void discard()
             throws org.apache.axiom.om.OMException
Discards this node.

Specified by:
discard in interface org.apache.axiom.om.OMNode
Throws:
org.apache.axiom.om.OMException


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.