public abstract class AbstractNodeWithAttributes extends AbstractNode
Modifier and Type | Field and Description |
---|---|
static int |
MAP_TYPE_FLYWEIGHT |
static int |
MAP_TYPE_HASH |
Modifier | Constructor and Description |
---|---|
|
AbstractNodeWithAttributes(java.lang.String tag) |
protected |
AbstractNodeWithAttributes(java.lang.String tag,
Node parent) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this element.
|
protected java.lang.Object |
doGetAttribute(java.lang.String key)
Do implement this Method.
|
protected boolean |
doSetAttribute(java.lang.String key,
java.lang.Object value)
Do implement this Method.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributeMap()
Gets a map of all defined attributes.
|
static int |
getDefaultMapType()
Gets the default type of attribute-map.
|
java.util.Set<java.lang.String> |
getDefinedAttributes() |
static void |
setDefaultMapType(int mapType)
Sets the default type of attribute-map.
|
addAttributeChangeListener, addElements, addElements, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, firstElement, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, isEmpty, lastElement, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addElement, addElement, removeElement, removeElement, replaceElement, setElement
public static final int MAP_TYPE_HASH
public static final int MAP_TYPE_FLYWEIGHT
public AbstractNodeWithAttributes(java.lang.String tag)
protected AbstractNodeWithAttributes(java.lang.String tag, Node parent)
public static final void setDefaultMapType(int mapType)
mapType
- Map type.public static final int getDefaultMapType()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
NodeElement
clone
in interface NodeElement
clone
in class AbstractNode
java.lang.CloneNotSupportedException
public java.util.Set<java.lang.String> getDefinedAttributes()
public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
AbstractNode
getAttributeMap
in interface Node
getAttributeMap
in class AbstractNode
protected java.lang.Object doGetAttribute(java.lang.String key)
AbstractNode
doGetAttribute
in class AbstractNode
key
- Name of attribute, always lower case.protected boolean doSetAttribute(java.lang.String key, java.lang.Object value)
AbstractNode
doSetAttribute
in class AbstractNode
key
- Name of attribute, always lower case.value
- New value.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.