eu.monnetproject.lemon.impl
Class LexicalEntryImpl

java.lang.Object
  extended by eu.monnetproject.lemon.URIValue
      extended by eu.monnetproject.lemon.URIElement
          extended by eu.monnetproject.lemon.impl.LemonElementImpl<LexicalEntryImpl>
              extended by eu.monnetproject.lemon.impl.LexicalEntryImpl
All Implemented Interfaces:
IntrospectableElement, ReaderAccepter, LemonElement, LemonElementOrPredicate, LexicalEntry, SyntacticRoleMarker, Serializable
Direct Known Subclasses:
PartImpl, PhraseImpl, WordImpl

public class LexicalEntryImpl
extends LemonElementImpl<LexicalEntryImpl>
implements LexicalEntry

Instantiated via LemonFactoryImpl

Author:
John McCrae
See Also:
Serialized Form

Field Summary
 
Fields inherited from class eu.monnetproject.lemon.impl.LemonElementImpl
checkRemote, model, RDF_TYPE, referencers
 
Method Summary
 ReaderAccepter accept(URI pred, String value, LinguisticOntology lingOnto, AccepterFactory factory)
           
 void accept(URI pred, String value, String lang, LinguisticOntology lingOnto, AccepterFactory factory)
           
 ReaderAccepter accept(URI pred, URI value, LinguisticOntology lingOnto, AccepterFactory factory)
           
 boolean addAbstractForm(LexicalForm abstractForm)
          Add an abstract form to the entry
 void addDecomposition(List<Component> comps)
          Add a decomposition
 boolean addForm(LexicalForm form)
          Add a lexical form to the entry
 boolean addLexicalVariant(LexicalVariant lexicalVariant, LexicalEntry lexicalVariantVal)
          Add a lexical variant of the entry
 boolean addOtherForm(LexicalForm otherForm)
          Add an other form to the entry
 boolean addPattern(MorphPattern mp)
          Add a morphological pattern
 boolean addPhraseRoot(Node phraseRoot)
          Add a phrase structure tree to the entry
 boolean addSense(LexicalSense sense)
          Add a sense to the entry
 boolean addSynBehavior(Frame synBehavior)
          Add a syntactic behavior to the entry
 boolean addTopic(LexicalTopic topic)
          Add a topic to the entry
 void clearAll()
           
 void doAccept(ElementVisitor visitor)
           
protected  boolean follow(LemonPredicate predicate)
           
 Collection<LexicalForm> getAbstractForms()
          Get the abstract forms of the entry
 LexicalForm getCanonicalForm()
          Get the canonical form of the entry
 Collection<List<Component>> getDecompositions()
          Get the decompositions of this entry
 Map<URI,Collection<Object>> getElements()
           
 Collection<LexicalForm> getForms()
          Get all lexical forms of the entry
 Component getHead()
          Get the head component
 Collection<LexicalEntry> getLexicalVariant(LexicalVariant lexicalVariant)
          Get the set entries that are a given variant of the entry
 Map<LexicalVariant,Collection<LexicalEntry>> getLexicalVariants()
          Get the lexical variants of the entry
 Collection<LexicalForm> getOtherForms()
          Get the other forms of the entry
 Collection<MorphPattern> getPatterns()
          Get all morphological patterns
 Collection<Node> getPhraseRoots()
          Get the phrase structure trees of the entry
 Collection<LexicalSense> getSenses()
          Get the senses of the entry
 Collection<Frame> getSynBehaviors()
          Get the syntactic behaviors of the entry
 Collection<LexicalTopic> getTopics()
          Get the topics of the entry
 void merge(ReaderAccepter accepter, LinguisticOntology lingOnto, AccepterFactory factory)
           
protected  void mergeIn(LexicalEntryImpl elem)
           
protected  void printAsBlankNode(PrintWriter stream, SerializationState state, boolean first)
           
