public class BeanType extends AegisType
| Constructor and Description |
|---|
BeanType()
Construct a type info.
|
BeanType(BeanTypeInfo info)
Construct a type info given a full BeanTypeInfo.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
alwaysAllowNillables() |
protected Object |
createFromFault(Context context)
If the class is an exception, this will try and instantiate it with information from the XFireFault (if
it exists).
|
BeanTypeInfo |
createTypeInfo()
Create type info based in the type class.
|
protected BeanTypeInfo |
getBeanTypeInfoWithProperty(QName name) |
Set<AegisType> |
getDependencies()
Return a set of AegisType dependencies.
|
protected AegisType |
getElementType(QName name,
BeanTypeInfo beanTypeInfo,
MessageReader reader,
Context context) |
long |
getMinOccurs() |
AegisType |
getSuperType()
Return the AegisType for the superclass if this type's class, if any.
|
BeanTypeInfo |
getTypeInfo()
Return the type info.
|
boolean |
hasMinOccurs() |
boolean |
isComplex()
We need to write a complex type schema for Beans, so return true.
|
Object |
readObject(MessageReader reader,
Context context)
Read in the XML fragment and create an object.
|
protected Object |
readProperty(Object object,
QName name) |
void |
setTypeClass(Type typeClass) |
void |
setTypeMapping(TypeMapping typeMapping) |
String |
toString() |
protected void |
writeElement(QName name,
Object value,
AegisType type,
MessageWriter writer,
Context context) |
void |
writeObject(Object object,
MessageWriter writer,
Context context)
Writes the object to the MessageWriter.
|
protected void |
writeProperty(QName name,
Object object,
Object property,
Class<?> impl,
BeanTypeInfo inf)
Write the specified property to a field.
|
void |
writeSchema(org.apache.ws.commons.schema.XmlSchema root)
If this type should correspond to a global, named, schema type, here is where the
type object adds it to the schema.
|
addToSchemaElement, equals, getMaxOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setWriteOuter, usesUtilityTypes, usesXmimepublic BeanType()
public BeanType(BeanTypeInfo info)
info - public Object readObject(MessageReader reader, Context context) throws DatabindingException
readObject in class AegisTypeDatabindingExceptionprotected boolean alwaysAllowNillables()
protected AegisType getElementType(QName name, BeanTypeInfo beanTypeInfo, MessageReader reader, Context context)
protected Object createFromFault(Context context) throws SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
protected void writeProperty(QName name, Object object, Object property, Class<?> impl, BeanTypeInfo inf) throws DatabindingException
DatabindingExceptionpublic void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException
writeObject in class AegisTypeDatabindingExceptionprotected void writeElement(QName name, Object value, AegisType type, MessageWriter writer, Context context)
public void setTypeClass(Type typeClass)
setTypeClass in class AegisTypetypeClass - The typeClass to set.public boolean isComplex()
isComplex in class AegisTypeAegisType.isComplex()public Set<AegisType> getDependencies()
getDependencies in class AegisTypeAegisType dependenciesprotected BeanTypeInfo getBeanTypeInfoWithProperty(QName name)
public AegisType getSuperType()
public BeanTypeInfo getTypeInfo()
public BeanTypeInfo createTypeInfo()
public long getMinOccurs()
getMinOccurs in class AegisTypepublic boolean hasMinOccurs()
hasMinOccurs in class AegisTypepublic void setTypeMapping(TypeMapping typeMapping)
setTypeMapping in class AegisTypetypeMapping - The typeMapping to set.public void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
AegisTypewriteSchema in class AegisTyperoot - root of the XSD document.Apache CXF