com.simonstl.moe.explicit
Class Document

java.lang.Object
  |
  +--com.simonstl.moe.CoreComponent
        |
        +--com.simonstl.moe.explicit.Document
All Implemented Interfaces:
AnnotableI, java.lang.Cloneable, CoreComponentI, NamingI

public class Document
extends CoreComponent

The Document class provides a foundation for MOE objects to store elements. This class is purely a placeholder at present.

The XML Declaration may be considered annotation, though we'll see. The DOCTYPE declaration will probably end up stored in ordered content some day.

version 0.01 is the initial release and contains plenty of bogus placeholder functionality.

Version:
0.01 25 August 2001
Author:
Simon St.Laurent

Fields inherited from class com.simonstl.moe.CoreComponent
annotations, complete, componentType, content, context, name, parent, unorderedContent
 
Fields inherited from interface com.simonstl.moe.CoreComponentI
ATTRIBUTE, CDATA, CHARS, COMMENT, CONTAINER, DOCTYPE, DOCUMENT, ELEMENT, END_ATTRIBUTE, END_CDATA, END_COMMENT, END_CONTAINER, END_DOCTYPE, END_DOCUMENT, END_ELEMENT, END_NAMESPACE, END_PI, END_PROPERTY, GEN_ENTITY_END, GEN_ENTITY_REF, GEN_ENTITY_START, IG_WHITESPACE, NAMESPACE_DECL, PI, PROPERTY, UNPARSED, VALUE, XML_DECL
 
Constructor Summary
Document()
           
 
Method Summary
 java.lang.Object clone()
          Non-clone implementation needs replacement.
 int getBasicType()
          Document has the basic type DOCUMENT.
 boolean listen(CoreComponentI component)
          For now, the Document class doesn't listen.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
          Returns a representation of the component as a String.
 java.lang.String toString(ComponentSetI namespaceContext)
          Returns a representation of the component as a String.
 
Methods inherited from class com.simonstl.moe.CoreComponent
add, addAll, addContent, addUnorderedContent, annotate, clearAll, clearContent, clearName, clearUnorderedContent, getAllAnnotations, getAnnotations, getContent, getIsComplete, getLocalName, getName, getNsURI, getParent, getPrefix, getQName, getTextContent, getTypes, getUnorderedContent, hasAnnotation, hasAnnotationOfType, hasAnnotations, hashCode, print, removeAllAnnotations, removeAnnotation, setContent, setContent, setIsComplete, setLocalName, setName, setNsURI, setParent, setPrefix, setQName, setUnorderedContent, textComponent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Document

public Document()
Method Detail

toString

public java.lang.String toString()
Description copied from interface: CoreComponentI
Returns a representation of the component as a String. Note: toString() is really only guaranteed effective for debugging, because namespaces may require the additional intelligence of a visitor class.
Overrides:
toString in class CoreComponent

toString

public java.lang.String toString(ComponentSetI namespaceContext)
Description copied from interface: CoreComponentI
Returns a representation of the component as a String. Given a namespaceContext, this may be more effective than the regular toString().

clone

public java.lang.Object clone()
Description copied from class: CoreComponent
Non-clone implementation needs replacement. Will be made abstract when subclasses have implementation.
Overrides:
clone in class CoreComponent

getBasicType

public int getBasicType()
Document has the basic type DOCUMENT. Duh.
Overrides:
getBasicType in class CoreComponent

listen

public boolean listen(CoreComponentI component)
For now, the Document class doesn't listen. This will be attended to shortly.
Overrides:
listen in class CoreComponent

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception