com.guiseframework.platform
Class XMLDepictContext.ElementState

java.lang.Object
  extended by com.globalmentor.net.DefaultResource
      extended by com.globalmentor.text.xml.QualifiedName
          extended by com.guiseframework.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.text.xml.QualifiedName

The state of rendering for a particular element.

Author:
Garret Wilson

Field Summary
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
XMLDepictContext.ElementState(java.lang.String namespaceURI, java.lang.String qname, boolean isEmptyElementAllowed)
          Constructor.
 
Method Summary
 java.util.Map<com.globalmentor.text.xml.QualifiedName,java.lang.String> getAttributeMap()
           
 java.lang.StringBuilder getDepictStringBuilder()
           
 boolean isEmptyElementAllowed()
           
 boolean isOpen()
          Whether the element has been opened but not closed.
 
Methods inherited from class com.globalmentor.text.xml.QualifiedName
createReferenceURI, createReferenceURI, getID, getLocalName, getNamespaceURI, getPrefix, getQName
 
Methods inherited from class com.globalmentor.net.DefaultResource
compareTo, equals, getURI, hashCode, setURI, 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

XMLDepictContext.ElementState

public XMLDepictContext.ElementState(java.lang.String 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.text.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()
Whether the element has been opened but not closed.



Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.