Package nzilbb.labbcat.model
Class AnnotatorDescriptorWrapper
- java.lang.Object
-
- nzilbb.ag.automation.util.AnnotatorDescriptor
-
- nzilbb.labbcat.model.AnnotatorDescriptorWrapper
-
- All Implemented Interfaces:
Comparable,nzilbb.util.CloneableBean
public class AnnotatorDescriptorWrapper extends nzilbb.ag.automation.util.AnnotatorDescriptorClient-side annotator descriptor that can be deserialized from JSON.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Constructor Summary
Constructors Constructor Description AnnotatorDescriptorWrapper()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnnotatorId()Getter forannotatorId: Annotator ID.StringgetConfigParameterInfo()Getter forconfigParameterInfo: HTML-encoded definition of the installation config parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure the annotator programmatically.StringgetExtApiInfo()Getter forextApiInfo: HTML-encoded document containing information about what endpoints are published by the ext web-app, for displaying to users who wish to use it programmatically.BooleangetHasConfigWebapp()Getter forhasConfigWebapp: Whether the annotator includes a web-app for installation or general configuration.BooleangetHasExtWebapp()Getter forhasExtWebapp: Whether the annotator includes an extras web-app.BooleangetHasTaskWebapp()Getter forhasTaskWebapp: Whether the annotator includes a web-app for task parameter configuration.StringgetInfo()Getter forinfo: HTML-encoded description of the function of the annotator, for displaying to the user.StringgetMinimumApiVersion()Getter forminimumApiVersion: Get the minimum version of the nzilbb.ag API supported by the serializer.StringgetTaskParameterInfo()Getter fortaskParameterInfo: HTML-encoded definition of the task parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure annotator tasks programmatically.StringgetVersion()Getter forversion: Version of this implementation; versions will typically be numeric, but this is not a requirement.booleanhasConfigWebapp()Determines whether the annotator includes a web-app for installation or general configuration.booleanhasExtWebapp()Determines whether the annotator includes an extras web-app.booleanhasTaskWebapp()Determines whether the annotator includes a web-app for task parameter configuration.AnnotatorDescriptorWrappersetAnnotatorId(String newAnnotatorId)Setter forannotatorId: Annotator ID.AnnotatorDescriptorWrappersetConfigParameterInfo(String newConfigParameterInfo)Setter forconfigParameterInfo: HTML-encoded definition of the installation config parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure the annotator programmatically.AnnotatorDescriptorWrappersetExtApiInfo(String newExtApiInfo)Setter forextApiInfo: HTML-encoded document containing information about what endpoints are published by the ext web-app, for displaying to users who wish to use it programmatically.AnnotatorDescriptorWrappersetHasConfigWebapp(Boolean newHasConfigWebapp)Setter forhasConfigWebapp: Whether the annotator includes a web-app for installation or general configuration.AnnotatorDescriptorWrappersetHasExtWebapp(Boolean newHasExtWebapp)Setter forhasExtWebapp: Whether the annotator includes an extras web-app.AnnotatorDescriptorWrappersetHasTaskWebapp(Boolean newHasTaskWebapp)Setter forhasTaskWebapp: Whether the annotator includes a web-app for task parameter configuration.AnnotatorDescriptorWrappersetInfo(String newInfo)Setter forinfo: HTML-encoded description of the function of the annotator, for displaying to the user.AnnotatorDescriptorWrappersetMinimumApiVersion(String newMinimumApiVersion)Setter forminimumApiVersion: Get the minimum version of the nzilbb.ag API supported by the serializer.AnnotatorDescriptorWrappersetTaskParameterInfo(String newTaskParameterInfo)Setter fortaskParameterInfo: HTML-encoded definition of the task parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure annotator tasks programmatically.AnnotatorDescriptorWrappersetVersion(String newVersion)Setter forversion: Version of this implementation; versions will typically be numeric, but this is not a requirement.-
Methods inherited from class nzilbb.ag.automation.util.AnnotatorDescriptor
compareTo, getAnnotatorClass, getAnnotatorClassLoader, getAnnotatorClassName, getInstance, getResource, toString
-
-
-
-
Method Detail
-
getAnnotatorId
@ClonedProperty public String getAnnotatorId()
Getter forannotatorId: Annotator ID.- Overrides:
getAnnotatorIdin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- Annotator ID.
-
setAnnotatorId
public AnnotatorDescriptorWrapper setAnnotatorId(String newAnnotatorId)
Setter forannotatorId: Annotator ID.- Parameters:
newAnnotatorId- Annotator ID.- Returns:
- A reference to this object, so that setters can be chained.
-
getVersion
@ClonedProperty public String getVersion()
Getter forversion: Version of this implementation; versions will typically be numeric, but this is not a requirement.- Overrides:
getVersionin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- Version of this implementation; versions will typically be numeric, but this is not a requirement.
-
setVersion
public AnnotatorDescriptorWrapper setVersion(String newVersion)
Setter forversion: Version of this implementation; versions will typically be numeric, but this is not a requirement.- Parameters:
newVersion- Version of this implementation; versions will typically be numeric, but this is not a requirement.- Returns:
- A reference to this object, so that setters can be chained.
-
getMinimumApiVersion
@ClonedProperty public String getMinimumApiVersion()
Getter forminimumApiVersion: Get the minimum version of the nzilbb.ag API supported by the serializer.- Overrides:
getMinimumApiVersionin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- Get the minimum version of the nzilbb.ag API supported by the serializer.
-
setMinimumApiVersion
public AnnotatorDescriptorWrapper setMinimumApiVersion(String newMinimumApiVersion)
Setter forminimumApiVersion: Get the minimum version of the nzilbb.ag API supported by the serializer.- Parameters:
newMinimumApiVersion- Get the minimum version of the nzilbb.ag API supported by the serializer.- Returns:
- A reference to this object, so that setters can be chained.
-
getInfo
@ClonedProperty public String getInfo()
Getter forinfo: HTML-encoded description of the function of the annotator, for displaying to the user.- Overrides:
getInfoin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- HTML-encoded description of the function of the annotator, for displaying to the user.
-
setInfo
public AnnotatorDescriptorWrapper setInfo(String newInfo)
Setter forinfo: HTML-encoded description of the function of the annotator, for displaying to the user.- Parameters:
newInfo- HTML-encoded description of the function of the annotator, for displaying to the user.- Returns:
- A reference to this object, so that setters can be chained.
-
getTaskParameterInfo
@ClonedProperty public String getTaskParameterInfo()
Getter fortaskParameterInfo: HTML-encoded definition of the task parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure annotator tasks programmatically.- Overrides:
getTaskParameterInfoin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- HTML-encoded definition of the task parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure annotator tasks programmatically.
-
setTaskParameterInfo
public AnnotatorDescriptorWrapper setTaskParameterInfo(String newTaskParameterInfo)
Setter fortaskParameterInfo: HTML-encoded definition of the task parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure annotator tasks programmatically.- Parameters:
newTaskParameterInfo- HTML-encoded definition of the task parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure annotator tasks programmatically.- Returns:
- A reference to this object, so that setters can be chained.
-
getConfigParameterInfo
@ClonedProperty public String getConfigParameterInfo()
Getter forconfigParameterInfo: HTML-encoded definition of the installation config parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure the annotator programmatically.- Overrides:
getConfigParameterInfoin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- HTML-encoded definition of the installation config parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure the annotator programmatically.
-
setConfigParameterInfo
public AnnotatorDescriptorWrapper setConfigParameterInfo(String newConfigParameterInfo)
Setter forconfigParameterInfo: HTML-encoded definition of the installation config parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure the annotator programmatically.- Parameters:
newConfigParameterInfo- HTML-encoded definition of the installation config parameters, including a list of all parameters, and the encoding of the parameter string, for displaying to users who wish to configure the annotator programmatically.- Returns:
- A reference to this object, so that setters can be chained.
-
getExtApiInfo
@ClonedProperty public String getExtApiInfo()
Getter forextApiInfo: HTML-encoded document containing information about what endpoints are published by the ext web-app, for displaying to users who wish to use it programmatically.- Overrides:
getExtApiInfoin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- HTML-encoded document containing information about what endpoints are published by the ext web-app, for displaying to users who wish to use it programmatically.
-
setExtApiInfo
public AnnotatorDescriptorWrapper setExtApiInfo(String newExtApiInfo)
Setter forextApiInfo: HTML-encoded document containing information about what endpoints are published by the ext web-app, for displaying to users who wish to use it programmatically.- Parameters:
newExtApiInfo- HTML-encoded document containing information about what endpoints are published by the ext web-app, for displaying to users who wish to use it programmatically.- Returns:
- A reference to this object, so that setters can be chained.
-
hasConfigWebapp
public boolean hasConfigWebapp()
Determines whether the annotator includes a web-app for installation or general configuration.- Overrides:
hasConfigWebappin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- true if the class includes a web-app at config/index.html, false otherwise.
-
getHasConfigWebapp
@ClonedProperty public Boolean getHasConfigWebapp()
Getter forhasConfigWebapp: Whether the annotator includes a web-app for installation or general configuration.- Overrides:
getHasConfigWebappin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- Whether the annotator includes a web-app for installation or general configuration.
-
setHasConfigWebapp
public AnnotatorDescriptorWrapper setHasConfigWebapp(Boolean newHasConfigWebapp)
Setter forhasConfigWebapp: Whether the annotator includes a web-app for installation or general configuration.- Parameters:
newHasConfigWebapp- Whether the annotator includes a web-app for installation or general configuration.- Returns:
- A reference to this object, so that setters can be chained.
-
hasTaskWebapp
public boolean hasTaskWebapp()
Determines whether the annotator includes a web-app for task parameter configuration.- Overrides:
hasTaskWebappin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- true if the class includes a web-app at task/index.html, false otherwise.
-
getHasTaskWebapp
@ClonedProperty public Boolean getHasTaskWebapp()
Getter forhasTaskWebapp: Whether the annotator includes a web-app for task parameter configuration.- Overrides:
getHasTaskWebappin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- Whether the annotator includes a web-app for task parameter configuration.
-
setHasTaskWebapp
public AnnotatorDescriptorWrapper setHasTaskWebapp(Boolean newHasTaskWebapp)
Setter forhasTaskWebapp: Whether the annotator includes a web-app for task parameter configuration.- Parameters:
newHasTaskWebapp- Whether the annotator includes a web-app for task parameter configuration.- Returns:
- A reference to this object, so that setters can be chained.
-
hasExtWebapp
public boolean hasExtWebapp()
Determines whether the annotator includes an extras web-app.- Overrides:
hasExtWebappin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- true if the class includes a web-app at ext/index.html, false otherwise.
-
getHasExtWebapp
@ClonedProperty public Boolean getHasExtWebapp()
Getter forhasExtWebapp: Whether the annotator includes an extras web-app.- Overrides:
getHasExtWebappin classnzilbb.ag.automation.util.AnnotatorDescriptor- Returns:
- Whether the annotator includes an extras web-app.
-
setHasExtWebapp
public AnnotatorDescriptorWrapper setHasExtWebapp(Boolean newHasExtWebapp)
Setter forhasExtWebapp: Whether the annotator includes an extras web-app.- Parameters:
newHasExtWebapp- Whether the annotator includes an extras web-app.- Returns:
- A reference to this object, so that setters can be chained.
-
-