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 String
externalReferenceSource
protected String
reltagset
protected String
typetagset
static String
XML_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReferencesLayerStored()
protected
ReferencesLayerStored(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: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 classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
size
in interfaceTextCorpusLayer
-
getTypetagset
public String getTypetagset()
- Specified by:
getTypetagset
in interfaceReferencesLayer
-
getReltagset
public String getReltagset()
- Specified by:
getReltagset
in interfaceReferencesLayer
-
hasExternalReferences
public boolean hasExternalReferences()
- Specified by:
hasExternalReferences
in interfaceReferencesLayer
-
getExternalReferenceSource
public String getExternalReferenceSource()
- Specified by:
getExternalReferenceSource
in interfaceReferencesLayer
-
getReferencedEntity
public ReferencedEntity getReferencedEntity(int index)
- Specified by:
getReferencedEntity
in interfaceReferencesLayer
-
getReferencedEntities
public List<ReferencedEntity> getReferencedEntities(Token token)
- Specified by:
getReferencedEntities
in interfaceReferencesLayer
-
getTokens
public Token[] getTokens(Reference reference)
- Specified by:
getTokens
in interfaceReferencesLayer
-
getMinimumTokens
public Token[] getMinimumTokens(Reference reference)
- Specified by:
getMinimumTokens
in interfaceReferencesLayer
-
getTarget
public Reference[] getTarget(Reference reference)
- Specified by:
getTarget
in interfaceReferencesLayer
-
addReferent
public ReferencedEntity addReferent(List<Reference> references)
- Specified by:
addReferent
in interfaceReferencesLayer
-
addReferent
public ReferencedEntity addReferent(List<Reference> references, String externalId)
- Specified by:
addReferent
in interfaceReferencesLayer
-
createReference
public Reference createReference(List<Token> referenceTokens)
- Specified by:
createReference
in interfaceReferencesLayer
-
createReference
public Reference createReference(List<Token> referenceTokens, List<Token> minReferenceTokens)
- Specified by:
createReference
in interfaceReferencesLayer
-
createReference
public Reference createReference(String type, List<Token> referenceTokens, List<Token> minReferenceTokens)
- Specified by:
createReference
in interfaceReferencesLayer
-
addRelation
public void addRelation(Reference reference, String relation, Reference... target)
- Specified by:
addRelation
in interfaceReferencesLayer
-
-