edu.utexas.its.eis.tools.qwicap.template.xml.structure
Interface Item

All Superinterfaces:
Cloneable, Range
All Known Subinterfaces:
Attribute, CDATA, Comment, Content, Declaration, EmptyTag, EndTag, NamedItem, StartTag, Tag, TagWithAttributes, XMLDeclaration

public interface Item
extends Range

Common ancestor of all classes representing sections of XML documents that contain material other than whitespace.

Author:
Chris W. Johnson

Method Summary
 boolean contentEquals(Characters Contents)
          Tests the content of this item for equality with a set of characters.
 Characters getContent()
          Returns a Characters object containing the content of this item.
 
Methods inherited from interface edu.utexas.its.eis.tools.qwicap.template.xml.structure.Range
clone, isEmptyTag, isEndTag, isStartTag, isTagWithAttributes, rangeEquals, toString, write
 

Method Detail

contentEquals

boolean contentEquals(Characters Contents)
Tests the content of this item for equality with a set of characters. (See getContent() for an explanation of what constitutes "content" in this context.) The test is sensitive to case.

Parameters:
Contents - The set of characters to be tested for equality with this item's content.
Returns:
true if the content of this item matches the specified characters, false otherwise.

getContent

Characters getContent()
Returns a Characters object containing the content of this item. For an XML element like "<a href='qwicap.html'>", the content is "a href='qwicap.html'". For the text between XML elements, the content is the text without any leading or trailing whitespace. (If the text is entirely whitespace, the content is considered to consist of zero characters.) For an XML comment like "<-- Hello, world. -->", the content is "Hello, world.".

Returns:
The content of this item.