|
||||||||||
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_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)
|
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 |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
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 |
Object |
remove(String key)
|
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()
|
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 class java.lang.Object |
---|
getClass, hashCode, 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.Iteratorable |
---|
iterator, valueIterator |
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, put, putAll, remove, values |
Method Detail |
---|
public Object remove(String key) throws PageException
PageException
railo.runtime.type.Collection#remove(java.lang.String)
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
Collection.remove(railo.runtime.type.Collection.Key)
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
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
Collection.get(railo.runtime.type.Collection.Key)
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
Collection.set(railo.runtime.type.Collection.Key, java.lang.Object)
public Map getMap()
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
Collection.duplicate(boolean)
public Node cloneNode(boolean deep)
cloneNode
in interface Node
Node.cloneNode(boolean)
public short getNodeType()
getNodeType
in interface Node
Node.getNodeType()
public void normalize()
normalize
in interface Node
Node.normalize()
public boolean hasAttributes()
hasAttributes
in interface Node
Node.hasAttributes()
public boolean hasChildNodes()
hasChildNodes
in interface Node
Node.hasChildNodes()
public String getLocalName()
getLocalName
in interface Node
Node.getLocalName()
public String getNamespaceURI()
getNamespaceURI
in interface Node
Node.getNamespaceURI()
public String getNodeName()
getNodeName
in interface Node
Node.getNodeName()
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
Node.getNodeValue()
public String getPrefix()
getPrefix
in interface Node
Node.getPrefix()
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
Node.setNodeValue(java.lang.String)
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
Node.setPrefix(java.lang.String)
public Document getOwnerDocument()
getOwnerDocument
in interface Node
Node.getOwnerDocument()
public NamedNodeMap getAttributes()
getAttributes
in interface Node
Node.getAttributes()
public Node getFirstChild()
getFirstChild
in interface Node
Node.getFirstChild()
public Node getLastChild()
getLastChild
in interface Node
Node.getLastChild()
public Node getNextSibling()
getNextSibling
in interface Node
Node.getNextSibling()
public Node getParentNode()
getParentNode
in interface Node
Node.getParentNode()
public Node getPreviousSibling()
getPreviousSibling
in interface Node
Node.getPreviousSibling()
public NodeList getChildNodes()
getChildNodes
in interface Node
Node.getChildNodes()
public boolean isSupported(String feature, String version)
isSupported
in interface Node
Node.isSupported(java.lang.String, java.lang.String)
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
Node.appendChild(org.w3c.dom.Node)
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
Node.removeChild(org.w3c.dom.Node)
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public int size()
size
in interface Map
size
in interface Collection
Collection.size()
public String[] keysAsString()
keysAsString
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
Collection.clear()
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
Collection.get(railo.runtime.type.Collection.Key, java.lang.Object)
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
Collection.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
public Iterator keyIterator()
keyIterator
in interface Iteratorable
Iteratorable.keyIterator()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public final Node toNode()
toNode
in interface XMLStruct
XMLStruct.toNode()
public boolean getCaseSensitive()
getCaseSensitive
in interface XMLObject
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
Collection.containsKey(railo.runtime.type.Collection.Key)
public XMLNodeList getXMLNodeList()
getXMLNodeList
in interface XMLStruct
XMLStruct.getXMLNodeList()
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class StructSupport
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
StructSupport.castToString(java.lang.String)
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
ExpressionException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class StructSupport
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws ExpressionException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
ExpressionException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws ExpressionException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
ExpressionException
Castable.castToDateTime()
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
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(java.lang.String)
public String getBaseURI()
getBaseURI
in interface Node
Node.getBaseURI()
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
Node.compareDocumentPosition(org.w3c.dom.Node)
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
Node.setTextContent(java.lang.String)
public boolean isSameNode(Node other)
isSameNode
in interface Node
Node.isSameNode(org.w3c.dom.Node)
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
Node.lookupPrefix(java.lang.String)
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
Node.isDefaultNamespace(java.lang.String)
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
Node.lookupNamespaceURI(java.lang.String)
public boolean isEqualNode(Node node)
isEqualNode
in interface Node
Node.isEqualNode(org.w3c.dom.Node)
public Object getFeature(String feature, String version)
getFeature
in interface Node
Node.getFeature(java.lang.String, java.lang.String)
public Object getUserData(String key)
getUserData
in interface Node
Node.getUserData(java.lang.String)
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
Node.getTextContent()
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
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 |