Groovy Documentation

src.java.org.grails.xfire.aegis.type.basic
Class XMLBeanTypeInfo

java.lang.Object
  src.java.org.grails.xfire.aegis.type.basic.BeanTypeInfo
      src.java.org.grails.xfire.aegis.type.basic.XMLBeanTypeInfo

class XMLBeanTypeInfo
extends BeanTypeInfo

Field Summary
private static Log logger

private List mappings

private Map name2PropertyInfo

Map used for storing meta data about each property

 
Constructor Summary
XMLBeanTypeInfo(java.lang.Class typeClass, List mappings, java.lang.String defaultNS)

 
Method Summary
private BeanTypePropertyInfo ensurePropertyInfo(QName name)

Grab the Property Info for the given property but if not found create one and add it to the map

int getMinOccurs(QName name)

Grab Min Occurs by looking in PropertyInfo map if no entry found, revert to parent class

private Element getPropertyElement(java.lang.String name2)

private BeanTypePropertyInfo getPropertyInfo(QName name)

Grab the Property Info for the given property

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 BeanTypeInfo
createMappedName, getAttributes, getDefaultNamespace, getElements, getInterfacePropertyDescriptors, getInterfacePropertyDescriptors, getMinOccurs, getPropertyDescriptor, getPropertyDescriptorFromMappedName, getPropertyDescriptors, getType, getTypeClass, getTypeMapping, initialize, isAttribute, isElement, isExtensibleAttributes, isExtensibleElements, isExtension, isMapped, isNillable, isSerializable, mapAttribute, mapElement, mapProperty, mapType, mapTypeName, registerType, setDefaultMinOccurs, setDefaultNillable, setExtensibleAttributes, setExtensibleElements, setExtension, setTypeMapping
 

Field Detail

logger

private static final Log logger


mappings

private List mappings


name2PropertyInfo

private Map name2PropertyInfo
Map used for storing meta data about each property


 
Constructor Detail

XMLBeanTypeInfo

public XMLBeanTypeInfo(java.lang.Class typeClass, List mappings, java.lang.String defaultNS)


 
Method Detail

ensurePropertyInfo

private BeanTypePropertyInfo ensurePropertyInfo(QName name)
Grab the Property Info for the given property but if not found create one and add it to the map
param:
name
return:
the BeanTypePropertyInfo for the property


getMinOccurs

public int getMinOccurs(QName name)
Grab Min Occurs by looking in PropertyInfo map if no entry found, revert to parent class


getPropertyElement

private Element getPropertyElement(java.lang.String name2)


getPropertyInfo

private BeanTypePropertyInfo getPropertyInfo(QName name)
Grab the Property Info for the given property
param:
name
return:
the BeanTypePropertyInfo for the property or NULL if none found


isNillable

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


mapProperty

protected void mapProperty(PropertyDescriptor pd)


registerType

protected boolean registerType(PropertyDescriptor desc)


 

Groovy Documentation