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

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

public class OMProcessingInstructionImpl
extends OMNodeImpl
implements OMProcessingInstruction


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

Field Detail

target

protected String target

value

protected String value
Constructor Detail

OMProcessingInstructionImpl

public OMProcessingInstructionImpl(OMContainer parentNode,
                                   String target,
                                   String value,
                                   OMFactory factory)
Constructor OMProcessingInstructionImpl.

Parameters:
parentNode -
target -
value -

OMProcessingInstructionImpl

public OMProcessingInstructionImpl(OMContainer parentNode,
                                   OMFactory factory)
Constructor OMProcessingInstructionImpl.

Parameters:
parentNode -
Method Detail

internalSerialize

public void internalSerialize(XMLStreamWriter writer,
                              boolean cache)
                       throws XMLStreamException
Description copied from class: OMSerializableImpl
Serializes the node.

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

getValue

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

Specified by:
getValue in interface OMProcessingInstruction
Returns:
string

setTarget

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

Specified by:
setTarget in interface OMProcessingInstruction
Parameters:
target -

getTarget

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

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

setValue

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

Specified by:
setValue in interface OMProcessingInstruction
Parameters:
text -

discard

public void discard()
             throws OMException
Discards this node.

Specified by:
discard in interface OMNode
Throws:
OMException


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