| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Provides a set of methods for working with SciTags.
An element can have one or more tags with the same name (for example, @see tags).
Method tags(String name) returns an enumeration of SciTags with the same name,
while getTag(String name) returns only one SciTag even if there are several
SciTags with this name.
Method setTagValue is used to create a new SciTag for an element.
| Method Summary | |
boolean | canSetTagValue(String value)Checks whether the specified value is valid for SciTag. |
SciTag | getTag(String name)Returns SciTag with the specified name. |
String | getTagValue(String name)Returns a string value of SciTag with the specified name. |
String | getText()Returns a string containing the texts of all tags and their values. |
void | setTagValue(String name, String value)This method adds a new SciTag to the element this SciTagList belongs to. |
SciTagEnumeration | tags()Returns an enumeration of all SciTags this element has. |
SciTagEnumeration | tags(String name)Returns an enumeration of all SciTags with the specified name this element has. |
| Methods inherited from interface com.togethersoft.openapi.sci.SciContainer |
canPaste, objects, paste |
| Method Detail |
public boolean canSetTagValue(String value)
SciTag. Returns true if it
is a valid value, false otherwise.
This check applies to all types of tags.SciTagtrue if the specified value is valid for SciTag, false
otherwise.public SciTag getTag(String name)
SciTag with the specified name. If there is more than one SciTag
with such name, returns first SciTag. If there is no SciTag with such name,
returns null.SciTagSciTag with the specified namepublic String getTagValue(String name)
SciTag with the specified name. If there if more than one
SciTag with such name, returns a valuse of the first SciTag. If there is
no SciTag with such name, returns null.SciTagSciTag with the specified namepublic String getText()
public void setTagValue(String name, String value)
SciTag to the element this SciTagList belongs to.
If this element has SciTag with the same name already, this method replaces it.
To create more than one SciTag with the same name use paste method for
previously created SciTag by the SciFactory.newTag method.SciTagSciTagpublic SciTagEnumeration tags()
SciTags this element has.SciTags this element haspublic SciTagEnumeration tags(String name)
SciTags with the specified name this element has.SciTagSciTags with the specified name this element has
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||