|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beandocument.BeanBaseNode
net.beandocument.BeanElement
Base implementation for bean document elements
Field Summary |
Fields inherited from class net.beandocument.BeanBaseNode |
owner, parent |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
protected |
BeanElement(BeanDocument owner,
BeanBaseNode parent,
java.lang.String tagName,
java.lang.Object bean)
Constructor for a new Bean Element |
Method Summary | |
protected void |
addBeanSpecificAttribute(java.lang.String name,
java.lang.String value)
Adds an additional synthetic attribute to the element |
java.lang.String |
getAttribute(java.lang.String name)
Retrieves the named attribute value |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
Retrieves the named attribute object instance |
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespace,
java.lang.String name)
Retrieves the named attribute object instance with the given namespace. |
java.lang.String |
getAttributeNS(java.lang.String namespace,
java.lang.String name)
Retrieves the named attribute value with the given namespace. |
org.w3c.dom.NamedNodeMap |
getAttributes()
Retrieves all attributes of the element |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
Retrieves all direct child nodes of this element. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespace,
java.lang.String name)
Retrieves all direct child nodes of this element by given namespace. |
org.w3c.dom.Node |
getFirstChild()
Retrieves the first child node from the element |
org.w3c.dom.Node |
getLastChild()
Retrieves the last child node from the element |
java.lang.String |
getLocalName()
Retrieves the local element name |
java.lang.String |
getNodeName()
Gets the element tag name |
short |
getNodeType()
Returns the node type value |
java.lang.String |
getNodeValue()
Retrieves null value as node value like described in specification |
java.lang.String |
getTagName()
Tag name of this element implementation |
boolean |
hasAttribute(java.lang.String name)
Checks whether this element contains the attribute with the given name |
boolean |
hasAttributeNS(java.lang.String namespace,
java.lang.String name)
Checks whether this element contains the attribute with the given name |
boolean |
hasAttributes()
Checks whether this element contains any attribute |
boolean |
hasChildNodes()
Checks whether this element contains any child nodes |
void |
removeAttribute(java.lang.String name)
NOTE: This function is not implemented and therefore will just throw an exception! |
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr node)
NOTE: This function is not implemented and therefore will just throw an exception! |
void |
removeAttributeNS(java.lang.String namespace,
java.lang.String name)
NOTE: This function is not implemented and therefore will just throw an exception! |
void |
setAttribute(java.lang.String name,
java.lang.String value)
NOTE: This function is not implemented and therefore will just throw an exception! |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr node)
NOTE: This function is not implemented and therefore will just throw an exception! |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr node)
NOTE: This function is not implemented and therefore will just throw an exception! |
void |
setAttributeNS(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
NOTE: This function is not implemented and therefore will just throw an exception! |
void |
setNodeValue(java.lang.String value)
Sets the node value of this implementation. |
Methods inherited from class net.beandocument.BeanBaseNode |
appendChild, cloneNode, getElementFactory, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, insertBefore, isSupported, normalize, removeChild, replaceChild, setNextSibling, setPrefix, setPreviousSibling |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getChildNodes, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix |
Constructor Detail |
protected BeanElement(BeanDocument owner, BeanBaseNode parent, java.lang.String tagName, java.lang.Object bean)
owner
- Owned document for the new Elementparent
- Parent element of this elementtagName
- Name of the new elementbean
- Bean which is the base for the elementMethod Detail |
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface org.w3c.dom.Element
name
- Name of attribute to retrieve
Element.getAttribute(java.lang.String)
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface org.w3c.dom.Element
name
- Name of attribute to retrieve
Element.getAttributeNode(java.lang.String)
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespace, java.lang.String name)
getAttributeNodeNS
in interface org.w3c.dom.Element
namespace
- Namespace to use for the retrieved node. must be null to retrieve a value.name
- Name of the attribute to retrieve
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public java.lang.String getAttributeNS(java.lang.String namespace, java.lang.String name)
getAttributeNS
in interface org.w3c.dom.Element
namespace
- Namespace to use for the retrieved node. must be null to retrieve a value.name
- Name of the attribute to retrieve
Element.getAttributeNS(java.lang.String, java.lang.String)
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
Node.getAttributes()
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface org.w3c.dom.Element
name
- Tag name to search for in the children, "*" means all child's
Element.getElementsByTagName(java.lang.String)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespace, java.lang.String name)
getElementsByTagNameNS
in interface org.w3c.dom.Element
namespace
- Namespace to search child nodes for, need to be null or "*" to retrieve a result!name
- Tag name to search for in the children, "*" means all child's
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
Node.getFirstChild()
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
Node.getLastChild()
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
Node.getLocalName()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
Node.getNodeName()
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
Node.getNodeType()
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
- (never throws this exception)Node.getNodeValue()
public java.lang.String getTagName()
getTagName
in interface org.w3c.dom.Element
Element.getTagName()
public boolean hasAttribute(java.lang.String name)
hasAttribute
in interface org.w3c.dom.Element
name
- Attribute name to check for
Element.hasAttribute(java.lang.String)
public boolean hasAttributeNS(java.lang.String namespace, java.lang.String name)
hasAttributeNS
in interface org.w3c.dom.Element
namespace
- Namespace to look forname
- Attribute name to check for
Element.hasAttributeNS(java.lang.String, java.lang.String)
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
Node.hasAttributes()
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
Node.hasChildNodes()
public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
name
- Attribute name to remove - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.removeAttribute(java.lang.String)
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr node) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
node
- Attribute to remove - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.removeAttributeNode(org.w3c.dom.Attr)
public void removeAttributeNS(java.lang.String namespace, java.lang.String name) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
namespace
- Namespace of the attribute - ignored by this implementationname
- Attribute name to remove - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.removeAttributeNS(java.lang.String, java.lang.String)
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
name
- Attribute to modify - ignored by this implementationvalue
- Attribute value to set - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.setAttribute(java.lang.String, java.lang.String)
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr node) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
node
- Node to set - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.setAttributeNode(org.w3c.dom.Attr)
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr node) throws org.w3c.dom.DOMException
setAttributeNodeNS
in interface org.w3c.dom.Element
node
- Node to set - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.setAttributeNodeNS(org.w3c.dom.Attr)
public void setAttributeNS(java.lang.String namespace, java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttributeNS
in interface org.w3c.dom.Element
namespace
- Attribute namespace to modify - ignored by this implementationname
- Attribute to modify - ignored by this implementationvalue
- Attribute value to set - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledElement.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
public void setNodeValue(java.lang.String value) throws org.w3c.dom.DOMException
setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class BeanBaseNode
value
- Value to set
org.w3c.dom.DOMException
- (never throws this exception)Node.setNodeValue(java.lang.String)
protected void addBeanSpecificAttribute(java.lang.String name, java.lang.String value)
name
- Name of the attribute to addvalue
- Value to set to the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |