Package cz.vutbr.fit.layout.rdf
Class RDFTaggerConfig
- java.lang.Object
-
- cz.vutbr.fit.layout.rdf.RDFTaggerConfig
-
- All Implemented Interfaces:
TaggerConfig
public class RDFTaggerConfig extends Object implements TaggerConfig
A tagger config implementation that uses a ServiceManager and the configured RDF repository as the source of the tagger configuration.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description RDFTaggerConfig(RDFArtifactRepository repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaggergetTaggerForTag(Tag tag)Finds a tagger for the given tag.Map<Tag,Tagger>getTaggers()Returns the complete mapping of tags to their source taggers.
-
-
-
Constructor Detail
-
RDFTaggerConfig
public RDFTaggerConfig(RDFArtifactRepository repo)
-
-
Method Detail
-
getTaggers
public Map<Tag,Tagger> getTaggers()
Description copied from interface:TaggerConfigReturns the complete mapping of tags to their source taggers.- Specified by:
getTaggersin interfaceTaggerConfig- Returns:
- A map assigning a tagger to each tag
-
getTaggerForTag
public Tagger getTaggerForTag(Tag tag)
Description copied from interface:TaggerConfigFinds a tagger for the given tag.- Specified by:
getTaggerForTagin interfaceTaggerConfig- Parameters:
tag- the given tag- Returns:
- The assigned tagger or
nullwhen no tagger is assigned.
-
-