Package org.apache.cxf.aegis.type.basic
Class ObjectType
java.lang.Object
org.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.basic.ObjectType
AegisType for runtime inspection of types. Looks as the class to be written, and
looks to see if there is a type for that class. If there is, it writes out
the value and inserts a xsi:type attribute to signal what the type
of the value is. Can specify an optional set of dependent
AegisType's
in the constructor, in the case that the type is a custom type that may not
have its schema in the WSDL. Can specify whether or not unknown objects
should be serialized as a byte stream.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionObjectType(Set<AegisType> dependencies) ObjectType(Set<AegisType> dependencies, boolean serializeWhenUnknown) -
Method Summary
Modifier and TypeMethodDescriptiondetermineType(Context context, Class<?> clazz) Return a set of AegisType dependencies.booleanbooleanreadObject(MessageReader reader, Context context) Read in the XML fragment and create an object.voidsetDependencies(Set<AegisType> dependencies) voidsetReadToDocument(boolean readToDocument) voidwriteObject(Object object, MessageWriter writer, Context context) Writes the object to the MessageWriter.Methods inherited from class org.apache.cxf.aegis.type.AegisType
addToSchemaElement, equals, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmime, writeSchema
-
Constructor Details
-
ObjectType
public ObjectType() -
ObjectType
-
ObjectType
-
-
Method Details
-
readObject
Description copied from class:AegisTypeRead in the XML fragment and create an object.- Specified by:
readObjectin classAegisType- Returns:
- Throws:
DatabindingException
-
writeObject
public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException Description copied from class:AegisTypeWrites the object to the MessageWriter.- Specified by:
writeObjectin classAegisType- Throws:
DatabindingException
-
determineType
-
isReadToDocument
public boolean isReadToDocument() -
setReadToDocument
public void setReadToDocument(boolean readToDocument) -
setDependencies
-
getDependencies
Description copied from class:AegisTypeReturn a set of AegisType dependencies. Returns null if this type has no dependencies.- Overrides:
getDependenciesin classAegisType- Returns:
- Set of
AegisTypedependencies
-
isComplex
public boolean isComplex()
-