public class MetadataAnnotatedElement extends MetadataAccessibleObject
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_RAW_CLASS |
Constructor and Description |
---|
MetadataAnnotatedElement(MetadataFactory factory)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(MetadataAnnotation annotation)
INTERNAL:
|
void |
addGenericType(String genericType)
INTERNAL:
|
boolean |
areAnnotationsCompatibleWithTransient(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessible object has 2 or more declared
persistence annotations.
|
boolean |
equals(Object object)
INTERNAL:
|
MetadataAnnotation |
getAnnotation(Class annotation)
INTERNAL:
Return the annotated element for this accessor.
|
MetadataAnnotation |
getAnnotation(String annotation)
INTERNAL:
Return the annotated element for this accessor.
|
MetadataAnnotation |
getAnnotation(String annotationClassName,
ClassAccessor classAccessor)
INTERNAL:
Return the annotated element for this accessor.
|
Map<String,MetadataAnnotation> |
getAnnotations()
INTERNAL:
Return the annotations of this accessible object.
|
String |
getAttributeName()
INTERNAL:
|
List<String> |
getGenericType()
INTERNAL:
|
MetadataClass |
getMapKeyClass(MetadataDescriptor descriptor)
INTERNAL:
This should only be called for accessor's of type Map.
|
int |
getModifiers()
INTERNAL:
|
String |
getName()
INTERNAL:
|
Object |
getPrimitiveType()
INTERNAL:
If this annotated element was built from java model elements and is
a primitive type, this primitive type will be set.
|
MetadataClass |
getRawClass(MetadataDescriptor descriptor)
INTERNAL:
Return the raw class for this accessible object.
|
MetadataClass |
getRawClassWithGenerics(MetadataDescriptor descriptor)
INTERNAL:
Return the complete raw class with generics for this accessible object.
|
MetadataClass |
getReferenceClassFromGeneric(MetadataDescriptor descriptor)
INTERNAL:
Return the reference class from the generic specification on this
accessible object.
|
String |
getType()
INTERNAL:
|
boolean |
hasDeclaredAnnotations(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessible object has 1 or more declared
persistence annotations.
|
int |
hashCode()
INTERNAL:
|
boolean |
isAnnotationNotPresent(Class annotation,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is actually not present on
this accessible object.
|
boolean |
isAnnotationNotPresent(String annotation,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is actually not present on
this accessible object.
|
boolean |
isAnnotationPresent(Class annotationClass,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is present on java class
for the given descriptor metadata.
|
boolean |
isAnnotationPresent(String annotation)
INTERNAL:
Indicates whether the specified annotation is present on this accessible
object.
|
boolean |
isAnnotationPresent(String annotationName,
ClassAccessor accessor)
INTERNAL:
Indicates whether the specified annotation is present on java class
for the given descriptor metadata.
|
boolean |
isArray(ClassAccessor classAccessor)
INTERNAL:
Return true if this field accessor represents an array relationship.
|
boolean |
isBasic(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a basic mapping.
|
boolean |
isBasicCollection(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a basic collection mapping.
|
boolean |
isBasicMap(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a basic collection mapping.
|
boolean |
isDerivedId(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an id mapping.
|
boolean |
isDerivedIdClass(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an id mapping.
|
boolean |
isElementCollection(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an element collection mapping.
|
boolean |
isEmbedded(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an aggregate mapping.
|
boolean |
isEmbeddedId(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an aggregate id mapping.
|
boolean |
isGenericCollectionType()
INTERNAL:
Method to return whether a collection type is a generic.
|
boolean |
isGenericType()
INTERNAL:
Method to return whether a type is a generic.
|
boolean |
isId(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an id mapping.
|
boolean |
isManyToMany(ClassAccessor classAccessor)
INTERNAL:
Return true if this field accessor represents a m-m relationship.
|
boolean |
isManyToOne(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a m-1 relationship.
|
boolean |
isOneToMany(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a 1-m relationship.
|
boolean |
isOneToOne(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a 1-1 relationship.
|
boolean |
isStructure(ClassAccessor classAccessor)
INTERNAL:
Return true if this field accessor represents a structure relationship.
|
boolean |
isSupportedCollectionClass(MetadataClass metadataClass)
INTERNAL:
Method to return whether the given class is a supported collection class.
|
boolean |
isSupportedMapClass(MetadataClass metadataClass)
INTERNAL:
Method to return whether the given class is a supported map class.
|
boolean |
isSupportedToManyCollectionClass(MetadataClass metadataClass)
INTERNAL:
Method to return whether the given class is a supported to many
collection class.
|
boolean |
isTransformation(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents an transformation mapping.
|
boolean |
isVariableOneToOne(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a variable 1-1 relationship.
|
boolean |
isVersion(ClassAccessor classAccessor)
INTERNAL:
Return true if this accessor represents a version mapping.
|
void |
setAnnotations(Map<String,MetadataAnnotation> annotations)
INTERNAL:
Set the annotations of this accessible object.
|
void |
setAttributeName(String attributeName)
INTERNAL:
|
void |
setGenericType(List<String> genericType)
INTERNAL:
|
void |
setModifiers(int modifiers)
INTERNAL:
|
void |
setName(String name)
INTERNAL:
|
void |
setPrimitiveType(Object primitiveType)
INTERNAL:
If this annotated element was built from java model elements and is
a primitive type this method will be called.
|
void |
setType(String type)
INTERNAL:
|
String |
toString()
INTERNAL:
|
getLogger, getMetadataClass, getMetadataFactory, setMetadataFactory
public static final String DEFAULT_RAW_CLASS
public MetadataAnnotatedElement(MetadataFactory factory)
public void addAnnotation(MetadataAnnotation annotation)
public void addGenericType(String genericType)
public MetadataAnnotation getAnnotation(Class annotation)
public MetadataAnnotation getAnnotation(String annotation)
public MetadataAnnotation getAnnotation(String annotationClassName, ClassAccessor classAccessor)
public Map<String,MetadataAnnotation> getAnnotations()
public String getAttributeName()
getAttributeName
in class MetadataAccessibleObject
public MetadataClass getMapKeyClass(MetadataDescriptor descriptor)
public int getModifiers()
public String getName()
getName
in class MetadataAccessibleObject
public Object getPrimitiveType()
public MetadataClass getRawClass(MetadataDescriptor descriptor)
to get Employee.class back.
,
to get java.util.CollectionEmployee back.
public MetadataClass getRawClassWithGenerics(MetadataDescriptor descriptor)
to get Employee.class back.
,
to get java.util.Collection back.
public MetadataClass getReferenceClassFromGeneric(MetadataDescriptor descriptor)
public String getType()
public boolean hasDeclaredAnnotations(ClassAccessor classAccessor)
public boolean areAnnotationsCompatibleWithTransient(ClassAccessor classAccessor)
public boolean isAnnotationNotPresent(Class annotation, ClassAccessor accessor)
public boolean isAnnotationNotPresent(String annotation, ClassAccessor accessor)
public boolean isAnnotationPresent(Class annotationClass, ClassAccessor accessor)
public boolean isAnnotationPresent(String annotation)
public boolean isAnnotationPresent(String annotationName, ClassAccessor accessor)
public boolean isArray(ClassAccessor classAccessor)
public boolean isBasic(ClassAccessor classAccessor)
public boolean isBasicCollection(ClassAccessor classAccessor)
public boolean isBasicMap(ClassAccessor classAccessor)
public boolean isDerivedId(ClassAccessor classAccessor)
public boolean isDerivedIdClass(ClassAccessor classAccessor)
public boolean isElementCollection(ClassAccessor classAccessor)
public boolean isEmbedded(ClassAccessor classAccessor)
public boolean isEmbeddedId(ClassAccessor classAccessor)
public boolean isGenericCollectionType()
public boolean isGenericType()
public boolean isId(ClassAccessor classAccessor)
public boolean isManyToMany(ClassAccessor classAccessor)
public boolean isManyToOne(ClassAccessor classAccessor)
public boolean isOneToMany(ClassAccessor classAccessor)
public boolean isOneToOne(ClassAccessor classAccessor)
public boolean isStructure(ClassAccessor classAccessor)
public boolean isSupportedCollectionClass(MetadataClass metadataClass)
public boolean isSupportedMapClass(MetadataClass metadataClass)
public boolean isSupportedToManyCollectionClass(MetadataClass metadataClass)
public boolean isTransformation(ClassAccessor classAccessor)
public boolean isVariableOneToOne(ClassAccessor classAccessor)
public boolean isVersion(ClassAccessor classAccessor)
public void setAnnotations(Map<String,MetadataAnnotation> annotations)
public void setAttributeName(String attributeName)
public void setModifiers(int modifiers)
public void setName(String name)
public void setPrimitiveType(Object primitiveType)
public void setType(String type)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference