Class ElementState
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.xml.serialize.ElementState
-
public class ElementState extends java.lang.ObjectHolds the state of the currently serialized element.- See Also:
BaseMarkupSerializer
-
-
Field Summary
Fields Modifier and Type Field Description booleanafterCommentTrue if the last serialized node was a comment node.booleanafterElementTrue if the last serialized node was an element node.booleandoCDataTrue if textual content of current element should be serialized as CDATA section.booleanemptyTrue if element is empty.booleaninCDataTrue while inside CData and printing text as CData.java.lang.StringlocalNameThe element's local tag name.java.lang.StringnamespaceURIThe element's namespace URI.java.util.Map<java.lang.String,java.lang.String>prefixesAssociation between namespace URIs (keys) and prefixes (values).booleanpreserveSpaceTrue if element is space preserving.java.lang.StringrawNameThe element's raw tag name (local or prefix:local).booleanunescapedTrue if textual content of current element should be serialized as raw characters (unescaped).
-
Constructor Summary
Constructors Constructor Description ElementState()
-
-
-
Field Detail
-
rawName
public java.lang.String rawName
The element's raw tag name (local or prefix:local).
-
localName
public java.lang.String localName
The element's local tag name.
-
namespaceURI
public java.lang.String namespaceURI
The element's namespace URI.
-
preserveSpace
public boolean preserveSpace
True if element is space preserving.
-
empty
public boolean empty
True if element is empty. Turns false immediately after serializing the first contents of the element.
-
afterElement
public boolean afterElement
True if the last serialized node was an element node.
-
afterComment
public boolean afterComment
True if the last serialized node was a comment node.
-
doCData
public boolean doCData
True if textual content of current element should be serialized as CDATA section.
-
unescaped
public boolean unescaped
True if textual content of current element should be serialized as raw characters (unescaped).
-
inCData
public boolean inCData
True while inside CData and printing text as CData.
-
prefixes
public java.util.Map<java.lang.String,java.lang.String> prefixes
Association between namespace URIs (keys) and prefixes (values).
-
-