public final class XMLAttributes extends StructSupport implements Struct, NamedNodeMap
Collection.Key
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
XMLAttributes(Node parent,
boolean caseSensitive)
constructor of the class (readonly)
|
Modifier and Type | Method and Description |
---|---|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value
|
boolean |
castToBooleanValue()
cast the castable value to a boolean value
|
DateTime |
castToDateTime()
cast the castable value to a date time object
|
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object
|
double |
castToDoubleValue()
cast the castable value to a double value
|
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value
|
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception
|
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable
|
void |
clear()
clears the collection
|
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(String str) |
boolean |
containsKey(Collection.Key key)
contains this key
|
Collection |
duplicate(boolean deepCopy) |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator() |
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
|
int |
getLength() |
Node |
getNamedItem(String name) |
Node |
getNamedItemNS(String namespaceURI,
String localName) |
Node |
item(int index) |
Iterator<Collection.Key> |
keyIterator() |
Collection.Key[] |
keys() |
Iterator<String> |
keysAsStringIterator() |
Object |
remove(Collection.Key k)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
removeEL(Collection.Key k)
removes value from collection and return it when it exists, otherwise returns null
|
Node |
removeNamedItem(String name) |
Node |
removeNamedItemNS(String namespaceURI,
String localName) |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection
|
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
Node |
setNamedItem(Node arg) |
Node |
setNamedItemNS(Node arg) |
int |
size() |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
NamedNodeMap |
toNamedNodeMap() |
Iterator<Object> |
valueIterator() |
call, callWithNamedValues, clone, containsKey, containsKey, containsValue, entrySet, equals, 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
clone, containsKey, get, get, set, setEL
getIterator
public XMLAttributes(Node parent, boolean caseSensitive)
nodeMap
- public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
public int size()
size
in interface Map
size
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public Object remove(Collection.Key k) throws PageException
Collection
remove
in interface Collection
k
- key of the collectionPageException
public Object removeEL(Collection.Key k)
Collection
removeEL
in interface Collection
k
- key of the collectionpublic void clear()
Collection
clear
in interface Map
clear
in interface Collection
public Object get(Collection.Key key) throws ExpressionException
Collection
get
in interface Collection
key
- key of the value to get must be lower caseExpressionException
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
keysAsStringIterator
in class StructSupport
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public int getLength()
getLength
in interface NamedNodeMap
public Node item(int index)
item
in interface NamedNodeMap
public Node getNamedItem(String name)
getNamedItem
in interface NamedNodeMap
public Node removeNamedItem(String name) throws DOMException
removeNamedItem
in interface NamedNodeMap
DOMException
public Node setNamedItem(Node arg) throws DOMException
setNamedItem
in interface NamedNodeMap
DOMException
public Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS
in interface NamedNodeMap
DOMException
public Node getNamedItemNS(String namespaceURI, String localName)
getNamedItemNS
in interface NamedNodeMap
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
removeNamedItemNS
in interface NamedNodeMap
DOMException
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public NamedNodeMap toNamedNodeMap()
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public String castToString() throws ExpressionException
Castable
castToString
in interface Castable
castToString
in class StructSupport
ExpressionException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
ExpressionException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class StructSupport
public double castToDoubleValue() throws ExpressionException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
ExpressionException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
public DateTime castToDateTime() throws ExpressionException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
ExpressionException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic int compareTo(boolean b) throws ExpressionException
compareTo
in interface Castable
compareTo
in class StructSupport
ExpressionException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Copyright © 2015 Lucee