|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.morph.Variable
gate.creole.morph.StringSet
public class StringSet
Title: StringSet
Description: This is one of the variable types that is allowed to define. It stores different possible strings for this variable The format of the value of this variable should be
"string1" OR "string2" OR "string3" ...
Field Summary |
---|
Fields inherited from class gate.creole.morph.Variable |
---|
pointer, varValue |
Constructor Summary | |
---|---|
StringSet()
Constructor |
Method Summary | |
---|---|
boolean |
contains(String value)
A method that tells if value is available in the StringSet |
boolean |
hasNext()
Tells if any value available which can be retrieved |
String |
next()
Returns the next available value for this variable |
boolean |
set(String varName,
String varValue)
Process the provided value and stores in the underlying data structure |
Methods inherited from class gate.creole.morph.Variable |
---|
getPattern, resetPointer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringSet()
Method Detail |
---|
public boolean hasNext()
hasNext
in class Variable
public String next()
next
in class Variable
public boolean set(String varName, String varValue)
set
in class Variable
varName
- name of the variablevarValue
- String that contains possible different values
public boolean contains(String value)
contains
in class Variable
value
- String that is to be searched in the String set
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |