|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.fragment.DocComponent | +--com.simonstl.fragment.Attribute
The attribute class stores information about an attribute.
Version 0.04 removes the isAttribute
property.
Version 0.03 adds improved print() and
toString()
support.
Version 0.02 supports the cleanDuplicate()
method to avoid shallow copying issues.
Version 0.01 is based on the Skip
and Element
classes.
Field Summary | |
protected java.lang.String |
type
|
Fields inherited from class com.simonstl.fragment.DocComponent |
after, before, content, localName, nsURI, parentElement, prefix |
Constructor Summary | |
protected |
Attribute()
Attribute classes have NS names, and sometimes content. |
|
Attribute(DocComponent oldDocComponent)
Creates a new attribute from an old DocComponent. |
|
Attribute(java.lang.String _nsURI,
java.lang.String _localName,
java.lang.String _prefix)
Attribute classes have NS names, and sometimes content. |
|
Attribute(java.lang.String _nsURI,
java.lang.String _localName,
java.lang.String _prefix,
java.lang.String _type,
java.lang.String _content)
Attribute classes have NS names, and sometimes content. |
Method Summary | |
DocComponent |
cleanDuplicate()
Returns a clean copy of the component and its contents. |
void |
eventComponent(FragmentFilter handler)
Describes the content for this component as a series of SAX events. |
java.lang.String |
getKey()
Attributes return a key prefaced by @. |
boolean |
matchComponent(DocComponent compare)
Tests equality for rule-matching. |
boolean |
matchComponent(java.lang.String match)
Takes a string representing a component description and returns true or false to indicate whether or not it matches this component. |
void |
print()
Prints a representation of the component to STDOUT |
java.lang.String |
toString()
Returns a representation of the component as a String. |
Methods inherited from class com.simonstl.fragment.DocComponent |
addContent, clearContent, clone, getAfter, getBefore, getContent, getLocalName, getNsURI, getParentElement, getPrefix, getType, processComponentContent, setAfter, setBefore, setContent, setLocalName, setNsURI, setParentElement, setPrefix, setType |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String type
Constructor Detail |
public Attribute(java.lang.String _nsURI, java.lang.String _localName, java.lang.String _prefix, java.lang.String _type, java.lang.String _content)
public Attribute(java.lang.String _nsURI, java.lang.String _localName, java.lang.String _prefix)
public Attribute(DocComponent oldDocComponent)
protected Attribute()
Method Detail |
public boolean matchComponent(DocComponent compare)
DocComponent
matchComponent
in class DocComponent
public boolean matchComponent(java.lang.String match)
DocComponent
matchComponent
in class DocComponent
public java.lang.String getKey()
getKey
in class DocComponent
public void eventComponent(FragmentFilter handler) throws org.xml.sax.SAXException
DocComponent
FragmentFilter
supports some events (startChars and endChars) which
are extensions to the existing SAX models and which serve to keep the stacks under control.eventComponent
in class DocComponent
public DocComponent cleanDuplicate()
DocComponent
cleanDuplicate
in class DocComponent
public void print()
DocComponent
print
in class DocComponent
public java.lang.String toString()
DocComponent
toString
in class DocComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |