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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addParameterData(String paramName, Object paramValue)
This method stores parameter data in the CustomAnnotationInstance based on the key that is supplied.String
getAnnotationClassName()
This returns a string that represents the fully qualified name of the annotation type this instance represents.Object
getParameterData(String paramName)
This method retrieves the parameter data associated with the given parameter name.ElementType
getTarget()
This method returns the ElementType Enum that represents the target for this annotation instance.void
setAnnotationClassName(String annotationClassName)
This sets a string that represents the fully qualified name of the annotation type this instance represents.void
setTarget(ElementType elementType)
This method sets the ElementType Enum that represents the target for this annotation instance.
-
-
-
Method Detail
-
getAnnotationClassName
String getAnnotationClassName()
This returns a string that represents the fully qualified name of the annotation type this instance represents.
-
setAnnotationClassName
void setAnnotationClassName(String annotationClassName)
This sets a string that represents the fully qualified name of the annotation type this instance represents.
-
setTarget
void setTarget(ElementType elementType)
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
void addParameterData(String paramName, Object paramValue) throws IllegalArgumentException
This method stores parameter data in the CustomAnnotationInstance based on the key that is supplied.- Throws:
IllegalArgumentException
-
getParameterData
Object getParameterData(String paramName) throws IllegalArgumentException
This method retrieves the parameter data associated with the given parameter name.- Throws:
IllegalArgumentException
-
-