railo.runtime.text.xml.struct
Class XMLMultiElementStruct

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.text.xml.struct.XMLNodeStruct
          extended by railo.runtime.text.xml.struct.XMLElementStruct
              extended by railo.runtime.text.xml.struct.XMLMultiElementStruct
All Implemented Interfaces:
Serializable, Cloneable, Map, Element, Node, Dumpable, Castable, XMLObject, XMLStruct, Collection, ForEachIteratorable, Iteratorable, Objects, Sizeable, Struct

public final class XMLMultiElementStruct
extends XMLElementStruct

Element that can contain more than one Element

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
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
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
 
Constructor Summary
XMLMultiElementStruct(Array array, boolean caseSensitive)
          Constructor of the class
 
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 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, 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
 
Methods inherited from class railo.runtime.type.util.StructSupport
call, callWithNamedValues, clone, containsKey, containsKey, containsValue, entrySet, get, get, get, get, get, getIterator, hashCode, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
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 railo.runtime.type.Collection
clone, containsKey, get, get, set, setEL
 
Methods inherited from interface railo.runtime.type.ForEachIteratorable
getIterator
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, put, putAll, remove, values
 
Methods inherited from interface railo.runtime.type.Sizeable
sizeOf
 
Methods inherited from interface railo.runtime.type.Objects
call, callWithNamedValues, get, get, set, setEL
 

Constructor Detail

XMLMultiElementStruct

public XMLMultiElementStruct(Array array,
                             boolean caseSensitive)
                      throws PageException
Constructor of the class

Parameters:
array -
caseSensitive -
Throws:
PageException
Method Detail

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

removeEL

public Object removeEL(int index)

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

remove

public Object remove(int index)
              throws PageException
Throws:
PageException

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

get

public Object get(int index)
           throws PageException
Throws:
PageException

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

get

public Object get(int index,
                  Object defaultValue)

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 get
value - value to set
Returns:
value on key position or null

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 value
value - value to set
Returns:
value setted
Throws:
PageException

set

public Object set(int index,
                  Object value)
           throws PageException
Throws:
PageException

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

duplicate

public Collection duplicate(boolean deepCopy)
Specified by:
duplicate in interface Collection
Overrides:
duplicate in class XMLElementStruct

cloneNode

public Node cloneNode(boolean deep)
Specified by:
cloneNode in interface Node
Overrides:
cloneNode in class XMLElementStruct


Copyright © 2012 Railo