protected  boolean refers()
           
 boolean removeAbstractForm(LexicalForm abstractForm)
          Remove an abstract form from the entry
 boolean removeDecomposition(List<Component> comps)
          Remove a decomposition
 boolean removeForm(LexicalForm form)
          Remove a lexical form from the entry
 boolean removeLexicalVariant(LexicalVariant lexicalVariant, LexicalEntry lexicalVariantVal)
          Remove a lexical variant of the entry
 boolean removeOtherForm(LexicalForm otherForm)
          Remove an other form from the entry
 boolean removePattern(MorphPattern mp)
          Remove a morphological pattern
 boolean removePhraseRoot(Node phraseRoot)
          Remove a phrase structure tree from the entry
 boolean removeSense(LexicalSense sense)
          Remove a sense to the entry
 boolean removeSynBehavior(Frame synBehavior)
          Remove a syntactic behavior from the entry
 boolean removeTopic(LexicalTopic topic)
          Remove a topic from the entry
protected  void resolveRemote()
           
 void setCanonicalForm(LexicalForm canonicalForm)
          Set the canonical form of the entry
 void setHead(Component cmpnt)
          Set the head component
protected  void updateReference(LemonElement from, LemonElement to)
           
 
Methods inherited from class eu.monnetproject.lemon.impl.LemonElementImpl
accept, acceptProperties, addAnnotation, addPredElem, addPredElemDirect, addProperty, addReference, addStrElem, addStrElemDirect, addType, addTypeDirect, defaultAccept, defaultAccept, defaultAccept, defaultMerge, follow, getAnnotations, getAnnotations, getModelName, getPredElem, getPredElems, getProperty, getPropertys, getStrElem, getStrElems, getStrText, getTypes, isMultiReferenced, merge, merge, printAsBlankNode, printURI, removeAnnotation, removePredElem, removeProperty, removeReference, removeStrElem, removeType, setStrElem, setStrElemDirect, setStrText, setStrTextDirect, updateAddPredElem, visit, write
 
Methods inherited from class eu.monnetproject.lemon.URIElement
equals, getID, hashCode, toString
 
Methods inherited from class eu.monnetproject.lemon.URIValue
getInfHash, getURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.monnetproject.lemon.model.LemonElement
addAnnotation, addProperty, addType, getAnnotations, getAnnotations, getID, getProperty, getPropertys, getTypes, removeAnnotation, removeProperty, removeType
 
Methods inherited from interface eu.monnetproject.lemon.model.LemonElementOrPredicate
getURI
 

Method Detail

getCanonicalForm

public LexicalForm getCanonicalForm()
Description copied from interface: LexicalEntry
Get the canonical form of the entry

Specified by:
getCanonicalForm in interface LexicalEntry

setCanonicalForm

public void setCanonicalForm(LexicalForm canonicalForm)
Description copied from interface: LexicalEntry
Set the canonical form of the entry

Specified by:
setCanonicalForm in interface LexicalEntry

getOtherForms

public Collection<LexicalForm> getOtherForms()
Description copied from interface: LexicalEntry
Get the other forms of the entry

Specified by:
getOtherForms in interface LexicalEntry

addOtherForm

public boolean addOtherForm(LexicalForm otherForm)
Description copied from interface: LexicalEntry
Add an other form to the entry

Specified by:
addOtherForm in interface LexicalEntry

removeOtherForm

public boolean removeOtherForm(LexicalForm otherForm)
Description copied from interface: LexicalEntry
Remove an other form from the entry

Specified by:
removeOtherForm in interface LexicalEntry

getAbstractForms

public Collection<LexicalForm> getAbstractForms()
Description copied from interface: LexicalEntry
Get the abstract forms of the entry

Specified by:
getAbstractForms in interface LexicalEntry

addAbstractForm

public boolean addAbstractForm(LexicalForm abstractForm)
Description copied from interface: LexicalEntry
Add an abstract form to the entry

Specified by:
addAbstractForm in interface LexicalEntry

