blob: 124f0a8c735c464facf7c27a18c038ef75f65774 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Sun Apr 03 11:19:13 IST 2011 -->
<TITLE>
AnnotationDefinition
</TITLE>
<META NAME="date" CONTENT="2011-04-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AnnotationDefinition";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AnnotationDefinition.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationsCore.html" title="class in org.eclipse.jst.ws.annotations.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="AnnotationDefinition.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.eclipse.jst.ws.annotations.core</FONT>
<BR>
Class AnnotationDefinition</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.eclipse.jst.ws.annotations.core.AnnotationDefinition</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>AnnotationDefinition</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
An <code>AnnotationDefinition</code> is a representation of the information contributed through the
<code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code>,
<code>org.eclipse.jst.ws.annotations.core.annotationCategory</code> and
<code>org.eclipse.jst.ws.annotations.core.annotationInitializer</code> extension points.
<p>
It supplies the annotation class name, its annotation category, the applicable targets for the annotation
and an <code>IAnnotationAttributeInitializer</code> to initialize the annotations element-value pairs.
</p>
<strong>Provisional API:</strong> This class/interface is part of an interim API that is still under
development and expected to change significantly before reaching stability. It is being made available at
this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses
this API will almost certainly be broken (repeatedly) as the API evolves.
</p>
<P>
<P>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#AnnotationDefinition(org.eclipse.core.runtime.IConfigurationElement, java.lang.String)">AnnotationDefinition</A></B>(org.eclipse.core.runtime.IConfigurationElement&nbsp;configurationElement,
java.lang.String&nbsp;category)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>AnnotationDefinition</code> using information from the
<code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code> extension point and category name.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/initialization/IAnnotationAttributeInitializer.html" title="interface in org.eclipse.jst.ws.annotations.core.initialization">IAnnotationAttributeInitializer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationAttributeInitializer()">getAnnotationAttributeInitializer</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the annotations attribute initializer as specified in the
<code>org.eclipse.jst.ws.annotations.core.annotationInitializer</code> extension point or null if no
initializer can be found.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Class&lt;? extends java.lang.annotation.Annotation&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationClass()">getAnnotationClass</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.1 replaced by <A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationType()"><CODE>getAnnotationType()</CODE></A></I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationClassName()">getAnnotationClassName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the fully qualified class name of the annotation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.eclipse.jdt.core.IType</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationType()">getAnnotationType</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the annotation type as specified by the <code>class</code> attribute of the
<code>annotation<annotation> element in the <code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code>
extension point.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;java.lang.annotation.ElementType&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationTypeTargets()">getAnnotationTypeTargets</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of <CODE>ElementType</CODE> that specify the Java elements to which the annotation can be applied.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getCategory()">getCategory</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the category the annotation belongs to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getName()">getName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the annotation name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;java.lang.annotation.ElementType&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getTargets()">getTargets</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>as of 1.1 replaced by <A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationTypeTargets()"><CODE>getAnnotationTypeTargets()</CODE></A></I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#isClassOnly()">isClassOnly</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the annotation is restricted to class types.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#isEnumOnly()">isEnumOnly</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the annotation is restricted to enum types.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#isInterfaceOnly()">isInterfaceOnly</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the annotation is restricted to interface types.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#setJavaProject(org.eclipse.jdt.core.IJavaProject)">setJavaProject</A></B>(org.eclipse.jdt.core.IJavaProject&nbsp;javaProject)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <code>org.eclipse.jdt.core.IJavaProject</code> which is used to find the annotation type.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="AnnotationDefinition(org.eclipse.core.runtime.IConfigurationElement, java.lang.String)"><!-- --></A><H3>
AnnotationDefinition</H3>
<PRE>
public <B>AnnotationDefinition</B>(org.eclipse.core.runtime.IConfigurationElement&nbsp;configurationElement,
java.lang.String&nbsp;category)</PRE>
<DL>
<DD>Constructs an <code>AnnotationDefinition</code> using information from the
<code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code> extension point and category name.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>configurationElement</CODE> - the <code>annotation</code> element from the <code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code> extension point<DD><CODE>category</CODE> - the category name</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Returns the annotation name.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the annotation name.</DL>
</DD>
</DL>
<HR>
<A NAME="getCategory()"><!-- --></A><H3>
getCategory</H3>
<PRE>
public java.lang.String <B>getCategory</B>()</PRE>
<DL>
<DD>Returns the category the annotation belongs to.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the annotation category.</DL>
</DD>
</DL>
<HR>
<A NAME="getAnnotationClassName()"><!-- --></A><H3>
getAnnotationClassName</H3>
<PRE>
public java.lang.String <B>getAnnotationClassName</B>()</PRE>
<DL>
<DD>Returns the fully qualified class name of the annotation.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the fully qualified class name of the annotation.</DL>
</DD>
</DL>
<HR>
<A NAME="isClassOnly()"><!-- --></A><H3>
isClassOnly</H3>
<PRE>
public boolean <B>isClassOnly</B>()</PRE>
<DL>
<DD>Returns whether the annotation is restricted to class types.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the annotation is restricted to classes only.</DL>
</DD>
</DL>
<HR>
<A NAME="isInterfaceOnly()"><!-- --></A><H3>
isInterfaceOnly</H3>
<PRE>
public boolean <B>isInterfaceOnly</B>()</PRE>
<DL>
<DD>Returns whether the annotation is restricted to interface types.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the annotation is restricted to interfaces only.</DL>
</DD>
</DL>
<HR>
<A NAME="isEnumOnly()"><!-- --></A><H3>
isEnumOnly</H3>
<PRE>
public boolean <B>isEnumOnly</B>()</PRE>
<DL>
<DD>Returns whether the annotation is restricted to enum types.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the annotation is restricted to enums only.</DL>
</DD>
</DL>
<HR>
<A NAME="getAnnotationClass()"><!-- --></A><H3>
getAnnotationClass</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public java.lang.Class&lt;? extends java.lang.annotation.Annotation&gt; <B>getAnnotationClass</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>As of 1.1 replaced by <A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationType()"><CODE>getAnnotationType()</CODE></A></I>
<P>
<DD>Returns the annotation class as specified by the <code>class</code> attribute of the
<code>annotation<annotation> element in the <code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code>
extension point.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the annotation class or null if not found.</DL>
</DD>
</DL>
<HR>
<A NAME="getAnnotationType()"><!-- --></A><H3>
getAnnotationType</H3>
<PRE>
public org.eclipse.jdt.core.IType <B>getAnnotationType</B>()</PRE>
<DL>
<DD>Returns the annotation type as specified by the <code>class</code> attribute of the
<code>annotation<annotation> element in the <code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code>
extension point.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the <code>org.eclipse.jdt.core.IType</code> which represents an annotation type or null if the java project
has not been set, if the type cannot be found or if the type does not represent an annotation type.<DT><B>Since:</B></DT>
<DD>1.1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#setJavaProject(org.eclipse.jdt.core.IJavaProject)"><CODE>setJavaProject(IJavaProject)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getTargets()"><!-- --></A><H3>
getTargets</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public java.util.List&lt;java.lang.annotation.ElementType&gt; <B>getTargets</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>as of 1.1 replaced by <A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationTypeTargets()"><CODE>getAnnotationTypeTargets()</CODE></A></I>
<P>
<DD>Returns a list of <CODE>ElementType</CODE> that specify the Java elements to which the annotation
can be applied.
<p>
The element types are retrieved from the annotations
<CODE>Target</CODE> meta-annotation type. This list can be filtered using
the <code>targetFilter</code> element on the
<code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code> extension point when defining
the annotation.
</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a list of element types.</DL>
</DD>
</DL>
<HR>
<A NAME="getAnnotationTypeTargets()"><!-- --></A><H3>
getAnnotationTypeTargets</H3>
<PRE>
public java.util.List&lt;java.lang.annotation.ElementType&gt; <B>getAnnotationTypeTargets</B>()</PRE>
<DL>
<DD>Returns a list of <CODE>ElementType</CODE> that specify the Java elements to which the annotation can be applied.
<p>
The element types are retrieved from the annotations
<CODE>Target</CODE> meta-annotation type. This list can
be filtered using the <code>targetFilter</code> element on the
<code>org.eclipse.jst.ws.annotations.core.annotationDefinition</code>
extension point when defining the annotation.
</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a list of element types or null if the java project has not been set or if the annotation type cannot be
found.<DT><B>Since:</B></DT>
<DD>1.1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#setJavaProject(org.eclipse.jdt.core.IJavaProject)"><CODE>setJavaProject(IJavaProject)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getAnnotationAttributeInitializer()"><!-- --></A><H3>
getAnnotationAttributeInitializer</H3>
<PRE>
public <A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/initialization/IAnnotationAttributeInitializer.html" title="interface in org.eclipse.jst.ws.annotations.core.initialization">IAnnotationAttributeInitializer</A> <B>getAnnotationAttributeInitializer</B>()</PRE>
<DL>
<DD>Returns the annotations attribute initializer as specified in the
<code>org.eclipse.jst.ws.annotations.core.annotationInitializer</code> extension point or null if no
initializer can be found.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the <code>IAnnotationAttributeInitializer</code></DL>
</DD>
</DL>
<HR>
<A NAME="setJavaProject(org.eclipse.jdt.core.IJavaProject)"><!-- --></A><H3>
setJavaProject</H3>
<PRE>
public void <B>setJavaProject</B>(org.eclipse.jdt.core.IJavaProject&nbsp;javaProject)</PRE>
<DL>
<DD>Sets the <code>org.eclipse.jdt.core.IJavaProject</code> which is used to find the annotation type.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
<DD>1.1</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationType()"><CODE>getAnnotationType()</CODE></A>,
<A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html#getAnnotationTypeTargets()"><CODE>getAnnotationTypeTargets()</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AnnotationDefinition.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../../org/eclipse/jst/ws/annotations/core/AnnotationsCore.html" title="class in org.eclipse.jst.ws.annotations.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/eclipse/jst/ws/annotations/core/AnnotationDefinition.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="AnnotationDefinition.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>