|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.xml.Tag
The Tag
class was created to hold the properties and attributes of an XML
tag object, but it could also be used to hold tag information for HTML tags and other
user defined tags.
Attributes are stored in a list of Attribute
objects that will store
information for each of the individual attributes.
Constructor Summary | |
Tag(java.lang.String sName)
Ensure that we will always have a tag name |
Method Summary | |
void |
addAttribute(Attribute attr)
Add an Attribute object to this tag |
void |
clearAttributes()
Clear all of the attributes listed for this tag |
void |
dump()
Outputs all of the tag data to the print stream |
boolean |
equals(java.lang.Object obj)
|
Attribute |
getAttribute(int index)
Retrieve a single attribute at the asking index position for this tag |
Attribute |
getAttribute(java.lang.String attrName)
Retrieve a single attribute matching the name for this attribute |
int |
getAttributeCount()
Retrieve the number of attributes for this tag |
java.util.Vector |
getAttributes()
Retrieve the entire list of attributes for this tag |
int |
getColumnNumber()
Retrieve the file column number of this tag |
int |
getDepth()
Retrieve the depth count for this tag |
int |
getLineNumber()
Retrieve the file line number of this tag |
java.lang.String |
getName()
Retrieve the name of this tag |
java.lang.String |
getNameSpace()
Retrieve the name space for this tag |
java.lang.String |
getPositionDescription()
Retrieve a description of the position for this tag |
java.lang.String |
getPrefix()
Retrieve the prefix value of this tag |
java.lang.String |
getText()
Retrieve the text contained within start and end of the tag set that this Tag object was created from. |
void |
setColumnNumber(int nColumn)
Set the file column number of this tag. |
void |
setDepth(int nDepth)
Set the XML tag depth count of this tag. |
void |
setLineNumber(int nLine)
Set the file line number of this tag. |
void |
setName(java.lang.String sName)
Set the name of this tag. |
void |
setNameSpace(java.lang.String sNameSpace)
Set the name space for this tag. |
void |
setPositionDescription(java.lang.String sDescription)
Set the position description for this tag. |
void |
setPrefix(java.lang.String sPrefix)
Set the prefix value for this tag. |
void |
setText(java.lang.String sText)
Set the tag set text of this tag. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Tag(java.lang.String sName)
sName
- StringMethod Detail |
public int getAttributeCount()
public java.util.Vector getAttributes()
public Attribute getAttribute(int index)
index
-
Attribute
object that contains all of the information that
makes up a single attributepublic Attribute getAttribute(java.lang.String attrName)
Attribute
object that contains all of the information that
makes up a single attributepublic void addAttribute(Attribute attr)
Attribute
object to this tag
attr
- Attribute
public void clearAttributes()
public int getColumnNumber()
public int getDepth()
public int getLineNumber()
public java.lang.String getName()
public java.lang.String getNameSpace()
public java.lang.String getPositionDescription()
public java.lang.String getPrefix()
public java.lang.String getText()
Tag
object was created from.
public void setColumnNumber(int nColumn)
nColumn
- intpublic void setDepth(int nDepth)
nDepth
- intpublic void setLineNumber(int nLine)
nLine
- intpublic void setName(java.lang.String sName)
sName
- Stringpublic void setNameSpace(java.lang.String sNameSpace)
sNameSpace
- Stringpublic void setPositionDescription(java.lang.String sDescription)
sDescription
- Stringpublic void setPrefix(java.lang.String sPrefix)
sPrefix
- Stringpublic void setText(java.lang.String sText)
sText
- Stringpublic void dump()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |