Class 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 Detail

      • target

        protected String target
      • value

        protected String value
    • Constructor Detail

      • 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 Detail

      • getValue

        public 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​(String target)
        Sets the target of this Processing Instruction.
        Specified by:
        setTarget in interface org.apache.axiom.om.OMProcessingInstruction
        Parameters:
        target -
      • getTarget

        public 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​(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