Class ResourceMetaDataFactory
java.lang.Object
org.apache.uima.fit.factory.ResourceMetaDataFactory
Convenience methods to create resource metadata.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureResourceMetaData(ResourceMetaData aMetaData, Class<?> aComponentClass) Adds meta data from aResourceMetaDataannotation to the given meta data object if such an annotation is present on the component class.static StringgetDefaultCopyright(Class<?> aComponentClass) Get the default copyright of a component class.static StringgetDefaultDescription(Class<?> aComponentClass) Get the default description of a component class.static StringgetDefaultName(Class<?> aComponentClass) Get the default name of a component class.static StringgetDefaultVendor(Class<?> aComponentClass) Get the default vendor of a component class.static StringgetDefaultVersion(Class<?> aComponentClass) Get the default version of a component class.
-
Method Details
-
configureResourceMetaData
Adds meta data from aResourceMetaDataannotation to the given meta data object if such an annotation is present on the component class. If no annotation is present, default values are be added.- Parameters:
aMetaData- the meta data object to configure.aComponentClass- the class that may carry theResourceMetaDataannotation
-
getDefaultCopyright
-
getDefaultVersion
-
getDefaultDescription
-
getDefaultVendor
-
getDefaultName
-