|
EclipseLink 1.2.0, build 'v20091016-r5565' 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.compiler.Property
public class Property
INTERNAL:
Purpose:To store information about a property on a class during JAXB 2.0 Generation
Responsibilities:
This class is used to store information about a property on a JAXB 2.0 annotated class. It is created by the AnnotationsProcessor during pre-processing and stored on a TypeInfo object
TypeInfo
,
AnnotationsProcessor
Constructor Summary | |
---|---|
Property()
|
|
Property(Helper helper)
|
Method Summary | |
---|---|
JavaClass |
getActualType()
Return the generic type if it was set (collection or array item type) otherwise return the type of this property |
java.lang.String |
getDefaultValue()
|
JavaHasAnnotations |
getElement()
|
JavaClass |
getGenericType()
|
java.lang.String |
getGetMethodName()
|
java.lang.String |
getMimeType()
|
JavaClass |
getOriginalType()
Get the original type of the property. |
java.lang.String |
getPropertyName()
|
javax.xml.namespace.QName |
getSchemaName()
|
javax.xml.namespace.QName |
getSchemaType()
|
java.lang.String |
getSetMethodName()
|
JavaClass |
getType()
|
XmlJavaTypeAdapter |
getXmlJavaTypeAdapter()
Return the xmlJavaTypeAdapter set on this Property. |
boolean |
isAny()
|
boolean |
isAttribute()
|
boolean |
isChoice()
|
boolean |
isCollectionType(JavaClass type)
|
boolean |
isMethodProperty()
|
boolean |
isMixedContent()
|
boolean |
isMtomAttachment()
|
boolean |
isNillable()
|
boolean |
isReference()
|
boolean |
isRequired()
|
boolean |
isSetDefaultValue()
|
boolean |
isSetXmlJavaTypeAdapter()
Indicates if an XmlJavaTypeAdapter has been set, i.e. the xmlJavaTypeAdapter property is non-null. |
boolean |
isSwaAttachmentRef()
|
boolean |
isTransient()
|
boolean |
isXmlElementType()
|
void |
setAdapterClass(JavaClass adapterCls)
|
void |
setDefaultValue(java.lang.String defaultValue)
|
void |
setElement(JavaHasAnnotations element)
|
void |
setGenericType(JavaClass genericType)
|
void |
setGetMethodName(java.lang.String methodName)
|
void |
setHasXmlElementType(boolean hasXmlElementType)
|
void |
setHelper(Helper helper)
|
void |
setIsAttribute(boolean attribute)
|
void |
setIsMtomAttachment(boolean b)
|
void |
setIsRequired(boolean b)
|
void |
setIsSwaAttachmentRef(boolean b)
|
void |
setMethodProperty(boolean isMethod)
|
void |
setMimeType(java.lang.String mType)
|
void |
setMixedContent(boolean b)
|
void |
setNillable(boolean isNillable)
|
void |
setOriginalType(JavaClass type)
Set the original type of the property. |
void |
setPropertyName(java.lang.String propertyName)
|
void |
setSchemaName(javax.xml.namespace.QName schemaName)
|
void |
setSchemaType(javax.xml.namespace.QName type)
|
void |
setSetMethodName(java.lang.String methodName)
|
void |
setTransient(boolean isTransient)
|
void |
setType(JavaClass cls)
|
void |
setXmlJavaTypeAdapter(XmlJavaTypeAdapter xmlJavaTypeAdapter)
Set an XmlJavaTypeAdapter on this Property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Property()
public Property(Helper helper)
Method Detail |
---|
public void setHelper(Helper helper)
public void setAdapterClass(JavaClass adapterCls)
public JavaHasAnnotations getElement()
public void setElement(JavaHasAnnotations element)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
public javax.xml.namespace.QName getSchemaName()
public void setSchemaName(javax.xml.namespace.QName schemaName)
public boolean isMethodProperty()
public void setMethodProperty(boolean isMethod)
public void setType(JavaClass cls)
public JavaClass getType()
public JavaClass getGenericType()
public void setGenericType(JavaClass genericType)
public javax.xml.namespace.QName getSchemaType()
public void setSchemaType(javax.xml.namespace.QName type)
public boolean isSwaAttachmentRef()
public void setIsSwaAttachmentRef(boolean b)
public boolean isMtomAttachment()
public void setIsMtomAttachment(boolean b)
public boolean isRequired()
public void setIsRequired(boolean b)
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mType)
public boolean isAttribute()
public void setIsAttribute(boolean attribute)
public java.lang.String getGetMethodName()
public void setGetMethodName(java.lang.String methodName)
public java.lang.String getSetMethodName()
public void setSetMethodName(java.lang.String methodName)
public boolean isChoice()
public boolean isAny()
public boolean isReference()
public boolean isNillable()
public void setNillable(boolean isNillable)
public boolean isTransient()
public void setTransient(boolean isTransient)
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- the defaultValue to setpublic java.lang.String getDefaultValue()
public boolean isSetDefaultValue()
public boolean isMixedContent()
public void setMixedContent(boolean b)
public void setHasXmlElementType(boolean hasXmlElementType)
public boolean isXmlElementType()
public boolean isCollectionType(JavaClass type)
public JavaClass getActualType()
public JavaClass getOriginalType()
public void setOriginalType(JavaClass type)
public boolean isSetXmlJavaTypeAdapter()
XmlJavaTypeAdapter
public XmlJavaTypeAdapter getXmlJavaTypeAdapter()
XmlJavaTypeAdapter
public void setXmlJavaTypeAdapter(XmlJavaTypeAdapter xmlJavaTypeAdapter)
xmlJavaTypeAdapter
- XmlJavaTypeAdapter
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |