|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.SelectedTag
public class SelectedTag
Represents a selected value from a finite set of values, where each value is a Tag (i.e. has some string associated with it). Primarily used in schemes to select between alternative behaviours, associating names with the alternative behaviours.
| Constructor Summary | |
|---|---|
SelectedTag(int tagID,
Tag[] tags)
Creates a new SelectedTag instance. |
|
SelectedTag(java.lang.String tagText,
Tag[] tags)
Creates a new SelectedTag instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true if this SelectedTag equals another object |
java.lang.String |
getRevision()
Returns the revision string. |
Tag |
getSelectedTag()
Gets the selected Tag. |
Tag[] |
getTags()
Gets the set of all valid Tags. |
java.lang.String |
toString()
returns the selected tag in string representation |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectedTag(int tagID,
Tag[] tags)
SelectedTag instance.
tagID - the id of the selected tag.tags - an array containing the possible valid Tags.
java.lang.IllegalArgumentException - if the selected tag isn't in the array
of valid values or the IDs/IDStrs are not unique.
public SelectedTag(java.lang.String tagText,
Tag[] tags)
SelectedTag instance.
tagText - the text of the selected tag (case-insensitive).tags - an array containing the possible valid Tags.
java.lang.IllegalArgumentException - if the selected tag isn't in the array
of valid values.| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare with
public Tag getSelectedTag()
public Tag[] getTags()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||