net.beandocument
Class BeanDocumentFragment

java.lang.Object
  extended bynet.beandocument.BeanBaseNode
      extended bynet.beandocument.BeanDocumentFragment
All Implemented Interfaces:
org.w3c.dom.DocumentFragment, org.w3c.dom.Node

public class BeanDocumentFragment
extends BeanBaseNode
implements org.w3c.dom.DocumentFragment

Document Fragment implementation for bean

Author:
Jens Scheffler

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 BeanDocumentFragment(BeanDocument owner)
          Constructor for a new document fragment
 
Method Summary
 org.w3c.dom.NamedNodeMap getAttributes()
          Attributes of the fragment
 org.w3c.dom.NodeList getChildNodes()
          Returns empty node list
 org.w3c.dom.Node getFirstChild()
          First child node
 org.w3c.dom.Node getLastChild()
          Last child node
 java.lang.String getLocalName()
          Local name of this node
 java.lang.String getNodeName()
          Node name of this fragment
 short getNodeType()
          Fixed node type of this document fragment
 java.lang.String getNodeValue()
          Node value of this fragment
 boolean hasAttributes()
          Returns false since this fragment has no attributes
 boolean hasChildNodes()
          Returns false since this fragment has no attributes
 
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

BeanDocumentFragment

protected BeanDocumentFragment(BeanDocument owner)
Constructor for a new document fragment

Parameters:
owner - Owner document
Method Detail

getNodeType

public short getNodeType()
Fixed node type of this document fragment

Specified by:
getNodeType in interface org.w3c.dom.Node
Returns:
fixed value of Node.DOCUMENT_FRAGMENT_NODE
See Also:
Node.getNodeType()

hasAttributes

public boolean hasAttributes()
Returns false since this fragment has no attributes

Specified by:
hasAttributes in interface org.w3c.dom.Node
Returns:
false value
See Also:
Node.hasAttributes()

hasChildNodes

public boolean hasChildNodes()
Returns false since this fragment has no attributes

Specified by:
hasChildNodes in interface org.w3c.dom.Node
Returns:
false value
See Also:
Node.hasChildNodes()

getLocalName

public java.lang.String getLocalName()
Local name of this node

Specified by:
getLocalName in interface org.w3c.dom.Node
Returns:
same like getNodeName()
See Also:
Node.getLocalName()

getNodeName

public java.lang.String getNodeName()
Node name of this fragment

Specified by:
getNodeName in interface org.w3c.dom.Node
Returns:
fixed value of "#document-fragment"
See Also:
Node.getNodeName()

getNodeValue

public java.lang.String getNodeValue()
                              throws org.w3c.dom.DOMException
Node value of this fragment

Specified by:
getNodeValue in interface org.w3c.dom.Node
Returns:
null value
Throws:
org.w3c.dom.DOMException - (never)
See Also:
Node.getNodeValue()

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Attributes of the fragment

Specified by:
getAttributes in interface org.w3c.dom.Node
Returns:
null value
See Also:
Node.getAttributes()

getFirstChild

public org.w3c.dom.Node getFirstChild()
First child node

Specified by:
getFirstChild in interface org.w3c.dom.Node
Returns:
null value
See Also:
Node.getFirstChild()

getLastChild

public org.w3c.dom.Node getLastChild()
Last child node

Specified by:
getLastChild in interface org.w3c.dom.Node
Returns:
null value
See Also:
Node.getLastChild()

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Returns empty node list

Specified by:
getChildNodes in interface org.w3c.dom.Node
Returns:
empty node list
See Also:
Node.getChildNodes()