Package eu.clarin.weblicht.wlfxb.tc.xb
Class ReferencesLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.ReferencesLayerStored
-
- All Implemented Interfaces:
ReferencesLayer,TextCorpusLayer
public class ReferencesLayerStored extends TextCorpusLayerStoredAbstract implements ReferencesLayer
- Author:
- Yana Panchenko
-
-
Field Summary
Fields Modifier and Type Field Description protected StringexternalReferenceSourceprotected Stringreltagsetprotected Stringtypetagsetstatic StringXML_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedReferencesLayerStored()protectedReferencesLayerStored(TextCorpusLayersConnector connector)
-
Method Summary
-
-
-
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:TextCorpusLayerStoredAbstractShould 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:
setLayersConnectorin classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
sizein interfaceTextCorpusLayer
-
getTypetagset
public String getTypetagset()
- Specified by:
getTypetagsetin interfaceReferencesLayer
-
getReltagset
public String getReltagset()
- Specified by:
getReltagsetin interfaceReferencesLayer
-
hasExternalReferences
public boolean hasExternalReferences()
- Specified by:
hasExternalReferencesin interfaceReferencesLayer
-
getExternalReferenceSource
public String getExternalReferenceSource()
- Specified by:
getExternalReferenceSourcein interfaceReferencesLayer
-
getReferencedEntity
public ReferencedEntity getReferencedEntity(int index)
- Specified by:
getReferencedEntityin interfaceReferencesLayer
-
getReferencedEntities
public List<ReferencedEntity> getReferencedEntities(Token token)
- Specified by:
getReferencedEntitiesin interfaceReferencesLayer
-
getTokens
public Token[] getTokens(Reference reference)
- Specified by:
getTokensin interfaceReferencesLayer
-
getMinimumTokens
public Token[] getMinimumTokens(Reference reference)
- Specified by:
getMinimumTokensin interfaceReferencesLayer
-
getTarget
public Reference[] getTarget(Reference reference)
- Specified by:
getTargetin interfaceReferencesLayer
-
addReferent
public ReferencedEntity addReferent(List<Reference> references)
- Specified by:
addReferentin interfaceReferencesLayer
-
addReferent
public ReferencedEntity addReferent(List<Reference> references, String externalId)
- Specified by:
addReferentin interfaceReferencesLayer
-
createReference
public Reference createReference(List<Token> referenceTokens)
- Specified by:
createReferencein interfaceReferencesLayer
-
createReference
public Reference createReference(List<Token> referenceTokens, List<Token> minReferenceTokens)
- Specified by:
createReferencein interfaceReferencesLayer
-
createReference
public Reference createReference(String type, List<Token> referenceTokens, List<Token> minReferenceTokens)
- Specified by:
createReferencein interfaceReferencesLayer
-
addRelation
public void addRelation(Reference reference, String relation, Reference... target)
- Specified by:
addRelationin interfaceReferencesLayer
-
-