IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.config.impl
Class TagImp

java.lang.Object
  extended by com.ibm.btt.config.impl.TagImp
All Implemented Interfaces:
Tag

public class TagImp
extends java.lang.Object
implements Tag

Default imlementation for tag


Constructor Summary
TagImp()
          The constructor
TagImp(java.lang.String name)
          The constructor
 
Method Summary
 void addAttribute(TagAttribute attr)
          Add attribute to this tag
 void addSubTag(Tag childTag)
          Add sub tag to this tag
 TagAttribute[] getAttributes()
          Get attributes of this tag
 java.lang.String getAttributeValue(java.lang.String key)
          Get attribute value by desired attribute name key
 java.lang.String getFileLocation()
          Get file location who contains this tag
 java.lang.String getName()
          Get Tag Name
 TagImp getParent()
          the parent attribute is only used to help implement toString method.
 Tag[] getSubTagByName(java.lang.String name)
          Get sub tags by tag name
 Tag[] getSubTags()
          Get sub tags of this tag
 void removeAttribute(java.lang.String name)
          Remove attribute whose name matches desired string from this tag
 void setFileLocation(java.lang.String fileLocation)
          Set file location who contains this tag
 void setName(java.lang.String name)
          Set Tag Name
 void setParent(TagImp parent)
          the parent attribute is only used to help implement toString method.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagImp

public TagImp()
The constructor


TagImp

public TagImp(java.lang.String name)
The constructor

Parameters:
name - tag name
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Tag
Get Tag Name

Specified by:
getName in interface Tag
Returns:
tag name

setName

public void setName(java.lang.String name)
Description copied from interface: Tag
Set Tag Name

Specified by:
setName in interface Tag
Parameters:
name - tag name

getSubTags

public Tag[] getSubTags()
Description copied from interface: Tag
Get sub tags of this tag

Specified by:
getSubTags in interface Tag
Returns:
sub tag array

addSubTag

public void addSubTag(Tag childTag)
Description copied from interface: Tag
Add sub tag to this tag

Specified by:
addSubTag in interface Tag
Parameters:
childTag - tag to be add as sub tag

getAttributes

public TagAttribute[] getAttributes()
Description copied from interface: Tag
Get attributes of this tag

Specified by:
getAttributes in interface Tag
Returns:
tag attributes

addAttribute

public void addAttribute(TagAttribute attr)
Description copied from interface: Tag
Add attribute to this tag

Specified by:
addAttribute in interface Tag
Parameters:
attr - attribute to be added

removeAttribute

public void removeAttribute(java.lang.String name)
Description copied from interface: Tag
Remove attribute whose name matches desired string from this tag

Specified by:
removeAttribute in interface Tag
Parameters:
name - attribute

getParent

public TagImp getParent()
the parent attribute is only used to help implement toString method.

Returns:
the parent

setParent

public void setParent(TagImp parent)
the parent attribute is only used to help implement toString method.

Parameters:
parent - the parent to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String key)
Description copied from interface: Tag
Get attribute value by desired attribute name key

Specified by:
getAttributeValue in interface Tag
Parameters:
key - attribute name
Returns:
attribute value

getSubTagByName

public Tag[] getSubTagByName(java.lang.String name)
Description copied from interface: Tag
Get sub tags by tag name

Specified by:
getSubTagByName in interface Tag
Parameters:
name - tag name
Returns:
sub tags whose name match desired tag name

getFileLocation

public java.lang.String getFileLocation()
Description copied from interface: Tag
Get file location who contains this tag

Specified by:
getFileLocation in interface Tag
Returns:
file location

setFileLocation

public void setFileLocation(java.lang.String fileLocation)
Description copied from interface: Tag
Set file location who contains this tag

Specified by:
setFileLocation in interface Tag
Parameters:
fileLocation - file location

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011