Class OMDocTypeImpl

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

public class OMDocTypeImpl extends OMNodeImpl implements org.apache.axiom.om.OMDocType
  • Field Details

    • value

      protected String value
  • Constructor Details

    • OMDocTypeImpl

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

      public OMDocTypeImpl(org.apache.axiom.om.OMContainer parentNode, org.apache.axiom.om.OMFactory factory)
      Constructor OMDocTypeImpl.
      Parameters:
      parentNode -
  • Method Details

    • internalSerialize

      public void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
      Description copied from class: OMSerializableImpl
      Serializes the node.
      Specified by:
      internalSerialize in interface org.apache.axiom.om.impl.OMNodeEx
      Specified by:
      internalSerialize in class OMSerializableImpl
      Parameters:
      writer -
      Throws:
      XMLStreamException
    • getValue

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

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