|
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.gazetteer.Lookup
public class Lookup
Used to describe a type of lookup annotations. A lookup is described by a major type a minor type and a list of languages. Added members are : ontologyClass and list. All these values are strings (the list of languages is a string and it is intended to represesnt a comma separated list).
| Field Summary | |
|---|---|
String |
languages
The languages for this lookup, e.g. |
String |
list
the list represented by this lookup |
String |
majorType
Tha major type for this lookup, e.g. |
String |
minorType
The minor type for this lookup, e.g. |
String |
oClass
the ontology class of this lookup according to the mapping between list and ontology |
String |
ontology
the ontology ID |
| Constructor Summary | |
|---|---|
Lookup(String theList,
String major,
String minor,
String theLanguages)
Creates a new Lookup value with the given major and minor types and languages. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Two lookups are equal if they have the same string representation (major type and minor type). |
int |
hashCode()
|
String |
toString()
Returns a string representation of this lookup in the format This method is used in equals() that caused this method to implement dualistic behaviour : i.e. whenever class and ontology are filled then use the long version,incl. list, ontology and class; else return just majorType.minorType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String majorType
public String minorType
public String languages
public String oClass
public String ontology
public String list
| Constructor Detail |
|---|
public Lookup(String theList,
String major,
String minor,
String theLanguages)
major - major typeminor - minor typetheLanguages - the languages| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - public int hashCode()
hashCode in class Object
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||