|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jst.ws.annotations.core.AnnotationDefinition
public final class AnnotationDefinition
An AnnotationDefinition is a representation of the information contributed through the
org.eclipse.jst.ws.annotations.core.annotationDefinition,
org.eclipse.jst.ws.annotations.core.annotationCategory and
org.eclipse.jst.ws.annotations.core.annotationInitializer extension points.
for a java.lang.annotation.Annotation class.
It supplies the annotation class name, its annotation category, the applicable targets for the annotation
and an IAnnotationAttributeInitializer to initialize the annotations element-value pairs.
| Constructor Summary | |
|---|---|
AnnotationDefinition(org.eclipse.core.runtime.IConfigurationElement configurationElement,
java.lang.String category)
Constructs an AnnotationDefinition using information from the
org.eclipse.jst.ws.annotations.core.annotationDefinition extension point and category name. |
|
| Method Summary | |
|---|---|
IAnnotationAttributeInitializer |
getAnnotationAttributeInitializer()
Returns the annotations attribute initializer as specified in the org.eclipse.jst.ws.annotations.core.annotationInitializer extension point or null if no
initializer can be found. |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotationClass()
Returns the annotation class as specified by the class attribute of the
annotation |
java.lang.String |
getAnnotationClassName()
Returns the fully qualified class name of the annotation. |
java.lang.String |
getCategory()
Returns the category the annotation belongs to. |
java.lang.String |
getName()
Returns the annotation name. |
java.util.List<java.lang.annotation.ElementType> |
getTargets()
Returns a list of ElementType that specify the Java elements to which the annotation
can be applied. |
boolean |
isClassOnly()
Returns whether the annotation is restricted to class types. |
boolean |
isEnumOnly()
Returns whether the annotation is restricted to enum types. |
boolean |
isInterfaceOnly()
Returns whether the annotation is restricted to interface types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationDefinition(org.eclipse.core.runtime.IConfigurationElement configurationElement,
java.lang.String category)
AnnotationDefinition using information from the
org.eclipse.jst.ws.annotations.core.annotationDefinition extension point and category name.
configurationElement - the annotation element from the org.eclipse.jst.ws.annotations.core.annotationDefinition extension pointcategory - the category name| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getCategory()
public java.lang.String getAnnotationClassName()
public boolean isClassOnly()
true if the annotation is restricted to classes only.public boolean isInterfaceOnly()
true if the annotation is restricted to interfaces only.public boolean isEnumOnly()
true if the annotation is restricted to enums only.public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationClass()
class attribute of the
annotation element in the org.eclipse.jst.ws.annotations.core.annotationDefinition
extension point.
- Returns:
- the annotation class
public java.util.List<java.lang.annotation.ElementType> getTargets()
ElementType that specify the Java elements to which the annotation
can be applied.
The element types are retrieved from the annotations
Target meta-annotation type. This list can be filtered using
the targetFilter element on the
org.eclipse.jst.ws.annotations.core.annotationDefinition extension point when defining
the annotation.
public IAnnotationAttributeInitializer getAnnotationAttributeInitializer()
org.eclipse.jst.ws.annotations.core.annotationInitializer extension point or null if no
initializer can be found.
IAnnotationAttributeInitializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||