Package org.apache.cxf.aegis.type.basic
Class XMLBeanTypeInfo
- java.lang.Object
-
- org.apache.cxf.aegis.type.basic.BeanTypeInfo
-
- org.apache.cxf.aegis.type.basic.XMLBeanTypeInfo
-
public class XMLBeanTypeInfo extends BeanTypeInfo
-
-
Constructor Summary
Constructors Constructor Description XMLBeanTypeInfo(Class<?> typeClass, List<Element> mappings, String defaultNS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxOccurs(QName name)Return maxOccurs if specified in the XML, otherwise from the default in the base class.intgetMinOccurs(QName name)Return minOccurs if specified in the XML, otherwise from the defaults in the base class.booleanisNillable(QName name)Grab Nillable by looking in PropertyInfo map if no entry found, revert to parent classprotected voidmapProperty(PropertyDescriptor pd)protected booleanregisterType(PropertyDescriptor desc)-
Methods inherited from class org.apache.cxf.aegis.type.basic.BeanTypeInfo
createMappedName, getAttributes, getDefaultNamespace, getElements, getMinOccurs, getPropertyDescriptor, getPropertyDescriptorFromMappedName, getPropertyDescriptors, getType, getTypeClass, getTypeMapping, initialize, isAttribute, isElement, isExtensibleAttributes, isExtensibleElements, isExtension, isMapped, isQualifyAttributes, isQualifyElements, isSerializable, mapAttribute, mapElement, mapType, mapTypeName, setDefaultMinOccurs, setDefaultNillable, setExtensibleAttributes, setExtensibleElements, setExtension, setQualifyAttributes, setQualifyElements, setTypeMapping
-
-
-
-
Method Detail
-
registerType
protected boolean registerType(PropertyDescriptor desc)
- Overrides:
registerTypein classBeanTypeInfo
-
mapProperty
protected void mapProperty(PropertyDescriptor pd)
- Overrides:
mapPropertyin classBeanTypeInfo
-
isNillable
public boolean isNillable(QName name)
Grab Nillable by looking in PropertyInfo map if no entry found, revert to parent class- Overrides:
isNillablein classBeanTypeInfo- Returns:
-
getMinOccurs
public int getMinOccurs(QName name)
Return minOccurs if specified in the XML, otherwise from the defaults in the base class.- Overrides:
getMinOccursin classBeanTypeInfo- Parameters:
name- Element QName- Returns:
-
getMaxOccurs
public int getMaxOccurs(QName name)
Return maxOccurs if specified in the XML, otherwise from the default in the base class.- Overrides:
getMaxOccursin classBeanTypeInfo- Parameters:
name- Element QName- Returns:
- 1
-
-