public final class ResourceMetaDataFactory extends Object
Modifier and Type | Method and Description |
---|---|
static void |
configureResourceMetaData(org.apache.uima.resource.metadata.ResourceMetaData aMetaData,
Class<?> aComponentClass)
Adds meta data from a
ResourceMetaData annotation to the
given meta data object if such an annotation is present on the component class. |
static String |
getDefaultCopyright(Class<?> aComponentClass)
Get the default copyright of a component class.
|
static String |
getDefaultDescription(Class<?> aComponentClass)
Get the default description of a component class.
|
static String |
getDefaultName(Class<?> aComponentClass)
Get the default name of a component class.
|
static String |
getDefaultVendor(Class<?> aComponentClass)
Get the default vendor of a component class.
|
static String |
getDefaultVersion(Class<?> aComponentClass)
Get the default version of a component class.
|
public static void configureResourceMetaData(org.apache.uima.resource.metadata.ResourceMetaData aMetaData, Class<?> aComponentClass)
ResourceMetaData
annotation 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.aMetaData
- the meta data object to configure.aComponentClass
- the class that may carry the ResourceMetaData
annotationpublic static String getDefaultCopyright(Class<?> aComponentClass)
aComponentClass
- the class to analyzepublic static String getDefaultVersion(Class<?> aComponentClass)
aComponentClass
- the class to analyzepublic static String getDefaultDescription(Class<?> aComponentClass)
aComponentClass
- the class to analyzepublic static String getDefaultVendor(Class<?> aComponentClass)
aComponentClass
- the class to analyzenull
.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.