|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.base.Tag
Every XML tag, in the files specified in DSE.INI, is converted to an instance of this class. A tag is composed of a name and a list of attributes.
Nested Class Summary | |
---|---|
static class |
Tag.TagStringReader
|
Field Summary | |
---|---|
protected Vector |
attrList
|
java.lang.String |
name
|
Constructor Summary | |
---|---|
Tag()
This is the default constructor used to create a Tag object. |
|
Tag(java.lang.String aString)
This constructor creates a Tag from a String. |
|
Tag(Tag.TagStringReader aReader)
new constructor, for object cycling efficiency takes a TagStreamReader that has internal work buffers |
Method Summary | |
---|---|
void |
addSubTag(Tag aSubTag)
Adds a subTag to the tag. |
java.lang.Object |
clone()
Returns a new Tag cloned from the current one. |
Vector |
getAttrList()
Returns a list of attributes. |
Tag |
getDecorator(int index)
Returns the decorator at the specified index. |
Vector |
getDecorators()
Returns a list of decorators for the tag (format tag). |
java.lang.String |
getId()
Examines the attribute list for the one that has the ID and returns its value. |
java.lang.String |
getName()
Returns the name of the tag. |
java.lang.String |
getSkipCharSet()
Returns the set of characters used to separate words in XML. |
int |
getStringIndex()
Returns the current index inside the tag. |
Tag |
getSubTag(int index)
Returns the subTag at the specified index. |
Vector |
getSubTags()
Returns a list of subtags. |
boolean |
hasDecorators()
Indicates whether the tag contains decorators or not. |
boolean |
isAComposedTag()
Indicates whether the Tag is a composed tag or a simple tag. |
boolean |
isSupported()
Indicates whether the Tag is supported in the DSE.INI file. |
void |
readExternal(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
set(Tag aTag)
Sets this Tag with the attributes of the Tag passed by parameter. |
void |
setAttrList(Vector aAttrList)
Sets the list of attributes. |
void |
setDecoratorAt(Tag aDecorator,
int index)
Sets the decorator at the specified index of the vector of decorators. |
void |
setDecorators(Vector someDecorators)
Sets the list of decorators. |
void |
setHasDecorators(boolean aBoolean)
Sets the value of the hasDecorators attribute. |
void |
setIsAComposedTag(boolean aBoolean)
Sets the value of the isAComposedTag attribute. |
void |
setName(java.lang.String aName)
Sets the name of the tag. |
void |
setStringIndex(int anIndex)
Sets the current index inside the tag. |
void |
setSubTagAt(Tag aSubTag,
int index)
Sets the subTag at the specified index of the vector of subTags. |
void |
setSubTags(Vector someSubTags)
Sets the list of subtags. |
java.lang.String |
toString()
Shows the Tag in XML format. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for Context. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Vector attrList
public java.lang.String name
Constructor Detail |
public Tag()
public Tag(java.lang.String aString) throws java.io.IOException
aString
- java.lang.Stringpublic Tag(Tag.TagStringReader aReader) throws java.io.IOException
aReader
-
java.io.IOException
Method Detail |
public void addSubTag(Tag aSubTag)
aSubTag
- com.ibm.dse.base.Tagpublic java.lang.Object clone()
clone
in interface DSECloneable
public Vector getAttrList()
public Tag getDecorator(int index) throws java.io.IOException
java.io.IOException.
java.io.IOException
public Vector getDecorators()
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getSkipCharSet()
public int getStringIndex()
public Tag getSubTag(int index) throws java.io.IOException
java.io.IOException.
java.io.IOException
public Vector getSubTags()
public boolean hasDecorators()
public boolean isAComposedTag()
public boolean isSupported()
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
s
- java.io.ObjectInput
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException
public void set(Tag aTag)
public void setAttrList(Vector aAttrList)
public void setDecoratorAt(Tag aDecorator, int index) throws java.io.IOException
index
- int
java.io.IOException.
java.io.IOException
public void setDecorators(Vector someDecorators)
someDecorators
- com.ibm.dse.base.Vectorpublic void setHasDecorators(boolean aBoolean)
aBoolean
- booleanpublic void setIsAComposedTag(boolean aBoolean)
aBoolean
- booleanpublic void setName(java.lang.String aName)
aName
- java.lang.Stringpublic void setStringIndex(int anIndex)
anIndex
- intpublic void setSubTagAt(Tag aSubTag, int index) throws java.io.IOException
aSubTag
- com.ibm.dse.base.Tagindex
- int
java.io.IOException.
java.io.IOException
public void setSubTags(Vector someSubTags)
someSubTags
- com.ibm.dse.base.Vectorpublic java.lang.String toString()
public void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
s
- java.io.ObjectOutput
java.io.IOException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |