com.ibm.dse.tools.workbench.base
Class DefaultTag

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.base.DefaultTag

public class DefaultTag
extends java.lang.Object
implements Tag

This class implements a generic tag object.


Constructor Summary
DefaultTag()
          This constructor creates a DefaultTag object.
 
Method Summary
 void addAttribute(TagAttribute anAttribute)
          This method adds an attribute into the attribute list.
 void addSubTag(Tag aSubTag)
          This method inserts a new Tag into the Sub Tags List.
 TagAttribute[] getAttrList()
          This method returns the Attribute list for this Tag.
 java.lang.String getName()
          This method return the name of the tag.
 Tag[] getSubTags()
          getSubTags method comment.
 boolean isAComposedTag()
          isAComposedTag method comment.
 void setAttrList(TagAttribute[] aAttrList)
          setAttrList method comment.
 void setName(java.lang.String aName)
          setName method comment.
 void setSubTagAt(Tag aSubTag, int index)
          setSubTagAt method comment.
 void setSubTags(Tag[] someSubTags)
          setSubTags method comment.
 java.lang.String toString()
          Returns a String representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTag

public DefaultTag()
This constructor creates a DefaultTag object.
Method Detail

addAttribute

public void addAttribute(TagAttribute anAttribute)
This method adds an attribute into the attribute list.
Specified by:
addAttribute in interface Tag
Parameters:
anAttribute - TagAttribute The attibute to be inserted.

addSubTag

public void addSubTag(Tag aSubTag)
This method inserts a new Tag into the Sub Tags List.
Specified by:
addSubTag in interface Tag
Parameters:
aSubTag - Tag The tag to be inserted.

getAttrList

public TagAttribute[] getAttrList()
This method returns the Attribute list for this Tag.
Specified by:
getAttrList in interface Tag
Returns:
TagAttribute[] The array of TagAttribute objects to be returned.

getName

public java.lang.String getName()
This method return the name of the tag.
Specified by:
getName in interface Tag
Returns:
String, the name of the tag to be returned.

getSubTags

public Tag[] getSubTags()
getSubTags method comment.
Specified by:
getSubTags in interface Tag
Tags copied from interface: Tag
Returns:
com.ibm.dse.tools.workbench.base.Tag[]

isAComposedTag

public boolean isAComposedTag()
isAComposedTag method comment.
Specified by:
isAComposedTag in interface Tag
Tags copied from interface: Tag
Returns:
boolean

setAttrList

public void setAttrList(TagAttribute[] aAttrList)
setAttrList method comment.
Specified by:
setAttrList in interface Tag
Tags copied from interface: Tag
Parameters:
aTagAttrList - com.ibm.dse.tools.workbench.base.TagAttribute[]

setName

public void setName(java.lang.String aName)
setName method comment.
Specified by:
setName in interface Tag
Tags copied from interface: Tag
Parameters:
aName - java.lang.String

setSubTagAt

public void setSubTagAt(Tag aSubTag,
                        int index)
                 throws WBInvalidArgumentException
setSubTagAt method comment.
Specified by:
setSubTagAt in interface Tag
Tags copied from interface: Tag
Parameters:
aSubTag - com.ibm.dse.base.Tag
index - int
Throws:
com.ibm.dse.tools.workbench.base.WBInvalidArgumentException. - The index was out of bounds

setSubTags

public void setSubTags(Tag[] someSubTags)
setSubTags method comment.
Specified by:
setSubTags in interface Tag
Tags copied from interface: Tag
Parameters:
someSubTags - com.ibm.dse.tools.workbench.base.Tag[]

toString

public java.lang.String toString()
Returns a String representation of this object
Overrides:
toString in class java.lang.Object
Returns:
java.lang.String