eu.clarin.weblicht.wlfxb.tc.xb
Class ReferencesLayerStored

java.lang.Object
  extended by eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
      extended by eu.clarin.weblicht.wlfxb.tc.xb.ReferencesLayerStored
All Implemented Interfaces:
ReferencesLayer, TextCorpusLayer

public class ReferencesLayerStored
extends TextCorpusLayerStoredAbstract
implements ReferencesLayer

Author:
Yana Panchenko

Field Summary
protected  String externalReferenceSource
           
protected  String reltagset
           
protected  String typetagset
           
static String XML_NAME
           
 
Constructor Summary
protected ReferencesLayerStored()
           
protected ReferencesLayerStored(TextCorpusLayersConnector connector)
           
 
Method Summary
 ReferencedEntity addReferent(List<Reference> references)
           
 ReferencedEntity addReferent(List<Reference> references, String externalId)
           
 void addRelation(Reference reference, String relation, Reference... target)
           
 Reference createReference(List<Token> referenceTokens)
           
 Reference createReference(List<Token> referenceTokens, List<Token> minReferenceTokens)
           
 Reference createReference(String type, List<Token> referenceTokens, List<Token> minReferenceTokens)
           
 String getExternalReferenceSource()
           
 Token[] getMinimumTokens(Reference reference)
           
 List<ReferencedEntity> getReferencedEntities(Token token)
           
 ReferencedEntity getReferencedEntity(int index)
           
 String getReltagset()
           
 Reference[] getTarget(Reference reference)
           
 Token[] getTokens(Reference reference)
           
 String getTypetagset()
           
 boolean hasExternalReferences()
           
 boolean isEmpty()
           
protected  void setLayersConnector(TextCorpusLayersConnector connector)
          Should not be used directly by users.
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_NAME

public static final String XML_NAME
See Also:
Constant Field Values

typetagset

protected String typetagset

reltagset

protected String reltagset

externalReferenceSource

protected String externalReferenceSource
Constructor Detail

ReferencesLayerStored

protected ReferencesLayerStored()

ReferencesLayerStored

protected ReferencesLayerStored(TextCorpusLayersConnector connector)
Method Detail

setLayersConnector

protected void setLayersConnector(TextCorpusLayersConnector connector)
Description copied from class: TextCorpusLayerStoredAbstract
Should not be used directly by users. Should be extended by all implementations of TextCorpusLayers, as they might depend on other layers and therefore be able to get referenced/referencing information.

Specified by:
setLayersConnector in class TextCorpusLayerStoredAbstract

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TextCorpusLayer

size

public int size()
Specified by:
size in interface TextCorpusLayer

getTypetagset

public String getTypetagset()
Specified by:
getTypetagset in interface ReferencesLayer

getReltagset

public String getReltagset()
Specified by:
getReltagset in interface ReferencesLayer

hasExternalReferences

public boolean hasExternalReferences()
Specified by:
hasExternalReferences in interface ReferencesLayer

getExternalReferenceSource

public String getExternalReferenceSource()
Specified by:
getExternalReferenceSource in interface ReferencesLayer

getReferencedEntity

public ReferencedEntity getReferencedEntity(int index)
Specified by:
getReferencedEntity in interface ReferencesLayer

getReferencedEntities

public List<ReferencedEntity> getReferencedEntities(Token token)
Specified by:
getReferencedEntities in interface ReferencesLayer

getTokens

public Token[] getTokens(Reference reference)
Specified by:
getTokens in interface ReferencesLayer

getMinimumTokens

public Token[] getMinimumTokens(Reference reference)
Specified by:
getMinimumTokens in interface ReferencesLayer

getTarget

public Reference[] getTarget(Reference reference)
Specified by:
getTarget in interface ReferencesLayer

addReferent

public ReferencedEntity addReferent(List<Reference> references)
Specified by:
addReferent in interface ReferencesLayer

addReferent

public ReferencedEntity addReferent(List<Reference> references,
                                    String externalId)
Specified by:
addReferent in interface ReferencesLayer

createReference

public Reference createReference(List<Token> referenceTokens)
Specified by:
createReference in interface ReferencesLayer

createReference

public Reference createReference(List<Token> referenceTokens,
                                 List<Token> minReferenceTokens)
Specified by:
createReference in interface ReferencesLayer

createReference

public Reference createReference(String type,
                                 List<Token> referenceTokens,
                                 List<Token> minReferenceTokens)
Specified by:
createReference in interface ReferencesLayer

addRelation

public void addRelation(Reference reference,
                        String relation,
                        Reference... target)
Specified by:
addRelation in interface ReferencesLayer

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.