Package org.apache.uima.resource.impl
Class CustomResourceSpecifier_impl
- java.lang.Object
-
- org.apache.uima.resource.metadata.impl.MetaDataObject_impl
-
- org.apache.uima.resource.impl.CustomResourceSpecifier_impl
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,CustomResourceSpecifier
,MetaDataObject
,ResourceSpecifier
,XMLizable
public class CustomResourceSpecifier_impl extends MetaDataObject_impl implements CustomResourceSpecifier
Implementation ofCustomResourceSpecifier
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
-
-
Field Summary
Fields Modifier and Type Field Description private static Parameter[]
EMPTY_PARAMETERS
private Parameter[]
mParameters
private java.lang.String
mResourceClassName
private static long
serialVersionUID
private static XmlizationInfo
XMLIZATION_INFO
-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description CustomResourceSpecifier_impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameter[]
getParameters()
Gets parameters that may be read by the custom resource class when it is initialized.java.lang.String
getResourceClassName()
Retrieves the name of the Java class that will be instantiated when one of theUIMAFramework.produceXXX(ResourceSpecifier,...)
methods is called with this resource specifier.protected XmlizationInfo
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object in XML.void
setParameters(Parameter[] aParameters)
Sets parameters that may be read by the custom resource class when it is initialized.void
setResourceClassName(java.lang.String aResourceClassName)
Setss the name of the Java class that will be instantiated when one of theUIMAFramework.produceXXX(ResourceSpecifier,...)
methods is called with this resource specifier.-
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
EMPTY_PARAMETERS
private static final Parameter[] EMPTY_PARAMETERS
-
mParameters
private Parameter[] mParameters
-
mResourceClassName
private java.lang.String mResourceClassName
-
XMLIZATION_INFO
private static final XmlizationInfo XMLIZATION_INFO
-
-
Method Detail
-
getParameters
public Parameter[] getParameters()
Description copied from interface:CustomResourceSpecifier
Gets parameters that may be read by the custom resource class when it is initialized.- Specified by:
getParameters
in interfaceCustomResourceSpecifier
- Returns:
- an array of parameters. This will never return
null
.
-
getResourceClassName
public java.lang.String getResourceClassName()
Description copied from interface:CustomResourceSpecifier
Retrieves the name of the Java class that will be instantiated when one of theUIMAFramework.produceXXX(ResourceSpecifier,...)
methods is called with this resource specifier.- Specified by:
getResourceClassName
in interfaceCustomResourceSpecifier
- Returns:
- a fully-qualified Java class name. The named class should implement
Resource
.
-
setParameters
public void setParameters(Parameter[] aParameters)
Description copied from interface:CustomResourceSpecifier
Sets parameters that may be read by the custom resource class when it is initialized.- Specified by:
setParameters
in interfaceCustomResourceSpecifier
- Parameters:
aParameters
- the Parameters to set.
-
setResourceClassName
public void setResourceClassName(java.lang.String aResourceClassName)
Description copied from interface:CustomResourceSpecifier
Setss the name of the Java class that will be instantiated when one of theUIMAFramework.produceXXX(ResourceSpecifier,...)
methods is called with this resource specifier.- Specified by:
setResourceClassName
in interfaceCustomResourceSpecifier
- Parameters:
aResourceClassName
- a fully-qualified Java class name. The named class should implementResource
.
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfo
in classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
-
-