|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttest.DocumentSummary
Document summary information. This includes several count values characteristic of a document, allowing simple consistency checks across different representations of the document.
Constructor Summary | |
DocumentSummary()
|
Method Summary | |
void |
addAttribute(int length)
Count attribute. |
void |
addComment(int length)
Count comment text characters. |
void |
addContent(int length)
Count content text segment. |
void |
addElements(int count)
Add to element count. |
boolean |
dataEquals(java.lang.Object obj)
Check if data and structure is equal to this one. |
boolean |
equals(java.lang.Object obj)
Check if object is equal to this one. |
int |
getAttrCharCount()
Get attribute value character count. |
int |
getAttributeCount()
Get attribute count. |
int |
getCommentCharCount()
Get comment text character count. |
int |
getContentCount()
Get content segment count. |
int |
getElementCount()
Get element count. |
int |
getTextCharCount()
Get text content character count. |
void |
reset()
Reset count values. |
boolean |
structureEquals(java.lang.Object obj)
Check if object structure is equal to this one. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentSummary()
Method Detail |
public void reset()
public int getElementCount()
public int getContentCount()
public int getAttributeCount()
public int getTextCharCount()
public int getAttrCharCount()
public int getCommentCharCount()
public void addElements(int count)
count
- value to be added to element countpublic void addAttribute(int length)
length
- attribute value text lengthpublic void addContent(int length)
length
- attribute value text lengthpublic void addComment(int length)
length
- comment text lengthpublic boolean equals(java.lang.Object obj)
obj
- object to be compared
true
if the values match, false
if notpublic boolean dataEquals(java.lang.Object obj)
obj
- object to be compared
true
if the values match, false
if notpublic boolean structureEquals(java.lang.Object obj)
obj
- object to be compared
true
if the values match, false
if not
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |