|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.aegis.type.Type
org.apache.cxf.aegis.type.basic.BeanType
public class BeanType
Serializes JavaBeans.
| Field Summary |
|---|
| Fields inherited from class org.apache.cxf.aegis.type.Type |
|---|
typeClass |
| Constructor Summary | |
|---|---|
BeanType()
|
|
BeanType(BeanTypeInfo info)
|
|
| Method Summary | |
|---|---|
protected java.lang.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()
|
protected BeanTypeInfo |
getBeanTypeInfoWithProperty(javax.xml.namespace.QName name)
|
java.util.Set<Type> |
getDependencies()
Return a set of Type dependencies. |
protected Type |
getElementType(javax.xml.namespace.QName name,
BeanTypeInfo beanTypeInfo,
MessageReader reader,
Context context)
|
long |
getMinOccurs()
|
Type |
getSuperType()
|
BeanTypeInfo |
getTypeInfo()
|
boolean |
hasMinOccurs()
|
boolean |
isComplex()
We need to write a complex type schema for Beans, so return true. |
java.lang.Object |
readObject(MessageReader reader,
Context context)
Read in the XML fragment and create an object. |
protected java.lang.Object |
readProperty(java.lang.Object object,
javax.xml.namespace.QName name)
|
void |
setTypeClass(java.lang.Class typeClass)
|
void |
setTypeMapping(TypeMapping typeMapping)
|
java.lang.String |
toString()
|
protected void |
writeElement(javax.xml.namespace.QName name,
java.lang.Object value,
Type type,
MessageWriter writer,
Context context)
|
void |
writeObject(java.lang.Object object,
MessageWriter writer,
Context context)
Writes the object to the MessageWriter. |
protected void |
writeProperty(javax.xml.namespace.QName name,
java.lang.Object object,
java.lang.Object property,
java.lang.Class impl,
BeanTypeInfo inf)
Write the specified property to a field. |
void |
writeSchema(org.jdom.Element root)
If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema. |
| Methods inherited from class org.apache.cxf.aegis.type.Type |
|---|
addToSchemaElement, equals, getMaxOccurs, getSchemaType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, isAbstract, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setWriteOuter, usesUtilityTypes, usesXmime |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeanType()
public BeanType(BeanTypeInfo info)
| Method Detail |
|---|
public java.lang.Object readObject(MessageReader reader,
Context context)
throws DatabindingException
Type
readObject in class TypeDatabindingException
protected Type getElementType(javax.xml.namespace.QName name,
BeanTypeInfo beanTypeInfo,
MessageReader reader,
Context context)
protected java.lang.Object createFromFault(Context context)
throws java.lang.SecurityException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
protected void writeProperty(javax.xml.namespace.QName name,
java.lang.Object object,
java.lang.Object property,
java.lang.Class impl,
BeanTypeInfo inf)
throws DatabindingException
DatabindingException
public void writeObject(java.lang.Object object,
MessageWriter writer,
Context context)
throws DatabindingException
writeObject in class TypeDatabindingException
protected void writeElement(javax.xml.namespace.QName name,
java.lang.Object value,
Type type,
MessageWriter writer,
Context context)
protected java.lang.Object readProperty(java.lang.Object object,
javax.xml.namespace.QName name)
public void writeSchema(org.jdom.Element root)
Type
writeSchema in class Typeroot - root of the XSD document.Type.writeSchema(org.jdom.Element)public void setTypeClass(java.lang.Class typeClass)
setTypeClass in class TypetypeClass - The typeClass to set.public boolean isComplex()
isComplex in class TypeType.isComplex()public java.util.Set<Type> getDependencies()
Type
getDependencies in class TypeType dependenciesprotected BeanTypeInfo getBeanTypeInfoWithProperty(javax.xml.namespace.QName name)
public Type getSuperType()
public BeanTypeInfo getTypeInfo()
public BeanTypeInfo createTypeInfo()
public java.lang.String toString()
toString in class Typepublic long getMinOccurs()
getMinOccurs in class Typepublic boolean hasMinOccurs()
hasMinOccurs in class Typepublic void setTypeMapping(TypeMapping typeMapping)
setTypeMapping in class TypetypeMapping - The typeMapping to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||