|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.moe.CoreComponent | +--com.simonstl.moe.explicit.Characters
The Characters class provides a foundation for MOE objects to store text.
version 0.01 is the initial release and contains plenty of bogus placeholder functionality.
Field Summary | |
protected java.lang.String |
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 | |
Characters()
|
Method Summary | |
void |
addContent(CoreComponentI newComponent)
Adds content to this component. |
void |
clearContent()
Clears the content for this component. |
java.lang.Object |
clone()
Clone implementation uses CoreComponent, adds text if necessary. |
int |
getBasicType()
The basic type for Characters is CHARS. |
ComponentListI |
getContent()
Returns the content for this component as a list of nodes. |
java.lang.String |
getTextContent()
Returns the content for this component as a string. |
int |
hashCode()
The hashCode() method is the same as CoreComponent's, but as character nodes generally have no nsURI or localName they'll all collide if stored in a set. |
boolean |
listen(CoreComponentI component)
For now, the Characters class passes listening to its superclass. |
static void |
main(java.lang.String[] args)
|
void |
print()
Prints a representation of the component to STDOUT |
void |
setContent(ComponentList _content)
|
void |
setContent(java.lang.String _content)
Sets the content for this component as a string. |
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, 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 |
Field Detail |
protected java.lang.String textContent
Constructor Detail |
public Characters()
Method Detail |
public int hashCode()
hashCode
in class CoreComponent
public void setContent(java.lang.String _content)
CoreComponentI
setContent
in class CoreComponent
public void setContent(ComponentList _content)
public void addContent(CoreComponentI newComponent)
CoreComponentI
addContent
in class CoreComponent
public void clearContent()
CoreComponentI
clearContent
in class CoreComponent
public java.lang.String getTextContent()
CoreComponentI
getTextContent
in class CoreComponent
public ComponentListI getContent()
CoreComponentI
getContent
in class CoreComponent
public void print()
CoreComponentI
print
in class CoreComponent
public java.lang.String toString()
CoreComponentI
toString
in class CoreComponent
public java.lang.String toString(ComponentSetI namespaceContext)
CoreComponentI
public int getBasicType()
getBasicType
in class CoreComponent
public boolean listen(CoreComponentI component) throws MOEException
listen
in class CoreComponent
public java.lang.Object clone()
clone
in class CoreComponent
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |