Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.descriptor.annotation
Class AnnotationDefinition

java.lang.Object
  extended by weblogic.descriptor.annotation.AnnotationDefinition

Direct Known Subclasses:
AnnotationDefinition.EnumerationAnnotation, AnnotationDefinition.LegalStringAnnotation, AnnotationDefinition.UnSetValueAnnotation

public class AnnotationDefinition
extends Object

Repesents a javadoc annotation that may be used in the defintion of a descriptor bean.


Nested Class Summary
static class AnnotationDefinition.EnumerationAnnotation
           
static class AnnotationDefinition.LegalNullStringAnnotation
           
static class AnnotationDefinition.LegalStringAnnotation
          Covers both NULLABLE & LEGAL_ZERO_LENGTH annotations
static class AnnotationDefinition.LegalZeroLengthStringAnnotation
           
static class AnnotationDefinition.UnSetValueAnnotation
           

 

Field Summary
static int INHERIT_FROM_CLASS
          Flag indicating that member can inherit this annotation from its class.
static int INHERIT_FROM_SUPERCLASS
          Flag indicating that class can inherit this annotation from its superclass.

 

Method Summary
protected  String constructMessage(String message, PropertyDeclaration declaration, String alias)
           
protected  void error(String message, PropertyDeclaration declaration, String alias)
           
 String[] getAliases()
           
 JAnnotationValue getAnnotationValue(JAnnotatedElement element)
           
 JAnnotationValue[] getAnnotationValues(JAnnotatedElement element)
          Copied and modified getAnnotationValue() by Eric.
 boolean isAllowedType(Class type)
           
 boolean isDefined(JAnnotatedElement element)
           
 String toString()
           
 List validate(PropertyDeclaration declaration, String alias)
           
protected  void warning(String message, PropertyDeclaration declaration, String alias)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

INHERIT_FROM_CLASS

public static final int INHERIT_FROM_CLASS
Flag indicating that member can inherit this annotation from its class.
See Also:
Constant Field Values

INHERIT_FROM_SUPERCLASS

public static final int INHERIT_FROM_SUPERCLASS
Flag indicating that class can inherit this annotation from its superclass.
See Also:
Constant Field Values

Method Detail

isDefined

public boolean isDefined(JAnnotatedElement element)

getAnnotationValue

public JAnnotationValue getAnnotationValue(JAnnotatedElement element)

getAnnotationValues

public JAnnotationValue[] getAnnotationValues(JAnnotatedElement element)
Copied and modified getAnnotationValue() by Eric. This is a much slower way of retrieving annotations. So if you know that there is just one annotation or if you are expecting only one annotation, use getAnnotationValue()
Returns:
an array of values, zero length array if none are present

toString

public String toString()
Overrides:
toString in class Object

getAliases

public String[] getAliases()

constructMessage

protected String constructMessage(String message,
                                  PropertyDeclaration declaration,
                                  String alias)

error

protected void error(String message,
                     PropertyDeclaration declaration,
                     String alias)

warning

protected void warning(String message,
                       PropertyDeclaration declaration,
                       String alias)

isAllowedType

public boolean isAllowedType(Class type)

validate

public List validate(PropertyDeclaration declaration,
                     String alias)

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09