Package org.apache.cxf.aegis.type.java5
Class AnnotatedTypeInfo
- java.lang.Object
-
- org.apache.cxf.aegis.type.basic.BeanTypeInfo
-
- org.apache.cxf.aegis.type.java5.AnnotatedTypeInfo
-
public class AnnotatedTypeInfo extends BeanTypeInfo
-
-
Constructor Summary
Constructors Constructor Description AnnotatedTypeInfo(TypeMapping tm, Class<?> typeClass, String ns, AnnotationReader annotationReader, TypeCreationOptions typeCreationOptions)AnnotatedTypeInfo(TypeMapping tm, Class<?> typeClass, String ns, TypeCreationOptions typeCreationOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QNamecreateMappedName(PropertyDescriptor desc, boolean qualify)Specifies the name of the property as it shows up in the xml schema.protected QNamecreateQName(PropertyDescriptor desc)intgetMinOccurs(QName name)Return the minOccurs value.protected booleanisAttribute(PropertyDescriptor desc)protected booleanisElement(PropertyDescriptor desc)booleanisNillable(QName name)Nillable is only allowed if the actual property is Nullableprotected voidmapProperty(PropertyDescriptor pd)Override from parent in order to check for IgnoreProperty annotation.protected booleanregisterType(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
-
-
-
-
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:
mapPropertyin classBeanTypeInfo
-
registerType
protected boolean registerType(PropertyDescriptor desc)
- Overrides:
registerTypein classBeanTypeInfo
-
isAttribute
protected boolean isAttribute(PropertyDescriptor desc)
- Overrides:
isAttributein classBeanTypeInfo
-
isElement
protected boolean isElement(PropertyDescriptor desc)
- Overrides:
isElementin classBeanTypeInfo
-
createMappedName
protected QName createMappedName(PropertyDescriptor desc, boolean qualify)
Description copied from class:BeanTypeInfoSpecifies the name of the property as it shows up in the xml schema. This method just returnspropertyDescriptor.getName();- Overrides:
createMappedNamein classBeanTypeInfo- Returns:
-
createQName
protected QName createQName(PropertyDescriptor desc)
-
isNillable
public boolean isNillable(QName name)
Description copied from class:BeanTypeInfoNillable is only allowed if the actual property is Nullable- Overrides:
isNillablein classBeanTypeInfo- Returns:
-
getMinOccurs
public int getMinOccurs(QName name)
Description copied from class:BeanTypeInfoReturn 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:
getMinOccursin classBeanTypeInfo- Parameters:
name- Element QName- Returns:
-
-