net.sf.vex.dom
Class DocumentFragment

java.lang.Object
  |
  +--net.sf.vex.dom.DocumentFragment

public class DocumentFragment
extends java.lang.Object

Represents a fragment of an XML document.


Field Summary
static java.lang.String MIME_TYPE
          Mime type representing document fragments: "text/x-vex-document-fragment"
 
Constructor Summary
DocumentFragment(Content content, Element[] elements)
          Class constructor.
 
Method Summary
 Content getContent()
          Returns the Content object holding this fragment's content.
 Element[] getElements()
          Returns the elements that make up this fragment.
 int getLength()
          Returns the number of characters, including sentinels, represented by the fragment.
 java.lang.String[] getNodeNames()
          Returns an array of element names and Validator.PCDATA representing the content of the fragment.
 Node[] getNodes()
          Returns the nodes that make up this fragment, including elements and Text objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_TYPE

public static final java.lang.String MIME_TYPE
Mime type representing document fragments: "text/x-vex-document-fragment"

See Also:
Constant Field Values
Constructor Detail

DocumentFragment

public DocumentFragment(Content content,
                        Element[] elements)
Class constructor.

Parameters:
content - Content holding the fragment's content.
elements - Elements that make up this fragment.
Method Detail

getContent

public Content getContent()
Returns the Content object holding this fragment's content.


getLength

public int getLength()
Returns the number of characters, including sentinels, represented by the fragment.


getElements

public Element[] getElements()
Returns the elements that make up this fragment.


getNodeNames

public java.lang.String[] getNodeNames()
Returns an array of element names and Validator.PCDATA representing the content of the fragment.


getNodes

public Node[] getNodes()
Returns the nodes that make up this fragment, including elements and Text objects.