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

java.lang.Object
  extended by org.apache.axiom.om.impl.llom.OMNodeImpl
      extended by org.apache.axiom.om.impl.llom.OMDocTypeImpl
All Implemented Interfaces:
OMNodeEx, OMDocType, OMNode

public class OMDocTypeImpl
extends OMNodeImpl
implements OMDocType


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

Field Detail

value

protected String value
Constructor Detail

OMDocTypeImpl

public OMDocTypeImpl(OMContainer parentNode,
                     String contentText,
                     OMFactory factory)
Constructor OMDocTypeImpl.

Parameters:
parentNode -
contentText -

OMDocTypeImpl

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

Parameters:
parentNode -
Method Detail

internalSerialize

public void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
                       throws javax.xml.stream.XMLStreamException
Serializes the node with caching.

Specified by:
internalSerialize in interface OMNodeEx
Overrides:
internalSerialize in class OMNodeImpl
Parameters:
writer -
Throws:
javax.xml.stream.XMLStreamException

internalSerializeAndConsume

public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
                                 throws javax.xml.stream.XMLStreamException
Serializes the node without caching.

Specified by:
internalSerializeAndConsume in interface OMNodeEx
Overrides:
internalSerializeAndConsume in class OMNodeImpl
Parameters:
writer -
Throws:
javax.xml.stream.XMLStreamException

getValue

public String getValue()
Gets the value of this DocType.

Specified by:
getValue in interface OMDocType
Returns:
Returns String.

setValue

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

Specified by:
setValue in interface OMDocType
Parameters:
text -

discard

public void discard()
             throws OMException
Discards this node.

Specified by:
discard in interface OMNode
Throws:
OMException


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