public class BeanTypeInfo extends Object
Constructor and Description |
---|
BeanTypeInfo(Class<?> typeClass,
String defaultNamespace) |
BeanTypeInfo(Class<?> typeClass,
String defaultNamespace,
boolean initialize)
Create a BeanTypeInfo class.
|
Modifier and Type | Method and Description |
---|---|
protected QName |
createMappedName(PropertyDescriptor desc,
boolean qualified)
Specifies the name of the property as it shows up in the xml schema.
|
List<QName> |
getAttributes() |
String |
getDefaultNamespace() |
List<QName> |
getElements() |
int |
getMaxOccurs(QName name)
Return the maxOccurs value.
|
long |
getMinOccurs() |
int |
getMinOccurs(QName name)
Return the minOccurs value.
|
protected PropertyDescriptor |
getPropertyDescriptor(String name) |
PropertyDescriptor |
getPropertyDescriptorFromMappedName(QName name) |
protected PropertyDescriptor[] |
getPropertyDescriptors() |
AegisType |
getType(QName name)
Get the type class for the field with the specified QName.
|
protected Class<?> |
getTypeClass() |
TypeMapping |
getTypeMapping() |
void |
initialize() |
protected boolean |
isAttribute(PropertyDescriptor desc) |
protected boolean |
isElement(PropertyDescriptor desc) |
boolean |
isExtensibleAttributes() |
boolean |
isExtensibleElements() |
boolean |
isExtension() |
boolean |
isMapped(PropertyDescriptor pd) |
boolean |
isNillable(QName name)
Nillable is only allowed if the actual property is Nullable
|
boolean |
isQualifyAttributes() |
boolean |
isQualifyElements() |
protected boolean |
isSerializable(PropertyDescriptor desc) |
void |
mapAttribute(String property,
QName mappedName) |
void |
mapElement(String property,
QName mappedName) |
protected void |
mapProperty(PropertyDescriptor pd) |
void |
mapType(QName name,
AegisType type) |
void |
mapTypeName(QName mappedName,
QName type)
Specifies the SchemaType for a particular class.
|
protected boolean |
registerType(PropertyDescriptor desc) |
void |
setDefaultMinOccurs(int m) |
void |
setDefaultNillable(boolean n) |
void |
setExtensibleAttributes(boolean extensibleAttributes) |
void |
setExtensibleElements(boolean futureProof) |
void |
setExtension(boolean extension) |
void |
setQualifyAttributes(boolean qualifyAttributes) |
void |
setQualifyElements(boolean qualifyElements) |
void |
setTypeMapping(TypeMapping typeMapping) |
public String getDefaultNamespace()
public void initialize()
public boolean isMapped(PropertyDescriptor pd)
protected void mapProperty(PropertyDescriptor pd)
protected PropertyDescriptor[] getPropertyDescriptors()
protected PropertyDescriptor getPropertyDescriptor(String name)
public AegisType getType(QName name)
protected boolean registerType(PropertyDescriptor desc)
public TypeMapping getTypeMapping()
public void setTypeMapping(TypeMapping typeMapping)
protected QName createMappedName(PropertyDescriptor desc, boolean qualified)
propertyDescriptor.getName();
desc
- public void mapTypeName(QName mappedName, QName type)
mappedName
- type
- public PropertyDescriptor getPropertyDescriptorFromMappedName(QName name)
protected boolean isAttribute(PropertyDescriptor desc)
protected boolean isElement(PropertyDescriptor desc)
protected boolean isSerializable(PropertyDescriptor desc)
protected Class<?> getTypeClass()
public boolean isNillable(QName name)
name
- public int getMinOccurs(QName name)
name
- Element QNamepublic int getMaxOccurs(QName name)
name
- Element QNamepublic long getMinOccurs()
public void setDefaultMinOccurs(int m)
public void setDefaultNillable(boolean n)
public boolean isExtensibleElements()
public void setExtensibleElements(boolean futureProof)
public boolean isExtensibleAttributes()
public void setExtensibleAttributes(boolean extensibleAttributes)
public void setExtension(boolean extension)
public boolean isExtension()
public boolean isQualifyAttributes()
public void setQualifyAttributes(boolean qualifyAttributes)
qualifyAttributes
- The qualifyAttributes to set.public boolean isQualifyElements()
public void setQualifyElements(boolean qualifyElements)
qualifyElements
- The qualifyElements to set.Apache CXF