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

All Superinterfaces:
Cloneable, Item, Range
All Known Subinterfaces:
Attribute, Declaration, EmptyTag, EndTag, StartTag, Tag, TagWithAttributes

public interface NamedItem
extends Item

Common interface of all named items in XML documents.

Author:
Chris W. Johnson

Method Summary
 Characters getName()
          Returns the name of this item.
 Namespace getNamespace()
          Returns a Namespace object describing the XML namespace to which this item belongs.
 String getNameString()
          Returns the name of this item as a String.
 boolean nameEquals(Characters OtherName)
          Determines whether or not this item's name is the same as the sequence of characters represented by a Characters object.
 boolean nameEquals(NamedItem NI)
          Determines whether or not this item's name is the same as another item's name.
 
Methods inherited from interface edu.utexas.its.eis.tools.qwicap.template.xml.structure.Item
contentEquals, getContent
 
Methods inherited from interface edu.utexas.its.eis.tools.qwicap.template.xml.structure.Range
clone, isEmptyTag, isEndTag, isStartTag, isTagWithAttributes, rangeEquals, toString, write
 

Method Detail

nameEquals

boolean nameEquals(NamedItem NI)
Determines whether or not this item's name is the same as another item's name.

Parameters:
NI - The item whose name should be compared with this item's name.
Returns:
true if the item names match, false otherwise.

nameEquals

boolean nameEquals(Characters OtherName)
Determines whether or not this item's name is the same as the sequence of characters represented by a Characters object.

Parameters:
OtherName - A sequence of characters with which this item's name will be compared.
Returns:
true if the item name matches the supplied character sequence, false otherwise.

getName

Characters getName()
Returns the name of this item. If beNamespaceAware has not been invoked, the name may include a namespace prefix.

Returns:
The name of this item.

getNameString

String getNameString()
Returns the name of this item as a String. If beNamespaceAware has not been invoked, the name may include a namespace prefix.

Returns:
The name of this item.

getNamespace

Namespace getNamespace()
Returns a Namespace object describing the XML namespace to which this item belongs.

Returns:
The Namespace object describing the namespace to which this item belongs.