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.AnnotatorDescriptor
Client-side annotator descriptor that can be deserialized from JSON.
- Author:
- Robert Fromont robert@fromont.net.nz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter forannotatorId
: Annotator ID.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.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.Getter forhasConfigWebapp
: Whether the annotator includes a web-app for installation or general configuration.Getter forhasExtWebapp
: Whether the annotator includes an extras web-app.Getter forhasTaskWebapp
: Whether the annotator includes a web-app for task parameter configuration.getInfo()
Getter forinfo
: HTML-encoded description of the function of the annotator, for displaying to the user.Getter forminimumApiVersion
: Get the minimum version of the nzilbb.ag API supported by the serializer.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.Getter forversion
: Version of this implementation; versions will typically be numeric, but this is not a requirement.boolean
Determines whether the annotator includes a web-app for installation or general configuration.boolean
Determines whether the annotator includes an extras web-app.boolean
Determines whether the annotator includes a web-app for task parameter configuration.setAnnotatorId
(String newAnnotatorId) Setter forannotatorId
: Annotator ID.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.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.setHasConfigWebapp
(Boolean newHasConfigWebapp) Setter forhasConfigWebapp
: Whether the annotator includes a web-app for installation or general configuration.setHasExtWebapp
(Boolean newHasExtWebapp) Setter forhasExtWebapp
: Whether the annotator includes an extras web-app.setHasTaskWebapp
(Boolean newHasTaskWebapp) Setter forhasTaskWebapp
: Whether the annotator includes a web-app for task parameter configuration.Setter forinfo
: HTML-encoded description of the function of the annotator, for displaying to the user.setMinimumApiVersion
(String newMinimumApiVersion) Setter forminimumApiVersion
: Get the minimum version of the nzilbb.ag API supported by the serializer.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.setVersion
(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
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nzilbb.util.CloneableBean
addExtraJsonAttributes, clonePropertiesFrom, fromJson, getClonedAttributes, getter, setter, toJson
-
Constructor Details
-
AnnotatorDescriptorWrapper
public AnnotatorDescriptorWrapper()Default constructor.
-
-
Method Details
-
getAnnotatorId
Getter forannotatorId
: Annotator ID.- Overrides:
getAnnotatorId
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- Annotator ID.
-
setAnnotatorId
Setter forannotatorId
: Annotator ID.- Parameters:
newAnnotatorId
- Annotator ID.- Returns:
- A reference to this object, so that setters can be chained.
-
getVersion
Getter forversion
: Version of this implementation; versions will typically be numeric, but this is not a requirement.- Overrides:
getVersion
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- Version of this implementation; versions will typically be numeric, but this is not a requirement.
-
setVersion
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
Getter forminimumApiVersion
: Get the minimum version of the nzilbb.ag API supported by the serializer.- Overrides:
getMinimumApiVersion
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- Get the minimum version of the nzilbb.ag API supported by the serializer.
-
setMinimumApiVersion
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
Getter forinfo
: HTML-encoded description of the function of the annotator, for displaying to the user.- Overrides:
getInfo
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- HTML-encoded description of the function of the annotator, for displaying to the user.
-
setInfo
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
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:
getTaskParameterInfo
in 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
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
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:
getConfigParameterInfo
in 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
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
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:
getExtApiInfo
in 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
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:
hasConfigWebapp
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- true if the class includes a web-app at config/index.html, false otherwise.
-
getHasConfigWebapp
Getter forhasConfigWebapp
: Whether the annotator includes a web-app for installation or general configuration.- Overrides:
getHasConfigWebapp
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- Whether the annotator includes a web-app for installation or general configuration.
-
setHasConfigWebapp
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:
hasTaskWebapp
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- true if the class includes a web-app at task/index.html, false otherwise.
-
getHasTaskWebapp
Getter forhasTaskWebapp
: Whether the annotator includes a web-app for task parameter configuration.- Overrides:
getHasTaskWebapp
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- Whether the annotator includes a web-app for task parameter configuration.
-
setHasTaskWebapp
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:
hasExtWebapp
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- true if the class includes a web-app at ext/index.html, false otherwise.
-
getHasExtWebapp
Getter forhasExtWebapp
: Whether the annotator includes an extras web-app.- Overrides:
getHasExtWebapp
in classnzilbb.ag.automation.util.AnnotatorDescriptor
- Returns:
- Whether the annotator includes an extras web-app.
-
setHasExtWebapp
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.
-