org.codehaus.xfire.aegis.type.basic
Class BeanTypeInfo
java.lang.Object
org.codehaus.xfire.aegis.type.basic.BeanTypeInfo
- Direct Known Subclasses:
- XMLBeanTypeInfo
public class BeanTypeInfo
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanTypeInfo
public BeanTypeInfo(Class typeClass,
String defaultNamespace)
BeanTypeInfo
public BeanTypeInfo(Class typeClass,
String defaultNamespace,
boolean initialize)
- Create a BeanTypeInfo class.
- Parameters:
typeClass
- defaultNamespace
- initiallize
- If true attempt default property/xml mappings.
getDefaultNamespace
public String getDefaultNamespace()
initialize
public void initialize()
isMapped
public boolean isMapped(PropertyDescriptor pd)
mapProperty
protected void mapProperty(PropertyDescriptor pd)
getPropertyDescriptors
protected PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptor
protected PropertyDescriptor getPropertyDescriptor(String name)
getType
public Type getType(QName name)
- Get the type class for the field with the specified QName.
registerType
protected boolean registerType(PropertyDescriptor desc)
mapType
public void mapType(QName name,
Type type)
getTypeMapping
public TypeMapping getTypeMapping()
setTypeMapping
public void setTypeMapping(TypeMapping typeMapping)
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();
- Parameters:
desc
-
- Returns:
mapAttribute
public void mapAttribute(String property,
QName mappedName)
mapElement
public void mapElement(String property,
QName mappedName)
mapTypeName
public void mapTypeName(QName mappedName,
QName type)
- Specifies the SchemaType for a particular class.
- Parameters:
mappedName
- type
-
getInterfacePropertyDescriptors
public PropertyDescriptor[] getInterfacePropertyDescriptors(Class clazz)
getInterfacePropertyDescriptors
public void getInterfacePropertyDescriptors(Class clazz,
List pds,
Set classes)
getPropertyDescriptorFromMappedName
public PropertyDescriptor getPropertyDescriptorFromMappedName(QName name)
isAttribute
protected boolean isAttribute(PropertyDescriptor desc)
isElement
protected boolean isElement(PropertyDescriptor desc)
isSerializable
protected boolean isSerializable(PropertyDescriptor desc)
getTypeClass
protected Class getTypeClass()
isNillable
public boolean isNillable(QName name)
- Nillable is only allowed if the actual property is Nullable
- Parameters:
name
-
- Returns:
getMinOccurs
public int getMinOccurs(QName name)
setDefaultMinOccurs
public void setDefaultMinOccurs(int minOccurs)
setDefaultNillable
public void setDefaultNillable(boolean nillable)
getAttributes
public Iterator getAttributes()
getElements
public Iterator 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()
Copyright © 2004-2013. All Rights Reserved.