Package cz.vutbr.fit.layout.text.op
Class TagEntitiesOperator
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseService
-
- cz.vutbr.fit.layout.impl.BaseParametrizedOperation
-
- cz.vutbr.fit.layout.impl.BaseOperator
-
- cz.vutbr.fit.layout.text.op.TagEntitiesOperator
-
- All Implemented Interfaces:
AreaTreeOperator,ParametrizedOperation,ScriptObject,Service
public class TagEntitiesOperator extends BaseOperator implements ScriptObject
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description TagEntitiesOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTagger(Tag tag, Tagger tagger)Registers a new tagger that should be used by this operator for assigning a tag.voidapply(AreaTree atree)voidapply(AreaTree atree, Area root)voidclearTaggers()Unregisters all taggers from the operator.List<Parameter>defineParams()StringgetCategory()StringgetDescription()StringgetId()StringgetName()ObjectgetParam(String name)StringgetVarName()voidsetIO(Reader in, Writer out, Writer err)booleansetParam(String name, Object value)voidsetTaggers(Map<Tag,Tagger> taggers)Registers a map of taggers that should be used by this operator.-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseOperator
toString
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseParametrizedOperation
getParams, getParamString
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseService
getServiceManager, setServiceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.api.ParametrizedOperation
getParams, getParamString
-
Methods inherited from interface cz.vutbr.fit.layout.api.Service
setServiceManager
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceService
-
getCategory
public String getCategory()
- Specified by:
getCategoryin interfaceService
-
defineParams
public List<Parameter> defineParams()
- Overrides:
defineParamsin classBaseParametrizedOperation
-
setParam
public boolean setParam(String name, Object value)
- Specified by:
setParamin interfaceParametrizedOperation- Overrides:
setParamin classBaseParametrizedOperation
-
getParam
public Object getParam(String name)
- Specified by:
getParamin interfaceParametrizedOperation- Overrides:
getParamin classBaseParametrizedOperation
-
addTagger
public void addTagger(Tag tag, Tagger tagger)
Registers a new tagger that should be used by this operator for assigning a tag.- Parameters:
tag- the tag to be assignedtagger- the tagger instance to be added
-
setTaggers
public void setTaggers(Map<Tag,Tagger> taggers)
Registers a map of taggers that should be used by this operator.- Parameters:
taggers- the map of taggers to be used for assigning the tags
-
clearTaggers
public void clearTaggers()
Unregisters all taggers from the operator.
-
apply
public void apply(AreaTree atree)
- Specified by:
applyin interfaceAreaTreeOperator
-
apply
public void apply(AreaTree atree, Area root)
- Specified by:
applyin interfaceAreaTreeOperator
-
getVarName
public String getVarName()
- Specified by:
getVarNamein interfaceScriptObject
-
setIO
public void setIO(Reader in, Writer out, Writer err)
- Specified by:
setIOin interfaceScriptObject
-
-