|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.internal.AnnotationTypeEnum
public final class AnnotationTypeEnum
AnnotationTypeEnum is an enumeration value representing the annotation type.
| Field Summary | |
|---|---|
static AnnotationTypeEnum |
JAVADOC
javadoc annotation type |
static AnnotationTypeEnum |
JDK
JDK5 annotation type |
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns a human readable representation of the enum, suitable to be converted back to the enumeration by the valueOf method. |
java.lang.String |
toString()
Returns the m_name of the annotation type. |
static AnnotationTypeEnum |
valueOf(java.lang.String pAnnotationType)
Returns an AnnotationTypeEnum object holding the value of the
specified pAnnotationType. |
static AnnotationTypeEnum |
valueOf(java.lang.String pAnnotationType,
boolean strict)
Returns an AnnotationTypeEnum object holding the value of the
specified pAnnotationType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AnnotationTypeEnum JAVADOC
public static final AnnotationTypeEnum JDK
| Method Detail |
|---|
public static AnnotationTypeEnum valueOf(java.lang.String pAnnotationType)
AnnotationTypeEnum object holding the value of the
specified pAnnotationType. This method throws an IllegalArgumentException
if pAnnotationType is an illegal value or if this is version 14 and JDK5 annotations
are specified.
pAnnotationType - the annotation type. This is one of the two constants
(AnnotationTypeEnum.JAVADOC_ANNOTATION_TYPE or AnnotationTypeEnum.JDK5_ANNOTATION_TYPE).
For backward compatibility we accept "1.4", "1.5". Any other value will default to
AnnotationTypeEnum.JDK5 if this is the 1.5 version of TestNG or
AnnotationTypeEnum.JAVADOC if this is the 1.4 version of TestNG.
AnnotationTypeEnum object holding the value of the
specified pAnnotationType.
public static AnnotationTypeEnum valueOf(java.lang.String pAnnotationType,
boolean strict)
AnnotationTypeEnum object holding the value of the
specified pAnnotationType. This method throws an IllegalArgumentException
if pAnnotationType is an illegal value or if this is version 14 and JDK5 annotations
are specified.
pAnnotationType - the annotation type. This is one of the two constants
(AnnotationTypeEnum.JAVADOC_ANNOTATION_TYPE or AnnotationTypeEnum.JDK5_ANNOTATION_TYPE).
For backward compatibility we accept "1.4", "1.5". Any other value will default to
AnnotationTypeEnum.JDK5 if this is the 1.5 version of TestNG or
AnnotationTypeEnum.JAVADOC if this is the 1.4 version of TestNG.strict - flag indicating if compatibility check should be performed
AnnotationTypeEnum object holding the value of the
specified pAnnotationType.public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||