Interface CustomAnnotationInstance
public interface CustomAnnotationInstance
This interface is intended to represent annotation instances
that are not explicitly defined by the MDQ layer. This will
allow the use of custom annotations or those outside the scope
of the metadata that is intended for use within MDQ. The provider
of CustomAnnotationInstances will be responsbile for mapping
specific CustomAnnotationInstance implementations to actual
annotation types.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameterData(String paramName, Object paramValue) This method stores parameter data in the CustomAnnotationInstance based on the key that is supplied.This returns a string that represents the fully qualified name of the annotation type this instance represents.getParameterData(String paramName) This method retrieves the parameter data associated with the given parameter name.This method returns the ElementType Enum that represents the target for this annotation instance.voidsetAnnotationClassName(String annotationClassName) This sets a string that represents the fully qualified name of the annotation type this instance represents.voidsetTarget(ElementType elementType) This method sets the ElementType Enum that represents the target for this annotation instance.
-
Method Details
-
getAnnotationClassName
String getAnnotationClassName()This returns a string that represents the fully qualified name of the annotation type this instance represents. -
setAnnotationClassName
This sets a string that represents the fully qualified name of the annotation type this instance represents. -
setTarget
This method sets the ElementType Enum that represents the target for this annotation instance. -
getTarget
ElementType getTarget()This method returns the ElementType Enum that represents the target for this annotation instance. -
addParameterData
This method stores parameter data in the CustomAnnotationInstance based on the key that is supplied.- Throws:
IllegalArgumentException
-
getParameterData
This method retrieves the parameter data associated with the given parameter name.- Throws:
IllegalArgumentException
-