Class TypeDescription_impl
- java.lang.Object
-
- org.apache.uima.resource.metadata.impl.MetaDataObject_impl
-
- org.apache.uima.resource.metadata.impl.TypeDescription_impl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,MetaDataObject,TypeDescription,XMLizable
public class TypeDescription_impl extends MetaDataObject_impl implements TypeDescription
Reference implementation ofTypeDescription. Under construction.- 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 AllowedValue[]EMPTY_ALLOWED_VALUE_ARRAYprivate static FeatureDescription[]EMPTY_FEAT_DESC_ARRAYprivate AllowedValue[]mAllowedValuesAllowed Values for an Enumerated type.private java.lang.StringmDescriptionVerbose description of this Type.private FeatureDescription[]mFeaturesDescriptions of all Features defined on this Type.private java.lang.StringmNameName of this Type.private java.lang.StringmSupertypeNameName of the Type from which this Type inherits.(package private) static longserialVersionUIDprivate static XmlizationInfoXMLIZATION_INFO-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
Fields inherited from interface org.apache.uima.resource.metadata.TypeDescription
EMPTY_TYPE_DESCRIPTIONS
-
-
Constructor Summary
Constructors Constructor Description TypeDescription_impl()Creates a new TypeDescription_impl with null field values.TypeDescription_impl(java.lang.String aName, java.lang.String aDescription, java.lang.String aSupertypeName)Creates a new TypeDescription_impl with the specified field values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureDescriptionaddFeature(java.lang.String aFeatureName, java.lang.String aDescription, java.lang.String aRangeTypeName)Convenience method which adds a FeatureDescription to this TypeDescription.FeatureDescriptionaddFeature(java.lang.String aFeatureName, java.lang.String aDescription, java.lang.String aRangeTypeName, java.lang.String aElementTypeName, java.lang.Boolean aMultipleReferencesAllowed)Convenience method which adds a FeatureDescription to this TypeDescription.AllowedValue[]getAllowedValues()Gets the allowed values for instances of this Type.java.lang.StringgetDescription()Gets the verbose description of this Type.FeatureDescription[]getFeatures()Gets the descriptions of the features for this Type.java.lang.StringgetName()Gets the name of this Type.java.lang.StringgetSupertypeName()Gets the name of the supertype for this Type.protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidsetAllowedValues(AllowedValue[] aAllowedValues)Sets the allowed values for instances of this Type.voidsetDescription(java.lang.String aDescription)Sets the verbose description of this Type.voidsetFeatures(FeatureDescription[] aFeatures)Sets the descriptions of the features for this Type.voidsetName(java.lang.String aName)Sets the name of this Type.voidsetSupertypeName(java.lang.String aTypeName)Sets the name of the supertype for this Type.-
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributes, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getUnfilteredAttributes, 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
static final long serialVersionUID
- See Also:
- Constant Field Values
-
EMPTY_FEAT_DESC_ARRAY
private static final FeatureDescription[] EMPTY_FEAT_DESC_ARRAY
-
EMPTY_ALLOWED_VALUE_ARRAY
private static final AllowedValue[] EMPTY_ALLOWED_VALUE_ARRAY
-
mName
private java.lang.String mName
Name of this Type.
-
mDescription
private java.lang.String mDescription
Verbose description of this Type.
-
mSupertypeName
private java.lang.String mSupertypeName
Name of the Type from which this Type inherits.
-
mFeatures
private FeatureDescription[] mFeatures
Descriptions of all Features defined on this Type.
-
mAllowedValues
private AllowedValue[] mAllowedValues
Allowed Values for an Enumerated type.
-
XMLIZATION_INFO
private static final XmlizationInfo XMLIZATION_INFO
-
-
Constructor Detail
-
TypeDescription_impl
public TypeDescription_impl()
Creates a new TypeDescription_impl with null field values.
-
TypeDescription_impl
public TypeDescription_impl(java.lang.String aName, java.lang.String aDescription, java.lang.String aSupertypeName)Creates a new TypeDescription_impl with the specified field values.- Parameters:
aName- name of the TypeaDescription- -aSupertypeName- name of the type's supertype
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:TypeDescriptionGets the name of this Type.- Specified by:
getNamein interfaceTypeDescription- Returns:
- the name of this Type
- See Also:
TypeDescription.getName()
-
setName
public void setName(java.lang.String aName)
Description copied from interface:TypeDescriptionSets the name of this Type.- Specified by:
setNamein interfaceTypeDescription- Parameters:
aName- the name of this Type- See Also:
TypeDescription.setName(String)
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TypeDescriptionGets the verbose description of this Type.- Specified by:
getDescriptionin interfaceTypeDescription- Returns:
- the description of this Type
- See Also:
TypeDescription.getDescription()
-
setDescription
public void setDescription(java.lang.String aDescription)
Description copied from interface:TypeDescriptionSets the verbose description of this Type.- Specified by:
setDescriptionin interfaceTypeDescription- Parameters:
aDescription- the description of this Type- See Also:
TypeDescription.setDescription(java.lang.String)
-
getSupertypeName
public java.lang.String getSupertypeName()
Description copied from interface:TypeDescriptionGets the name of the supertype for this Type. This is the Type from which this Type inherits.- Specified by:
getSupertypeNamein interfaceTypeDescription- Returns:
- the name of the supertype for this Type
- See Also:
TypeDescription.getSupertypeName()
-
setSupertypeName
public void setSupertypeName(java.lang.String aTypeName)
Description copied from interface:TypeDescriptionSets the name of the supertype for this Type. This is the Type from which this Type inherits.- Specified by:
setSupertypeNamein interfaceTypeDescription- Parameters:
aTypeName- the name of the supertype for this Type- See Also:
TypeDescription.setSupertypeName(String)
-
getFeatures
public FeatureDescription[] getFeatures()
Description copied from interface:TypeDescriptionGets the descriptions of the features for this Type.- Specified by:
getFeaturesin interfaceTypeDescription- Returns:
- the descriptions of the features for this Type.
- See Also:
TypeDescription.getFeatures()
-
setFeatures
public void setFeatures(FeatureDescription[] aFeatures)
Description copied from interface:TypeDescriptionSets the descriptions of the features for this Type.- Specified by:
setFeaturesin interfaceTypeDescription- Parameters:
aFeatures- descriptions of the features for this Type.- See Also:
TypeDescription.setFeatures(FeatureDescription[])
-
getAllowedValues
public AllowedValue[] getAllowedValues()
Description copied from interface:TypeDescriptionGets the allowed values for instances of this Type. This is used only for special "enumerated types" that extend the String type and define a specific set of allowed values. For all other Types this will returnnull. Note that if a type has allowed values, it may not have features.- Specified by:
getAllowedValuesin interfaceTypeDescription- Returns:
- the allowed values for instances of this Type
- See Also:
TypeDescription.getAllowedValues()
-
setAllowedValues
public void setAllowedValues(AllowedValue[] aAllowedValues)
Description copied from interface:TypeDescriptionSets the allowed values for instances of this Type. This is used only for special "enumerated types" that extend the String type and define a specific set of allowed values. For all other Types this property should benull. Note that if a type has allowed values, it may not have features.- Specified by:
setAllowedValuesin interfaceTypeDescription- Parameters:
aAllowedValues- the allowed values for instances of this Type- See Also:
TypeDescription.setAllowedValues(AllowedValue[])
-
addFeature
public FeatureDescription addFeature(java.lang.String aFeatureName, java.lang.String aDescription, java.lang.String aRangeTypeName)
Description copied from interface:TypeDescriptionConvenience method which adds a FeatureDescription to this TypeDescription.- Specified by:
addFeaturein interfaceTypeDescription- Parameters:
aFeatureName- name of feature to addaDescription- verbose description of the featureaRangeTypeName- name of feature's range type- Returns:
- description of the new Feature
- See Also:
TypeDescription.addFeature(String, String, String)
-
addFeature
public FeatureDescription addFeature(java.lang.String aFeatureName, java.lang.String aDescription, java.lang.String aRangeTypeName, java.lang.String aElementTypeName, java.lang.Boolean aMultipleReferencesAllowed)
Description copied from interface:TypeDescriptionConvenience method which adds a FeatureDescription to this TypeDescription. Used for array or list valued features, which have additional attributes.- Specified by:
addFeaturein interfaceTypeDescription- Parameters:
aFeatureName- name of feature to addaDescription- verbose description of the featureaRangeTypeName- name of feature's range typeaElementTypeName- type of element expected to be contained in the array or listaMultipleReferencesAllowed- whether an array or list that's assigned to this feature can also be referenced from another feature. This is a Boolean object so that the null value can be used to represent the case where the user has not specified a value.- Returns:
- description of the new Feature
- See Also:
TypeDescription.addFeature(String, String, String, String, Boolean)
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-
-