com.simonstl.moe.explicit
Class EndProcInst

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

public class EndProcInst
extends ProcInst

The EndProcInst class provides a foundation for MOE objects to mark the ends of processing instructions.

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.explicit.Characters
textContent
 
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
EndProcInst()
           
 
Method Summary
 java.lang.Object clone()
          Clone implementation uses CoreComponent, adds text if necessary.
 int getBasicType()
          EndProcInst objects have basic type END_PI.
 int hashCode()
          The hashCode() method is the same as Characters, but as PI nodes generally have no nsURI or localName they'll all collide if stored in a set.
 boolean listen(CoreComponentI component)
          For now, the EndProcInst class doesn't listen.
static void main(java.lang.String[] args)
           
 void print()
          Prints a representation of the component to STDOUT
 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.explicit.Characters
addContent, clearContent, getContent, getTextContent, setContent, setContent
 
Methods inherited from class com.simonstl.moe.CoreComponent
add, addAll, addUnorderedContent, annotate, clearAll, clearName, clearUnorderedContent, getAllAnnotations, getAnnotations, getIsComplete, getLocalName, getName, getNsURI, getParent, getPrefix, getQName, getTypes, getUnorderedContent, hasAnnotation, hasAnnotationOfType, hasAnnotations, removeAllAnnotations, removeAnnotation, 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

EndProcInst

public EndProcInst()
Method Detail

hashCode

public int hashCode()
The hashCode() method is the same as Characters, but as PI nodes generally have no nsURI or localName they'll all collide if stored in a set. Processing instructions must be stored in ordered content to work reliably. If you really want to store PIs in unordered content, override this.
Overrides:
hashCode in class ProcInst

print

public void print()
Description copied from interface: CoreComponentI
Prints a representation of the component to STDOUT
Overrides:
print in class ProcInst

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 ProcInst

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().
Overrides:
toString in class ProcInst

getBasicType

public int getBasicType()
EndProcInst objects have basic type END_PI.
Overrides:
getBasicType in class ProcInst

listen

public boolean listen(CoreComponentI component)
For now, the EndProcInst class doesn't listen.
Overrides:
listen in class ProcInst

clone

public java.lang.Object clone()
Clone implementation uses CoreComponent, adds text if necessary.
Overrides:
clone in class ProcInst

main

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