Package io.guise.framework.platform
Class XMLDepictContext.ElementState
- java.lang.Object
-
- com.globalmentor.net.AbstractResource
-
- com.globalmentor.net.DefaultResource
-
- com.globalmentor.xml.QualifiedName
-
- io.guise.framework.platform.XMLDepictContext.ElementState
-
- All Implemented Interfaces:
com.globalmentor.model.IDed<java.net.URI>
,com.globalmentor.net.Resource
,java.lang.Comparable<com.globalmentor.net.Resource>
- Enclosing interface:
- XMLDepictContext
public static class XMLDepictContext.ElementState extends com.globalmentor.xml.QualifiedName
The state of rendering for a particular element.- Author:
- Garret Wilson
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
open
Whether the element has been opened but not closed.
-
Constructor Summary
Constructors Constructor Description ElementState(java.net.URI namespaceURI, java.lang.String qname, boolean isEmptyElementAllowed)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<com.globalmentor.xml.QualifiedName,java.lang.String>
getAttributeMap()
java.lang.StringBuilder
getDepictStringBuilder()
boolean
isEmptyElementAllowed()
boolean
isOpen()
-
Methods inherited from class com.globalmentor.xml.QualifiedName
getID, getLocalName, getNamespaceURI, getPrefix, getQName
-
-
-
-
Constructor Detail
-
ElementState
public ElementState(java.net.URI namespaceURI, java.lang.String qname, boolean isEmptyElementAllowed)
Constructor.- Parameters:
namespaceURI
- The namespace URI, ornull
if there is no namespace URI..qname
- The combined prefix:localName qualified name.isEmptyElementAllowed
- Whether an empty element can be created if there is no content.
-
-
Method Detail
-
getAttributeMap
public java.util.Map<com.globalmentor.xml.QualifiedName,java.lang.String> getAttributeMap()
- Returns:
- The map of attribute values keyed to attribute qualified names.
-
getDepictStringBuilder
public java.lang.StringBuilder getDepictStringBuilder()
- Returns:
- The string builder that holds the element content being collected for depiction.
-
isEmptyElementAllowed
public boolean isEmptyElementAllowed()
- Returns:
- Whether an empty element can be created if there is no content.
-
isOpen
public boolean isOpen()
- Returns:
- Whether the element has been opened but not closed.
-
-