railo.runtime.text.xml.struct
Class XMLMultiElementStruct
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.text.xml.struct.XMLNodeStruct
railo.runtime.text.xml.struct.XMLElementStruct
railo.runtime.text.xml.struct.XMLMultiElementStruct
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Element, Node, Dumpable, Castable, XMLObject, XMLStruct, Collection, Iteratorable, Sizeable, Struct
public final class XMLMultiElementStruct
- extends XMLElementStruct
Element that can contain more than one Element
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields 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 |
Method Summary |
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 |
remove(String key)
|
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)
|
Methods inherited from class railo.runtime.text.xml.struct.XMLElementStruct |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElement, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from class railo.runtime.text.xml.struct.XMLNodeStruct |
appendChild, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clear, compareDocumentPosition, compareTo, compareTo, compareTo, compareTo, 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, keysAsString, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, size, toDumpData, toNode |
Methods inherited from class railo.runtime.type.util.StructSupport |
clone, containsKey, containsKey, containsValue, entrySet, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, sizeOf, toString, valueIterator, values |
Methods inherited from interface org.w3c.dom.Node |
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 |
Methods inherited from interface java.util.Map |
containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, put, putAll, remove, values |
XMLMultiElementStruct
public XMLMultiElementStruct(Array array,
boolean caseSensitive)
throws PageException
- Constructor of the class
- Parameters:
array
- caseSensitive
-
- Throws:
PageException
removeEL
public Object removeEL(Collection.Key key)
- Description copied from interface:
Collection
- removes value from collection and return it when it exists, otherwise returns null
- Specified by:
removeEL
in interface Collection
- Overrides:
removeEL
in class XMLNodeStruct
- Parameters:
key
- key of the collection
- Returns:
- removed Object
- See Also:
XMLNodeStruct.removeEL(railo.runtime.type.Collection.Key)
removeEL
public Object removeEL(int index)
- See Also:
Array.removeEL(int)
remove
public Object remove(String key)
throws PageException
- Overrides:
remove
in class XMLNodeStruct
- Throws:
PageException
- See Also:
railo.runtime.type.Collection#remove(java.lang.String)
remove
public Object remove(Collection.Key key)
throws PageException
- Description copied from interface:
Collection
- removes value from collection and return it when it exists, otherwise throws a exception
- Specified by:
remove
in interface Collection
- Overrides:
remove
in class XMLNodeStruct
- Parameters:
key
- key of the collection
- Returns:
- removed Object
- Throws:
PageException
- See Also:
XMLNodeStruct.remove(railo.runtime.type.Collection.Key)
remove
public Object remove(int index)
throws PageException
- Throws:
PageException
- See Also:
Array.removeE(int)
get
public Object get(Collection.Key key)
throws PageException
- Description copied from interface:
Collection
- return a value from the collection
- Specified by:
get
in interface Collection
- Overrides:
get
in class XMLNodeStruct
- Parameters:
key
- key of the value to get must be lower case
- Returns:
- value on key position
- Throws:
PageException
- See Also:
XMLNodeStruct.get(railo.runtime.type.Collection.Key)
get
public Object get(int index)
throws PageException
- Throws:
PageException
- See Also:
Array.getE(int)
get
public Object get(Collection.Key key,
Object defaultValue)
- Description copied from interface:
Collection
- return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
- Specified by:
get
in interface Collection
- Overrides:
get
in class XMLNodeStruct
- Parameters:
key
- key of the value to get
- Returns:
- value on key position or null
- See Also:
Collection.get(java.lang.String, java.lang.Object)
get
public Object get(int index,
Object defaultValue)
- See Also:
Array.get(int, java.lang.Object)
setEL
public Object setEL(Collection.Key key,
Object value)
- Description copied from interface:
Collection
- sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
- Specified by:
setEL
in interface Collection
- Overrides:
setEL
in class XMLNodeStruct
- Parameters:
key
- key of the value to getvalue
- value to set
- Returns:
- value on key position or null
- See Also:
XMLNodeStruct.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
setEL
public Object setEL(int index,
Object value)
- Parameters:
index
- value
-
- Returns:
set
public Object set(Collection.Key key,
Object value)
throws PageException
- Description copied from interface:
Collection
- sets a value to the collection
- Specified by:
set
in interface Collection
- Overrides:
set
in class XMLNodeStruct
- Parameters:
key
- key of the new valuevalue
- value to set
- Returns:
- value setted
- Throws:
PageException
- See Also:
XMLNodeStruct.set(railo.runtime.type.Collection.Key, java.lang.Object)
set
public Object set(int index,
Object value)
throws PageException
- Throws:
PageException
- See Also:
Array.setE(int, java.lang.Object)
containsKey
public boolean containsKey(Collection.Key key)
- Description copied from interface:
Collection
- contains this key
- Specified by:
containsKey
in interface Collection
- Overrides:
containsKey
in class XMLNodeStruct
- Returns:
- returns if collection has a key with given name
- See Also:
XMLNodeStruct.containsKey(railo.runtime.type.Collection.Key)
duplicate
public Collection duplicate(boolean deepCopy)
- Specified by:
duplicate
in interface Collection
- Overrides:
duplicate
in class XMLElementStruct
- See Also:
Collection.duplicate(boolean)
cloneNode
public Node cloneNode(boolean deep)
- Specified by:
cloneNode
in interface Node
- Overrides:
cloneNode
in class XMLElementStruct
- See Also:
Node.cloneNode(boolean)
Copyright © 2012 Railo