eu.monnetproject.lemon.impl
Class FrameImpl

java.lang.Object
  extended by eu.monnetproject.lemon.URIValue
      extended by eu.monnetproject.lemon.URIElement
          extended by eu.monnetproject.lemon.impl.LemonElementImpl
              extended by eu.monnetproject.lemon.impl.FrameImpl
All Implemented Interfaces:
IntrospectableElement, ReaderAccepter, Frame, LemonElement, LemonElementOrPredicate, Serializable

public class FrameImpl
extends LemonElementImpl
implements Frame

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)
           
 void addDecomposition(List<Component> comps)
          Add a decomposition
 boolean addSynArg(SynArg synArg, Argument synArgVal)
          Add a syntactic argument
 boolean addTree(Node node)
          Add a tree to this frame
 void clearAll()
           
 void doAccept(ElementVisitor visitor)
           
 Collection<List<Component>> getDecompositions()
          Get the decompositions of this entry
 Map<URI,Collection<Object>> getElements()
           
 Collection<Argument> getSynArg(SynArg synArg)
          Get a particular set of synactic arguments of the frame
 Map<SynArg,Collection<Argument>> getSynArgs()
          Get the syntactic arguments of the frame
 Collection<Node> getTrees()
          Get the trees attached to this frame
 void merge(ReaderAccepter accepter, LinguisticOntology lingOnto, AccepterFactory factory)
           
 boolean removeDecomposition(List<Component> comps)
          Remove a decomposition
 boolean removeSynArg(SynArg synArg, Argument synArgVal)
          Remove a syntactic argument
 boolean removeTree(Node node)
          Remove a tree from this frame
 
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, follow, getAnnotations, getAnnotations, getModelName, getPredElem, getPredElems, getProperty, getPropertys, getStrElem, getStrElems, getStrText, getTypes, isMultiReferenced, merge, merge, mergeIn, printAsBlankNode, printAsBlankNode, printURI, refers, removeAnnotation, removePredElem, removeProperty, removeReference, removeStrElem, removeType, resolveRemote, setStrElem, setStrElemDirect, setStrText, setStrTextDirect, updateAddPredElem, updateReference, 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

getSynArgs

public Map<SynArg,Collection<Argument>> getSynArgs()
Description copied from interface: Frame
Get the syntactic arguments of the frame

Specified by:
getSynArgs in interface Frame

getSynArg

public Collection<Argument> getSynArg(SynArg synArg)
Description copied from interface: Frame
Get a particular set of synactic arguments of the frame

Specified by:
getSynArg in interface Frame

addSynArg

public boolean addSynArg(SynArg synArg,
                         Argument synArgVal)
Description copied from interface: Frame
Add a syntactic argument

Specified by:
addSynArg in interface Frame

removeSynArg

public boolean removeSynArg(SynArg synArg,
                            Argument synArgVal)
Description copied from interface: Frame
Remove a syntactic argument

Specified by:
removeSynArg in interface Frame

getTrees

public Collection<Node> getTrees()
Description copied from interface: Frame
Get the trees attached to this frame

Specified by:
getTrees in interface Frame

addTree

public boolean addTree(Node node)
Description copied from interface: Frame
Add a tree to this frame

Specified by:
addTree in interface Frame

removeTree

public boolean removeTree(Node node)
Description copied from interface: Frame
Remove a tree from this frame

Specified by:
removeTree in interface Frame

getDecompositions

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

Specified by:
getDecompositions in interface Frame

addDecomposition

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

Specified by:
addDecomposition in interface Frame

removeDecomposition

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

Specified by:
removeDecomposition in interface Frame

doAccept

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

getElements

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

clearAll

public void clearAll()
Overrides:
clearAll in class LemonElementImpl

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

merge

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


Copyright © 2012. All Rights Reserved.