Class XMLDepictContext.ElementState

  • Enclosing interface:
    XMLDepictContext

    public static class XMLDepictContext.ElementState
    extends java.lang.Object
    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.
    • Field Detail

      • open

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

      • ElementState

        public ElementState​(java.net.URI namespaceURI,
                            java.lang.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 Detail

      • getElementName

        public com.globalmentor.xml.spec.NsQualifiedName getElementName()
        Returns:
        The namespace and qualified name of the element.
      • getAttributeMap

        public java.util.Map<com.globalmentor.xml.spec.NsQualifiedName,​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.