|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.grails.xfire.aegis.type.Type
src.java.org.grails.xfire.aegis.type.basic.ObjectType
class ObjectType extends Type
Type 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 Type
'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 | |
---|---|
private static QName |
XSI_NIL
|
private static QName |
XSI_TYPE
|
private Set |
dependencies
|
private boolean |
readToDocument
|
private boolean |
serializedWhenUnknown
|
Constructor Summary | |
ObjectType()
|
|
ObjectType(Set dependencies)
|
|
ObjectType(boolean serializeWhenUnknown)
|
|
ObjectType(Set dependencies, boolean serializeWhenUnknown)
|
Method Summary | |
---|---|
private void
|
addXsiType(MessageWriter writer, java.lang.String prefixedType)
|
private Type
|
determineType(MessageContext context, java.lang.Class clazz)
|
private QName
|
extractQName(MessageReader reader, java.lang.String typeName)
|
Set
|
getDependencies()
|
private void
|
handleNullType(java.lang.Object object, MessageWriter writer)
|
boolean
|
isAbstract()
|
boolean
|
isComplex()
|
private boolean
|
isNil(MessageReader reader)
|
boolean
|
isNillable()
|
boolean
|
isReadToDocument()
|
boolean
|
isSerializedWhenUnknown()
|
boolean
|
isWriteOuter()
|
java.lang.Object
|
readObject(MessageReader reader, MessageContext context)
|
private java.lang.Object
|
reconstituteJavaObject(MessageReader reader)
|
void
|
setDependencies(Set dependencies)
|
void
|
setNillable(boolean nillable)
|
void
|
setReadToDocument(boolean readToDocument)
|
void
|
setSerializedWhenUnknown(boolean serializedWhenUnknown)
|
void
|
writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)
|
void
|
writeSchema(Element root)
|
Field Detail |
---|
private static final QName XSI_NIL
private static final QName XSI_TYPE
private Set dependencies
private boolean readToDocument
private boolean serializedWhenUnknown
Constructor Detail |
---|
public ObjectType()
public ObjectType(Set dependencies)
public ObjectType(boolean serializeWhenUnknown)
public ObjectType(Set dependencies, boolean serializeWhenUnknown)
Method Detail |
---|
private void addXsiType(MessageWriter writer, java.lang.String prefixedType)
private Type determineType(MessageContext context, java.lang.Class clazz)
private QName extractQName(MessageReader reader, java.lang.String typeName)
public Set getDependencies()
private void handleNullType(java.lang.Object object, MessageWriter writer)
public boolean isAbstract()
public boolean isComplex()
private boolean isNil(MessageReader reader)
public boolean isNillable()
public boolean isReadToDocument()
public boolean isSerializedWhenUnknown()
public boolean isWriteOuter()
public java.lang.Object readObject(MessageReader reader, MessageContext context)
private java.lang.Object reconstituteJavaObject(MessageReader reader)
public void setDependencies(Set dependencies)
public void setNillable(boolean nillable)
public void setReadToDocument(boolean readToDocument)
public void setSerializedWhenUnknown(boolean serializedWhenUnknown)
public void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)
public void writeSchema(Element root)
Groovy Documentation