Package org.apache.axiom.om.impl.llom
Class OMProcessingInstructionImpl
java.lang.Object
org.apache.axiom.om.impl.llom.OMSerializableImpl
org.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMProcessingInstructionImpl
- All Implemented Interfaces:
org.apache.axiom.om.impl.OMNodeEx,org.apache.axiom.om.OMNode,org.apache.axiom.om.OMProcessingInstruction,org.apache.axiom.om.OMSerializable
public class OMProcessingInstructionImpl
extends OMNodeImpl
implements org.apache.axiom.om.OMProcessingInstruction
-
Field Summary
FieldsFields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
nextSibling, nodeType, parent, previousSiblingFields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
builder, done, factoryFields 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
ConstructorsConstructorDescriptionOMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode, String target, String value, org.apache.axiom.om.OMFactory factory) Constructor OMProcessingInstructionImpl.OMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode, org.apache.axiom.om.OMFactory factory) Constructor OMProcessingInstructionImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard()Discards this node.Gets the target of this Processing Instruction.getValue()Gets the value of this Processing Instruction.voidinternalSerialize(XMLStreamWriter writer, boolean cache) Serializes the node.voidSets the target of this Processing Instruction.voidSets 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, setTypeMethods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
build, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeMethods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
-
Field Details
-
target
-
value
-
-
Constructor Details
-
OMProcessingInstructionImpl
public OMProcessingInstructionImpl(org.apache.axiom.om.OMContainer parentNode, String target, 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 Details
-
internalSerialize
Description copied from class:OMSerializableImplSerializes the node.- Specified by:
internalSerializein interfaceorg.apache.axiom.om.impl.OMNodeEx- Specified by:
internalSerializein classOMSerializableImpl- Parameters:
writer-- Throws:
XMLStreamException
-
getValue
Gets the value of this Processing Instruction.- Specified by:
getValuein interfaceorg.apache.axiom.om.OMProcessingInstruction- Returns:
- string
-
setTarget
Sets the target of this Processing Instruction.- Specified by:
setTargetin interfaceorg.apache.axiom.om.OMProcessingInstruction- Parameters:
target-
-
getTarget
Gets the target of this Processing Instruction.- Specified by:
getTargetin interfaceorg.apache.axiom.om.OMProcessingInstruction- Returns:
- Returns String.
-
setValue
Sets the value of this Processing Instruction.- Specified by:
setValuein interfaceorg.apache.axiom.om.OMProcessingInstruction- Parameters:
text-
-
discard
public void discard() throws org.apache.axiom.om.OMExceptionDiscards this node.- Specified by:
discardin interfaceorg.apache.axiom.om.OMNode- Throws:
org.apache.axiom.om.OMException
-