Groovy Documentation

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

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

class BeanTypeInfo

Field Summary
private List attributes

private java.lang.Class beanClass

private java.lang.String defaultNamespace

private PropertyDescriptor[] descriptors

private List elements

private boolean extensibleAttributes

extensibleAttributes means adding xs:anyAttribute to WSDL Complex Type Definition

private boolean extensibleElements

extensibleElements means adding xs:any to WSDL Complex Type Definition

private boolean initialized

private boolean isExtension

private Map mappedName2pdName

private Map mappedName2type

private Map mappedName2typeName

private int minOccurs

private boolean nillable

private TypeMapping typeMapping

 
Constructor Summary
BeanTypeInfo(java.lang.Class typeClass, java.lang.String defaultNamespace)

BeanTypeInfo(java.lang.Class typeClass, java.lang.String defaultNamespace, boolean initialize)

Create a BeanTypeInfo class.

 
Method Summary
private boolean containsPropertyName(List pds, java.lang.String name)

add base interface information

protected QName createMappedName(PropertyDescriptor desc)

Specifies the name of the property as it shows up in the xml schema.

Iterator getAttributes()

java.lang.String getDefaultNamespace()

Iterator getElements()

PropertyDescriptor[] getInterfacePropertyDescriptors(java.lang.Class clazz)

void getInterfacePropertyDescriptors(java.lang.Class clazz, List pds, Set classes)

private QName getMappedTypeName(QName name)

int getMinOccurs(QName name)

protected PropertyDescriptor getPropertyDescriptor(java.lang.String name)

PropertyDescriptor getPropertyDescriptorFromMappedName(QName name)

protected PropertyDescriptor[] getPropertyDescriptors()

private java.lang.String getPropertyNameFromMappedName(QName name)

Type getType(QName name)

Get the type class for the field with the specified QName.

protected java.lang.Class getTypeClass()

TypeMapping getTypeMapping()

void initialize()

private void initializeProperties()

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

protected boolean isSerializable(PropertyDescriptor desc)

void mapAttribute(java.lang.String property, QName mappedName)

void mapElement(java.lang.String property, QName mappedName)

protected void mapProperty(PropertyDescriptor pd)

void mapType(QName name, Type type)

void mapTypeName(QName mappedName, QName type)

Specifies the SchemaType for a particular class.

protected boolean registerType(PropertyDescriptor desc)

void setDefaultMinOccurs(int minOccurs)

void setDefaultNillable(boolean nillable)

void setExtensibleAttributes(boolean extensibleAttributes)

void setExtensibleElements(boolean futureProof)

void setExtension(boolean extension)

void setTypeMapping(TypeMapping typeMapping)

 
Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Field Detail

attributes

private List attributes


beanClass

private java.lang.Class beanClass


defaultNamespace

private java.lang.String defaultNamespace


descriptors

private PropertyDescriptor[] descriptors


elements

private List elements


extensibleAttributes

private boolean extensibleAttributes
extensibleAttributes means adding xs:anyAttribute to WSDL Complex Type Definition


extensibleElements

private boolean extensibleElements
extensibleElements means adding xs:any to WSDL Complex Type Definition


initialized

private boolean initialized


isExtension

private boolean isExtension


mappedName2pdName

private Map mappedName2pdName


mappedName2type

private Map mappedName2type


mappedName2typeName

private Map mappedName2typeName


minOccurs

private int minOccurs


nillable

private boolean nillable


typeMapping

private TypeMapping typeMapping


 
Constructor Detail

BeanTypeInfo

public BeanTypeInfo(java.lang.Class typeClass, java.lang.String defaultNamespace)


BeanTypeInfo

public BeanTypeInfo(java.lang.Class typeClass, java.lang.String defaultNamespace, boolean initialize)
Create a BeanTypeInfo class.
param:
typeClass
param:
defaultNamespace
param:
initiallize If true attempt default property/xml mappings.


 
Method Detail

containsPropertyName

private boolean containsPropertyName(List pds, java.lang.String name)
add base interface information


createMappedName

protected QName createMappedName(PropertyDescriptor desc)
Specifies the name of the property as it shows up in the xml schema. This method just returns propertyDescriptor.getName();
param:
desc
return:


getAttributes

public Iterator getAttributes()


getDefaultNamespace

public java.lang.String getDefaultNamespace()


getElements

public Iterator getElements()


getInterfacePropertyDescriptors

public PropertyDescriptor[] getInterfacePropertyDescriptors(java.lang.Class clazz)


getInterfacePropertyDescriptors

public void getInterfacePropertyDescriptors(java.lang.Class clazz, List pds, Set classes)


getMappedTypeName

private QName getMappedTypeName(QName name)


getMinOccurs

public int getMinOccurs(QName name)


getPropertyDescriptor

protected PropertyDescriptor getPropertyDescriptor(java.lang.String name)


getPropertyDescriptorFromMappedName

public PropertyDescriptor getPropertyDescriptorFromMappedName(QName name)


getPropertyDescriptors

protected PropertyDescriptor[] getPropertyDescriptors()


getPropertyNameFromMappedName

private java.lang.String getPropertyNameFromMappedName(QName name)


getType

public Type getType(QName name)
Get the type class for the field with the specified QName.


getTypeClass

protected java.lang.Class getTypeClass()


getTypeMapping

public TypeMapping getTypeMapping()


initialize

public void initialize()


initializeProperties

private void initializeProperties()


isAttribute

protected boolean isAttribute(PropertyDescriptor desc)


isElement

protected boolean isElement(PropertyDescriptor desc)


isExtensibleAttributes

public boolean isExtensibleAttributes()


isExtensibleElements

public boolean isExtensibleElements()


isExtension

public boolean isExtension()


isMapped

public boolean isMapped(PropertyDescriptor pd)


isNillable

public boolean isNillable(QName name)
Nillable is only allowed if the actual property is Nullable
param:
name
return:


isSerializable

protected boolean isSerializable(PropertyDescriptor desc)


mapAttribute

public void mapAttribute(java.lang.String property, QName mappedName)


mapElement

public void mapElement(java.lang.String property, QName mappedName)


mapProperty

protected void mapProperty(PropertyDescriptor pd)


mapType

public void mapType(QName name, Type type)


mapTypeName

public void mapTypeName(QName mappedName, QName type)
Specifies the SchemaType for a particular class.
param:
mappedName
param:
type


registerType

protected boolean registerType(PropertyDescriptor desc)


setDefaultMinOccurs

public void setDefaultMinOccurs(int minOccurs)


setDefaultNillable

public void setDefaultNillable(boolean nillable)


setExtensibleAttributes

public void setExtensibleAttributes(boolean extensibleAttributes)


setExtensibleElements

public void setExtensibleElements(boolean futureProof)


setExtension

public void setExtension(boolean extension)


setTypeMapping

public void setTypeMapping(TypeMapping typeMapping)


 

Groovy Documentation