Apache CXF API

org.apache.cxf.aegis.type.basic
Class XMLBeanTypeInfo

java.lang.Object
  extended by org.apache.cxf.aegis.type.basic.BeanTypeInfo
      extended by org.apache.cxf.aegis.type.basic.XMLBeanTypeInfo

public class XMLBeanTypeInfo
extends BeanTypeInfo


Constructor Summary
XMLBeanTypeInfo(Class typeClass, List mappings, String defaultNS)
           
 
Method Summary
 int getMaxOccurs(QName name)
          Return maxOccurs if specified in the XML, otherwise from the default in the base class.
 int getMinOccurs(QName name)
          Return minOccurs if specified in the XML, otherwise from the defaults in the base class.
 boolean isNillable(QName name)
          Grab Nillable by looking in PropertyInfo map if no entry found, revert to parent class
protected  void mapProperty(PropertyDescriptor pd)
           
protected  boolean registerType(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBeanTypeInfo

public XMLBeanTypeInfo(Class typeClass,
                       List mappings,
                       String defaultNS)
Method Detail

registerType

protected boolean registerType(PropertyDescriptor desc)
Overrides:
registerType in class BeanTypeInfo

mapProperty

protected void mapProperty(PropertyDescriptor pd)
Overrides:
mapProperty in class BeanTypeInfo

isNillable

public boolean isNillable(QName name)
Grab Nillable by looking in PropertyInfo map if no entry found, revert to parent class

Overrides:
isNillable in class BeanTypeInfo
Returns:

getMinOccurs

public int getMinOccurs(QName name)
Return minOccurs if specified in the XML, otherwise from the defaults in the base class.

Overrides:
getMinOccurs in class BeanTypeInfo
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:
getMaxOccurs in class BeanTypeInfo
Parameters:
name - Element QName
Returns:
1

Apache CXF API

Apache CXF