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

java.lang.Object
  extended by org.apache.cxf.aegis.type.basic.BeanTypeInfo
Direct Known Subclasses:
AnnotatedTypeInfo, XMLBeanTypeInfo

public class BeanTypeInfo
extends java.lang.Object


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
protected  javax.xml.namespace.QName createMappedName(java.beans.PropertyDescriptor desc)
          Specifies the name of the property as it shows up in the xml schema.
 java.util.Iterator<javax.xml.namespace.QName> getAttributes()
           
 java.lang.String getDefaultNamespace()
           
 java.util.Iterator<javax.xml.namespace.QName> getElements()
           
 int getMinOccurs(javax.xml.namespace.QName name)
           
protected  java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String name)
           
 java.beans.PropertyDescriptor getPropertyDescriptorFromMappedName(javax.xml.namespace.QName name)
           
protected  java.beans.PropertyDescriptor[] getPropertyDescriptors()
           
 Type getType(javax.xml.namespace.QName name)
          Get the type class for the field with the specified QName.
protected  java.lang.Class<?> getTypeClass()
           
 TypeMapping getTypeMapping()
           
 void initialize()
           
protected  boolean isAttribute(java.beans.PropertyDescriptor desc)
           
protected  boolean isElement(java.beans.PropertyDescriptor desc)
           
 boolean isExtensibleAttributes()
           
 boolean isExtensibleElements()
           
 boolean isExtension()
           
 boolean isMapped(java.beans.PropertyDescriptor pd)
           
 boolean isNillable(javax.xml.namespace.QName name)
          Nillable is only allowed if the actual property is Nullable
protected  boolean isSerializable(java.beans.PropertyDescriptor desc)
           
 void mapAttribute(java.lang.String property, javax.xml.namespace.QName mappedName)
           
 void mapElement(java.lang.String property, javax.xml.namespace.QName mappedName)
           
protected  void mapProperty(java.beans.PropertyDescriptor pd)
           
 void mapType(javax.xml.namespace.QName name, Type type)
           
 void mapTypeName(javax.xml.namespace.QName mappedName, javax.xml.namespace.QName type)
          Specifies the SchemaType for a particular class.
protected  boolean registerType(java.beans.PropertyDescriptor desc)
           
 void setDefaultMinOccurs(int m)
           
 void setDefaultNillable(boolean n)
           
 void setExtensibleAttributes(boolean extensibleAttributes)
           
 void setExtensibleElements(boolean futureProof)
           
 void setExtension(boolean extension)
           
 void setTypeMapping(TypeMapping typeMapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Parameters:
typeClass -
defaultNamespace -
initiallize - If true attempt default property/xml mappings.
Method Detail

getDefaultNamespace

public java.lang.String getDefaultNamespace()

initialize

public void initialize()

isMapped

public boolean isMapped(java.beans.PropertyDescriptor pd)

mapProperty

protected void mapProperty(java.beans.PropertyDescriptor pd)

getPropertyDescriptors

protected java.beans.PropertyDescriptor[] getPropertyDescriptors()

getPropertyDescriptor

protected java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String name)

getType

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


registerType

protected boolean registerType(java.beans.PropertyDescriptor desc)

mapType

public void mapType(javax.xml.namespace.QName name,
                    Type type)

getTypeMapping

public TypeMapping getTypeMapping()

setTypeMapping

public void setTypeMapping(TypeMapping typeMapping)

createMappedName

protected javax.xml.namespace.QName createMappedName(java.beans.PropertyDescriptor desc)
Specifies the name of the property as it shows up in the xml schema. This method just returns propertyDescriptor.getName();

Parameters:
desc -
Returns:

mapAttribute

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

mapElement

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

mapTypeName

public void mapTypeName(javax.xml.namespace.QName mappedName,
                        javax.xml.namespace.QName type)
Specifies the SchemaType for a particular class.

Parameters:
mappedName -
type -

getPropertyDescriptorFromMappedName

public java.beans.PropertyDescriptor getPropertyDescriptorFromMappedName(javax.xml.namespace.QName name)

isAttribute

protected boolean isAttribute(java.beans.PropertyDescriptor desc)

isElement

protected boolean isElement(java.beans.PropertyDescriptor desc)

isSerializable

protected boolean isSerializable(java.beans.PropertyDescriptor desc)

getTypeClass

protected java.lang.Class<?> getTypeClass()

isNillable

public boolean isNillable(javax.xml.namespace.QName name)
Nillable is only allowed if the actual property is Nullable

Parameters:
name -
Returns:

getMinOccurs

public int getMinOccurs(javax.xml.namespace.QName name)

setDefaultMinOccurs

public void setDefaultMinOccurs(int m)

setDefaultNillable

public void setDefaultNillable(boolean n)

getAttributes

public java.util.Iterator<javax.xml.namespace.QName> getAttributes()

getElements

public java.util.Iterator<javax.xml.namespace.QName> 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()


Apache CXF