public class FieldDesc extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
FieldDesc(boolean isElement)
Can't construct the base class directly, must construct either an
ElementDesc or an AttributeDesc.
|
Modifier and Type | Method and Description |
---|---|
String |
getFieldName()
Obtain the field name.
|
Class |
getJavaType() |
QName |
getXmlName()
Obtain the XML QName for this field
|
QName |
getXmlType()
Returns the XML type (e.g. xsd:string) for this field
|
boolean |
isElement()
Check if this is an element or an attribute.
|
boolean |
isIndexed() |
boolean |
isMinOccursZero()
Check if this field can be omitted.
|
void |
setFieldName(String fieldName)
Set the field name.
|
void |
setJavaType(Class javaType) |
void |
setMinOccursIs0(boolean minOccursIs0)
Deprecated.
this functionality, which is only relevant to ElementDescs,
now lives in ElementDesc and is more flexible (you can set
minOccurs and maxOccurs as you please)
|
void |
setXmlName(QName xmlName)
Set the XML QName for this field
|
void |
setXmlType(QName xmlType)
Returns the XML type (e.g. xsd:string) for this field
|
protected FieldDesc(boolean isElement)
public String getFieldName()
public void setFieldName(String fieldName)
public QName getXmlName()
public void setXmlName(QName xmlName)
public Class getJavaType()
public void setJavaType(Class javaType)
public QName getXmlType()
public void setXmlType(QName xmlType)
public boolean isElement()
public boolean isIndexed()
public boolean isMinOccursZero()
public void setMinOccursIs0(boolean minOccursIs0)
minOccursIs0
- Copyright © The Apache Software Foundation. All Rights Reserved.