org.obe.xpdl.model.data
Class XMLFragment

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.data.XMLFragment
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, java.io.Serializable
Direct Known Subclasses:
ExtendedAttributes, SchemaType

public abstract class XMLFragment
extends AbstractBean

An abstract class that represents a fragment of an XML document.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static int MAX_TOSTRING_TEXT_LEN
           
 
Constructor Summary
protected XMLFragment()
           
protected XMLFragment(org.w3c.dom.Document document)
           
protected XMLFragment(java.lang.String text)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 org.w3c.dom.Document getDocument()
           
protected abstract  java.lang.String getDocumentElementName()
          Returns the unqualified name of the required document element.
protected abstract  java.lang.String getDocumentElementNamespaceURI()
          Returns the required document element namespace URI.
 java.lang.String getText()
           
 int hashCode()
           
 void setDocument(org.w3c.dom.Document document)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.util.AbstractBean
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_TOSTRING_TEXT_LEN

public static final int MAX_TOSTRING_TEXT_LEN
See Also:
Constant Field Values
Constructor Detail

XMLFragment

protected XMLFragment()

XMLFragment

protected XMLFragment(java.lang.String text)
               throws XMLException

XMLFragment

protected XMLFragment(org.w3c.dom.Document document)
               throws XMLException
Method Detail

getDocumentElementName

protected abstract java.lang.String getDocumentElementName()
Returns the unqualified name of the required document element.

Returns:
Unqualified element name.

getDocumentElementNamespaceURI

protected abstract java.lang.String getDocumentElementNamespaceURI()
Returns the required document element namespace URI.

Returns:
Required namespace URI.

getText

public final java.lang.String getText()

setText

public final void setText(java.lang.String text)
                   throws XMLException
Throws:
XMLException

getDocument

public final org.w3c.dom.Document getDocument()
                                       throws XMLException
Throws:
XMLException

setDocument

public final void setDocument(org.w3c.dom.Document document)
                       throws XMLException
Throws:
XMLException

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

toString

public final java.lang.String toString()


SourceForge.net Logo OBE-1.0 Copyright (C) 2002-2006 Adrian Price. All Rights Reserved.