removeAbstractForm

public boolean removeAbstractForm(LexicalForm abstractForm)
Description copied from interface: LexicalEntry
Remove an abstract form from the entry

Specified by:
removeAbstractForm in interface LexicalEntry

getTopics

public Collection<LexicalTopic> getTopics()
Description copied from interface: LexicalEntry
Get the topics of the entry

Specified by:
getTopics in interface LexicalEntry

addTopic

public boolean addTopic(LexicalTopic topic)
Description copied from interface: LexicalEntry
Add a topic to the entry

Specified by:
addTopic in interface LexicalEntry

removeTopic

public boolean removeTopic(LexicalTopic topic)
Description copied from interface: LexicalEntry
Remove a topic from the entry

Specified by:
removeTopic in interface LexicalEntry

getLexicalVariants

public Map<LexicalVariant,Collection<LexicalEntry>> getLexicalVariants()
Description copied from interface: LexicalEntry
Get the lexical variants of the entry

Specified by:
getLexicalVariants in interface LexicalEntry

getLexicalVariant

public Collection<LexicalEntry> getLexicalVariant(LexicalVariant lexicalVariant)
Description copied from interface: LexicalEntry
Get the set entries that are a given variant of the entry

Specified by:
getLexicalVariant in interface LexicalEntry

addLexicalVariant

public boolean addLexicalVariant(LexicalVariant lexicalVariant,
                                 LexicalEntry lexicalVariantVal)
Description copied from interface: LexicalEntry
Add a lexical variant of the entry

Specified by:
addLexicalVariant in interface LexicalEntry

removeLexicalVariant

public boolean removeLexicalVariant(LexicalVariant lexicalVariant,
                                    LexicalEntry lexicalVariantVal)
Description copied from interface: LexicalEntry
Remove a lexical variant of the entry

Specified by:
removeLexicalVariant in interface LexicalEntry

getSynBehaviors

public Collection<Frame> getSynBehaviors()
Description copied from interface: LexicalEntry
Get the syntactic behaviors of the entry

Specified by:
getSynBehaviors in interface LexicalEntry

addSynBehavior

public boolean addSynBehavior(Frame synBehavior)
Description copied from interface: LexicalEntry
Add a syntactic behavior to the entry

Specified by:
addSynBehavior in interface LexicalEntry

removeSynBehavior

public boolean removeSynBehavior(Frame synBehavior)
Description copied from interface: LexicalEntry
Remove a syntactic behavior from the entry

Specified by:
removeSynBehavior in interface LexicalEntry

getDecompositions

public Collection<List<Component>> getDecompositions()
Description copied from interface: LexicalEntry
Get the decompositions of this entry

Specified by:
getDecompositions in interface LexicalEntry

addDecomposition

public void addDecomposition(List<Component> comps)
Description copied from interface: LexicalEntry
Add a decomposition

Specified by:
addDecomposition in interface LexicalEntry

removeDecomposition

public boolean removeDecomposition(List<Component> comps)
Description copied from interface: LexicalEntry
Remove a decomposition

Specified by:
removeDecomposition in interface LexicalEntry

getSenses

public Collection<LexicalSense> getSenses()
Description copied from interface: LexicalEntry
Get the senses of the entry

Specified by:
getSenses in interface LexicalEntry

addSense

public boolean addSense(LexicalSense sense)
Description copied from interface: LexicalEntry
Add a sense to the entry

Specified by:
addSense in interface LexicalEntry

removeSense

public boolean removeSense(LexicalSense sense)
Description copied from interface: LexicalEntry
Remove a sense to the entry

Specified by:
removeSense in interface LexicalEntry

getPhraseRoots

public Collection<Node> getPhraseRoots()
Description copied from interface: LexicalEntry
Get the phrase structure trees of the entry

Specified by:
getPhraseRoots in interface LexicalEntry

addPhraseRoot

