|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beandocument.BeanBaseNode
net.beandocument.BeanAttribute
Implementation for attributes in bean context
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 |
BeanAttribute(BeanDocument owner,
BeanBaseNode parent,
java.lang.String name,
java.lang.String value)
Constructs a new Attribute based on the given object |
Method Summary | |
org.w3c.dom.NamedNodeMap |
getAttributes()
Retrieves the attributes of the node. |
org.w3c.dom.NodeList |
getChildNodes()
Retrieves the list of child nodes, which is an empty list in this case. |
org.w3c.dom.Node |
getFirstChild()
Retrieves the first child, which is (of course) not existing here. |
org.w3c.dom.Node |
getLastChild()
Retrieves the last child, which is (of course) not existing here. |
java.lang.String |
getLocalName()
Retrieves the local attribute name which corresponds with the attribute name itself |
java.lang.String |
getName()
Retrieves attribute name |
java.lang.String |
getNodeName()
Retrieves the name of the node, which corresponds with the attribute name |
short |
getNodeType()
Retrieves the node type of the attribute, will always return a constant value |
java.lang.String |
getNodeValue()
Retrieves the node value which corresponds with the attribute value |
org.w3c.dom.Element |
getOwnerElement()
Gets the parent element where this attribute belongs to |
boolean |
getSpecified()
Returns flag if this attribute was specified or generate implicit |
java.lang.String |
getValue()
Retrieves the value of the attribute |
boolean |
hasAttributes()
Returns always false |
boolean |
hasChildNodes()
Returns always false |
void |
setValue(java.lang.String value)
NOTE: This function is not implemented and therefore will just throw an exception! |
Methods inherited from class net.beandocument.BeanBaseNode |
appendChild, cloneNode, getElementFactory, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, insertBefore, isSupported, normalize, removeChild, replaceChild, setNextSibling, setNodeValue, 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, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
protected BeanAttribute(BeanDocument owner, BeanBaseNode parent, java.lang.String name, java.lang.String value)
owner
- Owner document of this elementparent
- Parent element of the new elementname
- tag name of the new elementvalue
- Value bean to use for tag contentMethod Detail |
public boolean getSpecified()
getSpecified
in interface org.w3c.dom.Attr
Attr.getSpecified()
public java.lang.String getName()
getName
in interface org.w3c.dom.Attr
Attr.getName()
public java.lang.String getValue()
getValue
in interface org.w3c.dom.Attr
Attr.getValue()
public void setValue(java.lang.String value) throws org.w3c.dom.DOMException
setValue
in interface org.w3c.dom.Attr
value
- New value to set - ignored by this implementation
org.w3c.dom.DOMException
- If method is calledAttr.setValue(java.lang.String)
public org.w3c.dom.Element getOwnerElement()
getOwnerElement
in interface org.w3c.dom.Attr
Attr.getOwnerElement()
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
Node.getNodeType()
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 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 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 org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
Node.getAttributes()
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 org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
Node.getChildNodes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |