public final class XMLMultiElementStruct extends XMLElementStruct
Collection.Key
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
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
XMLMultiElementStruct(Array array,
boolean caseSensitive)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
Node |
cloneNode(boolean deep) |
boolean |
containsKey(Collection.Key key)
contains this key
|
Collection |
duplicate(boolean deepCopy) |
Object |
get(Collection.Key key)
return a value from the collection
|
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
Object |
get(int index) |
Object |
get(int index,
Object defaultValue) |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
remove(int index) |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null
|
Object |
removeEL(int index) |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection
|
Object |
set(int index,
Object value) |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
Object |
setEL(int index,
Object value) |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElement, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
appendChild, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clear, compareDocumentPosition, compareTo, compareTo, compareTo, compareTo, entryIterator, equals, getAttributes, getBaseURI, getCaseSensitive, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getMap, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, getXMLNodeList, hasAttributes, hasChildNodes, insertBefore, isCaseSensitive, isDefaultNamespace, isEqualNode, isSameNode, isSupported, keyIterator, keys, keysAsStringIterator, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, size, toDumpData, toNode, valueIterator
call, callWithNamedValues, clone, containsKey, containsKey, containsValue, entrySet, get, get, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf, toString, values
getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, containsKey, get, get, set, setEL
getIterator
public XMLMultiElementStruct(Array array, boolean caseSensitive) throws PageException
array
- caseSensitive
- PageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
removeEL
in class XMLNodeStruct
key
- key of the collectionpublic Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
remove
in class XMLNodeStruct
key
- key of the collectionPageException
public Object remove(int index) throws PageException
PageException
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
get
in class XMLNodeStruct
key
- key of the value to get must be lower casePageException
public Object get(int index) throws PageException
PageException
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
get
in class XMLNodeStruct
key
- key of the value to getpublic Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
setEL
in class XMLNodeStruct
key
- key of the value to getvalue
- value to setpublic Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
set
in class XMLNodeStruct
key
- key of the new valuevalue
- value to setPageException
public Object set(int index, Object value) throws PageException
PageException
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
containsKey
in class XMLNodeStruct
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
duplicate
in class XMLElementStruct
Copyright © 2015 Lucee