Module org.eclipse.persistence.jpa
Class MetadataAnnotation
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotation
Metadata representation of an annotation.
- Since:
- EclipseLink 1.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String key, Object value) INTERNAL:getAttributeAnnotation
(String name) INTERNAL: Return annotation attribute value.Object[]
getAttributeArray
(String name) INTERNAL: Return the attribute value, or an empty array if not set.getAttributeBoolean
(String name, Boolean defaultValue) INTERNAL: Return the boolean attribute value, or the default value if not set.INTERNAL: Return the boolean attribute value, or FALSE if not set.INTERNAL: Return the boolean attribute value, or TRUE if not set.getAttributeClass
(String name, Class<?> defaultClass) INTERNAL: Return the Class attribute value, or the default provided.getAttributeInteger
(String name) INTERNAL: Return Integer attribute value.INTERNAL:getAttributeString
(String name) INTERNAL: Return the attribute value, or null if not set.getAttributeString
(String name, String defaultValue) INTERNAL: Return the attribute value, or defaultValue if not set.getName()
INTERNAL:boolean
hasAttribute
(String name) INTERNAL: Return true if the attribute exists.boolean
isMeta()
INTERNAL:void
setAttributes
(Map<String, Object> attributes) INTERNAL:void
setIsMeta
(boolean isMeta) INTERNAL:void
INTERNAL:toString()
INTERNAL:
-
Field Details
-
m_name
The name of the annotation. -
isMeta
protected boolean isMetaMetadata annotation flag -
m_attributes
Map of attribute names and values.
-
-
Constructor Details
-
MetadataAnnotation
public MetadataAnnotation()Default constructor.
-
-
Method Details
-
addAttribute
INTERNAL: -
getAttributeAnnotation
INTERNAL: Return annotation attribute value. You should call this method only if you know the object returned will be a MetadataAnnotation. -
getAttributeArray
INTERNAL: Return the attribute value, or an empty array if not set. Callers will have the cast the type. -
getAttributeBoolean
INTERNAL: Return the boolean attribute value, or the default value if not set. -
getAttributeBooleanDefaultFalse
INTERNAL: Return the boolean attribute value, or FALSE if not set. -
getAttributeBooleanDefaultTrue
INTERNAL: Return the boolean attribute value, or TRUE if not set. -
getAttributeClass
INTERNAL: Return the Class attribute value, or the default provided. -
getAttributeInteger
INTERNAL: Return Integer attribute value. You should call this method only if you know the object returned will be an Integer. -
getAttributes
INTERNAL: -
getAttributeString
INTERNAL: Return the attribute value, or null if not set. -
getAttributeString
INTERNAL: Return the attribute value, or defaultValue if not set. -
getName
INTERNAL: -
hasAttribute
INTERNAL: Return true if the attribute exists. -
setAttributes
INTERNAL: -
setName
INTERNAL: -
setIsMeta
public void setIsMeta(boolean isMeta) INTERNAL: -
isMeta
public boolean isMeta()INTERNAL:- Returns:
- true if this annotation is a meta-annotation
-
toString
INTERNAL:
-