|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
gate.lexicon.OntoLexKBImpl
| Field Summary | |
protected HashMap |
conceptIdMap
|
protected HashMap |
lexIdMap
|
protected Object |
lexKBIndentifier
|
protected Object |
ontologyIdentifier
|
| Fields inherited from class gate.creole.AbstractLanguageResource |
dataStore, lrPersistentId |
| Fields inherited from class gate.creole.AbstractResource |
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
features |
| Constructor Summary | |
OntoLexKBImpl()
|
|
| Method Summary | |
void |
add(Object conceptId,
Object lexId)
Add a concept<->lexical ID pair |
void |
clear()
Clear the mapping |
Set |
getAllConceptIds()
Returns a list of objects which are all concept IDs in this mapping. |
Set |
getAllLexIds()
Returns a list of objects which are all lexical IDs in this mapping. |
List |
getConceptIds(Object lexId)
Returns a list of objects which are the concept IDs corresponding to the given lexical Id. |
List |
getLexIds(Object conceptId)
Returns a list of objects which are the lexical IDs corresponding to the given concept Id. |
Object |
getLexKBIdentifier()
Accessor for the lexical Id property. |
Object |
getOntologyIdentifier()
Accessor for the ontology Id property |
Resource |
init()
Initialise this resource, and return it. |
boolean |
isEmpty()
True if the mapping is empty |
void |
remove(Object conceptId,
Object lexId)
Remove the given mapping |
void |
removeByConcept(Object conceptId)
Remove all mappings to lexical items for the given concept Id |
void |
removeByLexId(Object lexId)
Remove all mappings to concept items for the given lexical Id |
void |
setLexKBIdentifier(Object lexId)
Set method for the lexical Id property. |
void |
setOntologyIdentifier(Object ontoId)
Set method for the ontology Id property. |
| Methods inherited from class gate.creole.AbstractLanguageResource |
cleanup, getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync |
| Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.LanguageResource |
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync |
| Methods inherited from interface gate.Resource |
cleanup, getParameterValue, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
getName, setName |
| Field Detail |
protected HashMap lexIdMap
protected HashMap conceptIdMap
protected Object lexKBIndentifier
protected Object ontologyIdentifier
| Constructor Detail |
public OntoLexKBImpl()
| Method Detail |
public List getConceptIds(Object lexId)
OntoLexLR
getConceptIds in interface OntoLexLRpublic List getLexIds(Object conceptId)
OntoLexLR
getLexIds in interface OntoLexLRpublic Set getAllLexIds()
OntoLexLR
getAllLexIds in interface OntoLexLRpublic Set getAllConceptIds()
OntoLexLR
getAllConceptIds in interface OntoLexLR
public void add(Object conceptId,
Object lexId)
OntoLexLR
add in interface OntoLexLRpublic void removeByConcept(Object conceptId)
OntoLexLR
removeByConcept in interface OntoLexLRpublic void removeByLexId(Object lexId)
OntoLexLR
removeByLexId in interface OntoLexLR
public void remove(Object conceptId,
Object lexId)
OntoLexLR
remove in interface OntoLexLRpublic boolean isEmpty()
OntoLexLR
isEmpty in interface OntoLexLRpublic void clear()
OntoLexLR
clear in interface OntoLexLRpublic Object getLexKBIdentifier()
OntoLexLR
getLexKBIdentifier in interface OntoLexLRpublic void setLexKBIdentifier(Object lexId)
OntoLexLR
setLexKBIdentifier in interface OntoLexLRpublic Object getOntologyIdentifier()
OntoLexLR
getOntologyIdentifier in interface OntoLexLRpublic void setOntologyIdentifier(Object ontoId)
OntoLexLR
setOntologyIdentifier in interface OntoLexLR
public Resource init()
throws ResourceInstantiationException
Resource
init in interface Resourceinit in class AbstractResourceResourceInstantiationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||