Package org.ametys.core.util.dom
Class MapElement
java.lang.Object
org.ametys.core.util.dom.AbstractAmetysNode
org.ametys.core.util.dom.AbstractAmetysElement
org.ametys.core.util.dom.MapElement
DOM Layer over a Map. Only String, List<Object> and Map<String, Object> values are allowed (recursively).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.ametys.core.util.dom.AbstractAmetysElement
_parentFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeListActual processing of child nodes.protected Map<String,AmetysAttribute> Returns a Map<name, value> corresponding to the attributes.Methods inherited from class org.ametys.core.util.dom.AbstractAmetysElement
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNodeName, getNodeType, getParentNode, getSchemaTypeInfo, getTagName, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from class org.ametys.core.util.dom.AbstractAmetysNode
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
MapElement
Constructor.- Parameters:
tagName- the tag name.values- the values.
-
MapElement
public MapElement(String tagName, Map<String, String> attributes, Map<String, ? extends Object> values) Constructor.- Parameters:
tagName- the tag name.attributes- The attributes names and values.values- the values.
-
MapElement
Constructor.- Parameters:
tagName- the tag name.values- the values.parent- the parentElementif any.
-
MapElement
public MapElement(String tagName, Map<String, String> attributes, Map<String, ? extends Object> values, Element parent) Constructor.- Parameters:
tagName- the tag name.attributes- The attributes names and values.values- the values.parent- the parentElementif any.
-
-
Method Details
-
_lookupAttributes
Description copied from class:AbstractAmetysElementReturns a Map<name, value> corresponding to the attributes.- Specified by:
_lookupAttributesin classAbstractAmetysElement- Returns:
- the name/value pairs
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode- Overrides:
getFirstChildin classAbstractAmetysNode
-
_getChildNodes
Description copied from class:AbstractAmetysNodeActual processing of child nodes. Sublclasses should override this method and not getChildNodes().- Overrides:
_getChildNodesin classAbstractAmetysNode- Returns:
- a NodeList containing all children.
-