|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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.
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. |
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 SGML. |
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 |
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. |
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.StringMethod Detail |
public void addSubTag(Tag aSubTag)
aSubTag
- com.ibm.dse.base.Tagpublic java.lang.Object clone()
public Vector getAttrList()
public Tag getDecorator(int index) throws java.io.IOException
i
- intpublic 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
i
- intpublic Vector getSubTags()
public boolean hasDecorators()
public boolean isAComposedTag()
public boolean isSupported()
public void set(Tag aTag)
param
- com.ibm.dse.base.Tagpublic void setAttrList(Vector aAttrList)
aTagAttrList
- java.util.Vectorpublic void setDecoratorAt(Tag aDecorator, int index) throws java.io.IOException
aSubTag
- com.ibm.dse.base.Tagindex
- intpublic 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
- intpublic void setSubTags(Vector someSubTags)
someSubTags
- com.ibm.dse.base.Vectorpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |