|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaFieldImpl
public class XJCJavaFieldImpl
INTERNAL:
Purpose: JavaField
implementation wrapping XJC's JFieldVar
. Used when
bootstrapping a DynamicJAXBContext
from an XML Schema.
Responsibilities:
Field
information from the underlying JFieldVar
.
JavaField
Constructor Summary | |
---|---|
XJCJavaFieldImpl(JFieldVar javaField,
JCodeModel codeModel,
DynamicClassLoader loader,
JavaClass owner)
Construct a new instance of XJCJavaFieldImpl . |
Method Summary | |
---|---|
JavaAnnotation |
getAnnotation(JavaClass aClass)
If this JavaField is annotated with an Annotation matching aClass ,
return its JavaAnnotation representation. |
java.util.Collection<JavaAnnotation> |
getAnnotations()
Return all of the Annotations for this JavaField . |
JavaAnnotation |
getDeclaredAnnotation(JavaClass aClass)
If this JavaField is annotated with an Annotation matching aClass ,
return its JavaAnnotation representation. |
java.util.Collection<JavaAnnotation> |
getDeclaredAnnotations()
Return all of the Annotations for this JavaField . |
int |
getModifiers()
Returns the Java language modifiers for this JavaField , encoded in an integer. |
java.lang.String |
getName()
Returns the name of this JavaField . |
JavaClass |
getOwningClass()
Returns the JavaClass which contains this field. |
JavaClass |
getResolvedType()
Returns the JavaClass representing the type of this JavaField . |
boolean |
isAbstract()
Indicates if this JavaField is abstract . |
boolean |
isEnumConstant()
Indicates if this JavaField is an enum constant - i.e. its owner is an enum . |
boolean |
isFinal()
Indicates if this JavaField is final . |
boolean |
isPrivate()
Indicates if this JavaField is private . |
boolean |
isProtected()
Indicates if this JavaField is protected . |
boolean |
isPublic()
Indicates if this JavaField is public . |
boolean |
isStatic()
Indicates if this JavaField is static . |
boolean |
isSynthetic()
Not supported. |
void |
setOwningClass(JavaClass owningClass)
Set the JavaClass which contains this field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XJCJavaFieldImpl(JFieldVar javaField, JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner)
XJCJavaFieldImpl
.
javaField
- - the XJC JFieldVar
to be wrapped.codeModel
- - the XJC JCodeModel
this field belongs to.loader
- - the ClassLoader
used to bootstrap the DynamicJAXBContext
.owner
- - the JavaClass
this field belongs to.Method Detail |
---|
public JavaAnnotation getAnnotation(JavaClass aClass)
JavaField
is annotated with an Annotation
matching aClass
,
return its JavaAnnotation
representation.
getAnnotation
in interface JavaHasAnnotations
aClass
- a JavaClass
representing the Annotation
to look for.
JavaAnnotation
represented by aClass
, if one exists, otherwise return null
.public java.util.Collection<JavaAnnotation> getAnnotations()
Annotations
for this JavaField
.
getAnnotations
in interface JavaHasAnnotations
Collection
containing this JavaField's
JavaAnnotations
.public int getModifiers()
JavaField
, encoded in an integer.
getModifiers
in interface JavaField
int
representing the modifiers for this field.Modifier
public java.lang.String getName()
JavaField
.
getName
in interface JavaField
String
name of this JavaField
.public JavaClass getResolvedType()
JavaClass
representing the type of this JavaField
.
getResolvedType
in interface JavaField
JavaField
as a JavaClass
.public boolean isFinal()
JavaField
is final
.
isFinal
in interface JavaField
true
if this JavaField
is final
, otherwise false
.public boolean isAbstract()
JavaField
is abstract
.
isAbstract
in interface JavaField
true
if this JavaField
is abstract
, otherwise false
.public boolean isPrivate()
JavaField
is private
.
isPrivate
in interface JavaField
true
if this JavaField
is private
, otherwise false
.public boolean isProtected()
JavaField
is protected
.
isProtected
in interface JavaField
true
if this JavaField
is protected
, otherwise false
.public boolean isPublic()
JavaField
is public
.
isPublic
in interface JavaField
true
if this JavaField
is public
, otherwise false
.public boolean isStatic()
JavaField
is static
.
isStatic
in interface JavaField
true
if this JavaField
is static
, otherwise false
.public boolean isSynthetic()
isSynthetic
in interface JavaField
public boolean isEnumConstant()
JavaField
is an enum
constant - i.e. its owner is an enum
.
isEnumConstant
in interface JavaField
true
if this JavaField
is an enum
constant.public JavaAnnotation getDeclaredAnnotation(JavaClass aClass)
JavaField
is annotated with an Annotation
matching aClass
,
return its JavaAnnotation
representation.
getDeclaredAnnotation
in interface JavaHasAnnotations
aClass
- a JavaClass
representing the Annotation
to look for.
JavaAnnotation
represented by aClass
, if one exists, otherwise return null
.public java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
Annotations
for this JavaField
.
getDeclaredAnnotations
in interface JavaHasAnnotations
Collection
containing this JavaField's
JavaAnnotations
.public void setOwningClass(JavaClass owningClass)
JavaClass
which contains this field.
owningClass
- the JavaClass
representing the owner of this JavaField
.public JavaClass getOwningClass()
JavaClass
which contains this field.
JavaClass
representing the owner of this JavaField
.
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |