|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.StructSupport
railo.runtime.text.xml.struct.XMLNodeStruct
public class XMLNodeStruct
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 railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED |
Method Summary | |
---|---|
Node |
appendChild(Node newChild)
|
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 |
Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(Node other)
|
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()
|
boolean |
equals(Object obj)
|
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 |
NamedNodeMap |
getAttributes()
|
String |
getBaseURI()
|
boolean |
getCaseSensitive()
|
NodeList |
getChildNodes()
|
Object |
getFeature(String feature,
String version)
|
Node |
getFirstChild()
|
Node |
getLastChild()
|
String |
getLocalName()
|
Map |
getMap()
|
String |
getNamespaceURI()
|
Node |
getNextSibling()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Document |
getOwnerDocument()
|
Node |
getParentNode()
|
String |
getPrefix()
|
Node |
getPreviousSibling()
|
String |
getTextContent()
|
Object |
getUserData(String key)
|
XMLNodeList |
getXMLNodeList()
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
insertBefore(Node newChild,
Node refChild)
|
boolean |
isCaseSensitive()
|
boolean |
isDefaultNamespace(String namespaceURI)
|
boolean |
isEqualNode(Node node)
|
boolean |
isSameNode(Node other)
|
boolean |
isSupported(String feature,
String version)
|
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
void |
normalize()
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Node |
removeChild(Node oldChild)
|
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Node |
replaceChild(Node newChild,
Node oldChild)
|
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 |
void |
setNodeValue(String nodeValue)
|
void |
setPrefix(String prefix)
|
void |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
|
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Node |
toNode()
|
Iterator<Object> |
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 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 |
Method Detail |
---|
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower case
PageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
public Map getMap()
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public Node cloneNode(boolean deep)
cloneNode
in interface Node
public short getNodeType()
getNodeType
in interface Node
public void normalize()
normalize
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public boolean hasChildNodes()
hasChildNodes
in interface Node
public String getLocalName()
getLocalName
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public String getPrefix()
getPrefix
in interface Node
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public int size()
size
in interface Map
size
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
public 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 DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
public final Node toNode()
toNode
in interface XMLStruct
public boolean getCaseSensitive()
getCaseSensitive
in interface XMLObject
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public XMLNodeList getXMLNodeList()
getXMLNodeList
in interface XMLStruct
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class StructSupport
PageException
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 object
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
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
public String getBaseURI()
getBaseURI
in interface Node
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
public boolean isSameNode(Node other)
isSameNode
in interface Node
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
public boolean isEqualNode(Node node)
isEqualNode
in interface Node
public Object getFeature(String feature, String version)
getFeature
in interface Node
public Object getUserData(String key)
getUserData
in interface Node
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
public boolean isCaseSensitive()
isCaseSensitive
in interface XMLStruct
public boolean equals(Object obj)
equals
in interface Map
equals
in class StructSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |