Package org.apache.cxf.aegis.type.basic
Class BeanTypeInfo
java.lang.Object
org.apache.cxf.aegis.type.basic.BeanTypeInfo
- Direct Known Subclasses:
AnnotatedTypeInfo,XMLBeanTypeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionBeanTypeInfo(Class<?> typeClass, String defaultNamespace) BeanTypeInfo(Class<?> typeClass, String defaultNamespace, boolean initialize) Create a BeanTypeInfo class. -
Method Summary
Modifier and TypeMethodDescriptionprotected QNamecreateMappedName(PropertyDescriptor desc, boolean qualified) Specifies the name of the property as it shows up in the xml schema.intgetMaxOccurs(QName name) Return the maxOccurs value.longintgetMinOccurs(QName name) Return the minOccurs value.protected PropertyDescriptorgetPropertyDescriptor(String name) protected PropertyDescriptor[]Get the type class for the field with the specified QName.protected Class<?>voidprotected booleanprotected booleanisElement(PropertyDescriptor desc) booleanbooleanbooleanbooleanbooleanisNillable(QName name) Nillable is only allowed if the actual property is Nullablebooleanbooleanprotected booleanvoidmapAttribute(String property, QName mappedName) voidmapElement(String property, QName mappedName) protected voidvoidvoidmapTypeName(QName mappedName, QName type) Specifies the SchemaType for a particular class.protected booleanvoidsetDefaultMinOccurs(int m) voidsetDefaultNillable(boolean n) voidsetExtensibleAttributes(boolean extensibleAttributes) voidsetExtensibleElements(boolean futureProof) voidsetExtension(boolean extension) voidsetQualifyAttributes(boolean qualifyAttributes) voidsetQualifyElements(boolean qualifyElements) voidsetTypeMapping(TypeMapping typeMapping)
-
Constructor Details
-
BeanTypeInfo
-
BeanTypeInfo
Create a BeanTypeInfo class.- Parameters:
typeClass-defaultNamespace-initialize- If true attempt default property/xml mappings.
-
-
Method Details
-
getDefaultNamespace
-
initialize
public void initialize() -
isMapped
-
mapProperty
-
getPropertyDescriptors
-
getPropertyDescriptor
-
getType
Get the type class for the field with the specified QName. -
registerType
-
mapType
-
getTypeMapping
-
setTypeMapping
-
createMappedName
Specifies the name of the property as it shows up in the xml schema. This method just returnspropertyDescriptor.getName();- Parameters:
desc-- Returns:
-
mapAttribute
-
mapElement
-
mapTypeName
Specifies the SchemaType for a particular class.- Parameters:
mappedName-type-
-
getPropertyDescriptorFromMappedName
-
isAttribute
-
isElement
-
isSerializable
-
getTypeClass
-
isNillable
Nillable is only allowed if the actual property is Nullable- Parameters:
name-- Returns:
-
getMinOccurs
Return the minOccurs value. When there is no XML file or annotation (the situation if we are running from the base class here), there is no source for the minOccurs parameter except the default, which is supplied from the overall Aegis options.- Parameters:
name- Element QName- Returns:
-
getMaxOccurs
Return the maxOccurs value. When there is no XML file or annotation (the situation if we are in the base class here), there is no per-element source for this item, and the value is always 1.- Parameters:
name- Element QName- Returns:
- 1
-
getMinOccurs
public long getMinOccurs() -
setDefaultMinOccurs
public void setDefaultMinOccurs(int m) -
setDefaultNillable
public void setDefaultNillable(boolean n) -
getAttributes
-
getElements
-
isExtensibleElements
public boolean isExtensibleElements() -
setExtensibleElements
public void setExtensibleElements(boolean futureProof) -
isExtensibleAttributes
public boolean isExtensibleAttributes() -
setExtensibleAttributes
public void setExtensibleAttributes(boolean extensibleAttributes) -
setExtension
public void setExtension(boolean extension) -
isExtension
public boolean isExtension() -
isQualifyAttributes
public boolean isQualifyAttributes()- Returns:
- Returns the qualifyAttributes.
-
setQualifyAttributes
public void setQualifyAttributes(boolean qualifyAttributes) - Parameters:
qualifyAttributes- The qualifyAttributes to set.
-
isQualifyElements
public boolean isQualifyElements()- Returns:
- Returns the qualifyElements.
-
setQualifyElements
public void setQualifyElements(boolean qualifyElements) - Parameters:
qualifyElements- The qualifyElements to set.
-