Class XMLDepictContext.ElementState

java.lang.Object
io.guise.framework.platform.XMLDepictContext.ElementState
Enclosing interface:
XMLDepictContext

public static class XMLDepictContext.ElementState extends Object
The state of rendering for a particular element.
Author:
Garret Wilson
  • Field Details

    • open

      protected boolean open
      Whether the element has been opened but not closed.
  • Constructor Details

    • ElementState

      public ElementState(URI namespaceURI, String qname, boolean isEmptyElementAllowed)
      Constructor.
      Parameters:
      namespaceURI - The namespace URI, or null 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

      public Map<com.globalmentor.xml.spec.NsQualifiedName,String> getAttributeMap()
      Returns:
      The map of attribute values keyed to attribute qualified names.
    • getDepictStringBuilder

      public 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.