railo.runtime.text.xml.struct
Class XMLElementStruct

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
All Implemented Interfaces:
Serializable, Cloneable, Map, Element, Node, Dumpable, Castable, XMLObject, XMLStruct, Collection, Iteratorable, Sizeable, Struct
Direct Known Subclasses:
XMLMultiElementStruct

public class XMLElementStruct
extends XMLNodeStruct
implements 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_SYNC, TYPE_WEAKED
 
Method Summary
 Node cloneNode(boolean deep)
           
 Collection duplicate(boolean deepCopy)
           
 String getAttribute(String name)
           
 Attr getAttributeNode(String name)
           
 Attr getAttributeNodeNS(String namespaceURI, String localName)
           
 String getAttributeNS(String namespaceURI, String localName)
           
 Element getElement()
           
 NodeList getElementsByTagName(String name)
           
 NodeList getElementsByTagNameNS(String namespaceURI, String localName)
           
 TypeInfo getSchemaTypeInfo()
           
 String getTagName()
           
 boolean hasAttribute(String name)
           
 boolean hasAttributeNS(String namespaceURI, String localName)
           
 void removeAttribute(String name)
           
 Attr removeAttributeNode(Attr oldAttr)
           
 void removeAttributeNS(String namespaceURI, String localName)
           
 void setAttribute(String name, String value)
           
 Attr setAttributeNode(Attr newAttr)
           
 Attr setAttributeNodeNS(Attr newAttr)
           
 void setAttributeNS(String namespaceURI, String qualifiedName, String value)
           
 void setIdAttribute(String name, boolean isId)
           
 void setIdAttributeNode(Attr idAttr, boolean isId)
           
 void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
           
 
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, containsKey, equals, get, get, 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, remove, remove, removeChild, removeEL, replaceChild, set, setEL, 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 class java.lang.Object
getClass, hashCode, 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.Iteratorable
iterator, valueIterator
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, put, putAll, remove, values
 

Method Detail

getTagName

public String getTagName()
Specified by:
getTagName in interface Element
See Also:
Element.getTagName()

removeAttribute

public void removeAttribute(String name)
                     throws DOMException
Specified by:
removeAttribute in interface Element
Throws:
DOMException
See Also:
Element.removeAttribute(java.lang.String)

hasAttribute

public boolean hasAttribute(String name)
Specified by:
hasAttribute in interface Element
See Also:
Element.hasAttribute(java.lang.String)

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface Element
See Also:
Element.getAttribute(java.lang.String)

removeAttributeNS

public void removeAttributeNS(String namespaceURI,
                              String localName)
                       throws DOMException
Specified by:
removeAttributeNS in interface Element
Throws:
DOMException
See Also:
Element.removeAttributeNS(java.lang.String, java.lang.String)

setAttribute

public void setAttribute(String name,
                         String value)
                  throws DOMException
Specified by:
setAttribute in interface Element
Throws:
DOMException
See Also:
Element.setAttribute(java.lang.String, java.lang.String)

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)
Specified by:
hasAttributeNS in interface Element
See Also:
Element.hasAttributeNS(java.lang.String, java.lang.String)

getAttributeNode

public Attr getAttributeNode(String name)
Specified by:
getAttributeNode in interface Element
See Also:
Element.getAttributeNode(java.lang.String)

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)
                         throws DOMException
Specified by:
removeAttributeNode in interface Element
Throws:
DOMException
See Also:
Element.removeAttributeNode(org.w3c.dom.Attr)

setAttributeNode

public Attr setAttributeNode(Attr newAttr)
                      throws DOMException
Specified by:
setAttributeNode in interface Element
Throws:
DOMException
See Also:
Element.setAttributeNode(org.w3c.dom.Attr)

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr newAttr)
                        throws DOMException
Specified by:
setAttributeNodeNS in interface Element
Throws:
DOMException
See Also:
Element.setAttributeNodeNS(org.w3c.dom.Attr)

getElementsByTagName

public NodeList getElementsByTagName(String name)
Specified by:
getElementsByTagName in interface Element
See Also:
Element.getElementsByTagName(java.lang.String)

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
Specified by:
getAttributeNS in interface Element
See Also:
Element.getAttributeNS(java.lang.String, java.lang.String)

setAttributeNS

public void setAttributeNS(String namespaceURI,
                           String qualifiedName,
                           String value)
                    throws DOMException
Specified by:
setAttributeNS in interface Element
Throws:
DOMException
See Also:
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI,
                               String localName)
Specified by:
getAttributeNodeNS in interface Element
See Also:
Element.getAttributeNodeNS(java.lang.String, java.lang.String)

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)
Specified by:
getElementsByTagNameNS in interface Element
See Also:
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)

setIdAttribute

public void setIdAttribute(String name,
                           boolean isId)
                    throws DOMException
Specified by:
setIdAttribute in interface Element
Throws:
DOMException
See Also:
Element.setIdAttribute(java.lang.String, boolean)

setIdAttributeNS

public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean isId)
                      throws DOMException
Specified by:
setIdAttributeNS in interface Element
Throws:
DOMException
See Also:
Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean)

setIdAttributeNode

public void setIdAttributeNode(Attr idAttr,
                               boolean isId)
                        throws DOMException
Specified by:
setIdAttributeNode in interface Element
Throws:
DOMException
See Also:
Element.setIdAttributeNode(org.w3c.dom.Attr, boolean)

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
Specified by:
getSchemaTypeInfo in interface Element
See Also:
Element.getSchemaTypeInfo()

getElement

public Element getElement()
Returns:
the element

duplicate

public Collection duplicate(boolean deepCopy)
Specified by:
duplicate in interface Collection
Overrides:
duplicate in class XMLNodeStruct
See Also:
Collection.duplicate(boolean)

cloneNode

public Node cloneNode(boolean deep)
Specified by:
cloneNode in interface Node
Overrides:
cloneNode in class XMLNodeStruct
See Also:
Node.cloneNode(boolean)


Copyright © 2012 Railo