Apache CXF API

org.apache.cxf.aegis.type.java5
Class AnnotatedTypeInfo

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

public class AnnotatedTypeInfo
extends BeanTypeInfo


Constructor Summary
AnnotatedTypeInfo(TypeMapping tm, Class<?> typeClass, String ns, AnnotationReader annotationReader, TypeCreationOptions typeCreationOptions)
           
AnnotatedTypeInfo(TypeMapping tm, Class<?> typeClass, String ns, TypeCreationOptions typeCreationOptions)
           
 
Method Summary
protected  QName createMappedName(PropertyDescriptor desc, boolean qualify)
          Specifies the name of the property as it shows up in the xml schema.
protected  QName createQName(PropertyDescriptor desc)
           
 int getMinOccurs(QName name)
          Return the minOccurs value.
protected  boolean isAttribute(PropertyDescriptor desc)
           
protected  boolean isElement(PropertyDescriptor desc)
           
 boolean isNillable(QName name)
          Nillable is only allowed if the actual property is Nullable
protected  void mapProperty(PropertyDescriptor pd)
          Override from parent in order to check for IgnoreProperty annotation.
protected  boolean registerType(PropertyDescriptor desc)
           
 
Methods inherited from class org.apache.cxf.aegis.type.basic.BeanTypeInfo
getAttributes, getDefaultNamespace, getElements, getMaxOccurs, getMinOccurs, getPropertyDescriptor, getPropertyDescriptorFromMappedName, getPropertyDescriptors, getType, getTypeClass, getTypeMapping, initialize, 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

AnnotatedTypeInfo

public AnnotatedTypeInfo(TypeMapping tm,
                         Class<?> typeClass,
                         String ns,
                         TypeCreationOptions typeCreationOptions)

AnnotatedTypeInfo

public AnnotatedTypeInfo(TypeMapping tm,
                         Class<?> typeClass,
                         String ns,
                         AnnotationReader annotationReader,
                         TypeCreationOptions typeCreationOptions)
Method Detail

mapProperty

protected void mapProperty(PropertyDescriptor pd)
Override from parent in order to check for IgnoreProperty annotation.

Overrides:
mapProperty in class BeanTypeInfo

registerType

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

isAttribute

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

isElement

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

createMappedName

protected QName createMappedName(PropertyDescriptor desc,
                                 boolean qualify)
Description copied from class: BeanTypeInfo
Specifies the name of the property as it shows up in the xml schema. This method just returns propertyDescriptor.getName();

Overrides:
createMappedName in class BeanTypeInfo
Returns:

createQName

protected QName createQName(PropertyDescriptor desc)

isNillable

public boolean isNillable(QName name)
Description copied from class: BeanTypeInfo
Nillable is only allowed if the actual property is Nullable

Overrides:
isNillable in class BeanTypeInfo
Returns:

getMinOccurs

public int getMinOccurs(QName name)
Description copied from class: BeanTypeInfo
Return the minOccurs value. When there is no XML file or annotation (the situation if we are running from the base class here), there is no source for the minOccurs parameter except the default, which is supplied from the overall Aegis options.

Overrides:
getMinOccurs in class BeanTypeInfo
Parameters:
name - Element QName
Returns:

Apache CXF API

Apache CXF