Class OMCommentImpl

  • All Implemented Interfaces:
    org.apache.axiom.om.impl.OMNodeEx, org.apache.axiom.om.OMComment, org.apache.axiom.om.OMNode, org.apache.axiom.om.OMSerializable

    public class OMCommentImpl
    extends OMNodeImpl
    implements org.apache.axiom.om.OMComment
    • Field Detail

      • value

        protected String value
    • Constructor Detail

      • OMCommentImpl

        public OMCommentImpl​(org.apache.axiom.om.OMContainer parentNode,
                             String contentText,
                             org.apache.axiom.om.OMFactory factory)
        Constructor OMCommentImpl.
        Parameters:
        parentNode -
        contentText -
      • OMCommentImpl

        public OMCommentImpl​(org.apache.axiom.om.OMContainer parentNode,
                             org.apache.axiom.om.OMFactory factory)
        Constructor OMCommentImpl.
        Parameters:
        parentNode -
    • Method Detail

      • getValue

        public String getValue()
        Gets the value of this comment.
        Specified by:
        getValue in interface org.apache.axiom.om.OMComment
        Returns:
        Returns String.
      • setValue

        public void setValue​(String text)
        Sets the value of this comment.
        Specified by:
        setValue in interface org.apache.axiom.om.OMComment
        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