Top Description Fields Constructors Methods
org.apache.xml.serialize

public Class ElementState

extends Object
Class Inheritance
Imports
java.util.Hashtable

Deprecated

This class was deprecated in Xerces 2.9.0. It is recommended that new applications use the DOM Level 3 LSSerializer or JAXP's Transformation API for XML (TrAX) for serializing XML. See the Xerces documentation for more information.

Holds the state of the currently serialized element.
Author
Assaf Arkin
Version
$Revision: 476047 $ $Date: 2006-11-17 09:57:45 +0530 (Fri, 17 Nov 2006) $
See Also
BaseMarkupSerializer

Field Summary

Modifier and TypeField and Description
public boolean
afterComment

True if the last serialized node was a comment node.

public boolean
afterElement

True if the last serialized node was an element node.

public boolean
doCData

True if textual content of current element should be serialized as CDATA section.

public boolean
empty

True if element is empty.

public boolean
inCData

True while inside CData and printing text as CData.

public String
localName

The element's local tag name.

public String
namespaceURI

The element's namespace URI.

public Hashtable<K, V>
prefixes

Association between namespace URIs (keys) and prefixes (values).

public boolean
preserveSpace

True if element is space preserving.

public String
rawName

The element's raw tag name (local or prefix:local).

public boolean
unescaped

True if textual content of current element should be serialized as raw characters (unescaped).

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

afterCommentback to summary
public boolean afterComment

True if the last serialized node was a comment node.

afterElementback to summary
public boolean afterElement

True if the last serialized node was an element node.

doCDataback to summary
public boolean doCData

True if textual content of current element should be serialized as CDATA section.

emptyback to summary
public boolean empty

True if element is empty. Turns false immediately after serializing the first contents of the element.

inCDataback to summary
public boolean inCData

True while inside CData and printing text as CData.

localNameback to summary
public String localName

The element's local tag name.

namespaceURIback to summary
public String namespaceURI

The element's namespace URI.

prefixesback to summary
public Hashtable<K, V> prefixes

Association between namespace URIs (keys) and prefixes (values).

preserveSpaceback to summary
public boolean preserveSpace

True if element is space preserving.

rawNameback to summary
public String rawName

The element's raw tag name (local or prefix:local).

unescapedback to summary
public boolean unescaped

True if textual content of current element should be serialized as raw characters (unescaped).

Constructor Detail

ElementStateback to summary
public ElementState()