public boolean addPhraseRoot(Node phraseRoot)
Description copied from interface: LexicalEntry
Add a phrase structure tree to the entry

Specified by:
addPhraseRoot in interface LexicalEntry

removePhraseRoot

public boolean removePhraseRoot(Node phraseRoot)
Description copied from interface: LexicalEntry
Remove a phrase structure tree from the entry

Specified by:
removePhraseRoot in interface LexicalEntry

getForms

public Collection<LexicalForm> getForms()
Description copied from interface: LexicalEntry
Get all lexical forms of the entry

Specified by:
getForms in interface LexicalEntry

addForm

public boolean addForm(LexicalForm form)
Description copied from interface: LexicalEntry
Add a lexical form to the entry

Specified by:
addForm in interface LexicalEntry

removeForm

public boolean removeForm(LexicalForm form)
Description copied from interface: LexicalEntry
Remove a lexical form from the entry

Specified by:
removeForm in interface LexicalEntry

updateReference

protected void updateReference(LemonElement from,
                               LemonElement to)
Overrides:
updateReference in class LemonElementImpl<LexicalEntryImpl>

mergeIn

protected void mergeIn(LexicalEntryImpl elem)
Overrides:
mergeIn in class LemonElementImpl<LexicalEntryImpl>

refers

protected boolean refers()
Overrides:
refers in class LemonElementImpl<LexicalEntryImpl>

printAsBlankNode

protected void printAsBlankNode(PrintWriter stream,
                                SerializationState state,
                                boolean first)
Overrides:
printAsBlankNode in class LemonElementImpl<LexicalEntryImpl>

follow

protected boolean follow(LemonPredicate predicate)
Overrides:
follow in class LemonElementImpl<LexicalEntryImpl>

doAccept

public void doAccept(ElementVisitor visitor)
Overrides:
doAccept in class LemonElementImpl<LexicalEntryImpl>

getElements

public Map<URI,Collection<Object>> getElements()
Specified by:
getElements in interface IntrospectableElement
Overrides:
getElements in class LemonElementImpl<LexicalEntryImpl>

clearAll

public void clearAll()
Overrides:
clearAll in class LemonElementImpl<LexicalEntryImpl>

accept

public ReaderAccepter accept(URI pred,
                             URI value,
                             LinguisticOntology lingOnto,
                             AccepterFactory factory)
Specified by:
accept in interface ReaderAccepter

accept

public ReaderAccepter accept(URI pred,
                             String value,
                             LinguisticOntology lingOnto,
                             AccepterFactory factory)
Specified by:
accept in interface ReaderAccepter

accept

public void accept(URI pred,
                   String value,
                   String lang,
                   LinguisticOntology lingOnto,
                   AccepterFactory factory)
Specified by:
accept in interface ReaderAccepter

getPatterns

public Collection<MorphPattern> getPatterns()
Description copied from interface: LexicalEntry
Get all morphological patterns

Specified by:
getPatterns in interface LexicalEntry

addPattern

public boolean addPattern(MorphPattern mp)
Description copied from interface: LexicalEntry
Add a morphological pattern

Specified by:
addPattern in interface LexicalEntry

removePattern

public boolean removePattern(MorphPattern mp)
Description copied from interface: LexicalEntry
Remove a morphological pattern

Specified by:
removePattern in interface LexicalEntry

getHead

public Component getHead()
Description copied from interface: LexicalEntry
Get the head component

Specified by:
getHead in interface LexicalEntry

setHead

public void setHead(Component cmpnt)
Description copied from interface: LexicalEntry
Set the head component

Specified by:
setHead in interface LexicalEntry

merge

public void merge(ReaderAccepter accepter,
                  LinguisticOntology lingOnto,
                  AccepterFactory factory)
Specified by:
merge in interface ReaderAccepter

resolveRemote

protected void resolveRemote()
Overrides:
resolveRemote in class LemonElementImpl<LexicalEntryImpl>


Copyright © 2012. All Rights Reserved.