Package io.guise.framework.platform
Class XMLDepictContext.ElementState
java.lang.Object
io.guise.framework.platform.XMLDepictContext.ElementState
- Enclosing interface:
- XMLDepictContext
The state of rendering for a particular element.
- Author:
- Garret Wilson
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether the element has been opened but not closed. -
Constructor Summary
ConstructorDescriptionElementState
(URI namespaceURI, String qname, boolean isEmptyElementAllowed) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.globalmentor.xml.spec.NsQualifiedName
boolean
boolean
isOpen()
-
Field Details
-
open
protected boolean openWhether the element has been opened but not closed.
-
-
Constructor Details
-
ElementState
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 Details
-
getElementName
public com.globalmentor.xml.spec.NsQualifiedName getElementName()- Returns:
- The namespace and qualified name of the element.
-
getAttributeMap
- Returns:
- The map of attribute values keyed to attribute qualified names.
-
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.
-