Class 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.
      • Fields inherited from interface com.globalmentor.net.Resource

        URI_PROPERTY_NAME
    • 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
      • Methods inherited from class com.globalmentor.net.DefaultResource

        compareTo, getURI, setURI
      • Methods inherited from class com.globalmentor.net.AbstractResource

        equals, hashCode, toString, toString, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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

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