|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Tag
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String aAttrName)
Returns an attribute value for an attribute with a given name (aAttrName) |
java.util.Enumeration |
getAttributeNames()
Returns an Enumeration of all the attributes' names for attributes belong to the tag object |
java.util.Enumeration |
getAttributeValues()
Returns an Enumeration that contains the attribute values for the attributes that belong to the tag object |
java.lang.String |
getContent()
Returns a tag content |
java.lang.String |
getContent(int aPos,
java.lang.String aName)
Returns the content of a child tag with index position equals to aPos but only if its name is equal to aName. |
int |
getLine()
Returns the line in the XML file where the tag definition starts |
java.lang.String |
getName()
Returns the name of the tag |
Tag |
getTagAt(int aPosition)
Returns the child tag at a given position in order that is equivalent to the order of child tags defined in the XML file |
int |
size()
Returns the number of the child tags of this tag |
| Method Detail |
|---|
java.lang.String getAttribute(java.lang.String aAttrName)
aAttrName - the name of attribute
java.util.Enumeration getAttributeNames()
java.util.Enumeration getAttributeValues()
java.lang.String getName()
java.lang.String getContent()
int getLine()
int size()
Tag getTagAt(int aPosition)
aPosition - child tag's position
java.lang.String getContent(int aPos,
java.lang.String aName)
aPos - index of the tag in its parent listaName - the name of the tag
java.lang.NullPointerException - if there is no tag on the given position
java.lang.IllegalArgumentException - if the name of the tag on the given
position does not match the requested name
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||