Groovy Documentation

src.java.org.grails.xfire.aegis.type.basic
Class ObjectType

java.lang.Object
  org.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.

author:
peter royal


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

XSI_NIL

private static final QName XSI_NIL


XSI_TYPE

private static final QName XSI_TYPE


dependencies

private Set dependencies


readToDocument

private boolean readToDocument


serializedWhenUnknown

private boolean serializedWhenUnknown


 
Constructor Detail

ObjectType

public ObjectType()


ObjectType

public ObjectType(Set dependencies)


ObjectType

public ObjectType(boolean serializeWhenUnknown)


ObjectType

public ObjectType(Set dependencies, boolean serializeWhenUnknown)


 
Method Detail

addXsiType

private void addXsiType(MessageWriter writer, java.lang.String prefixedType)


determineType

private Type determineType(MessageContext context, java.lang.Class clazz)


extractQName

private QName extractQName(MessageReader reader, java.lang.String typeName)


getDependencies

public Set getDependencies()


handleNullType

private void handleNullType(java.lang.Object object, MessageWriter writer)


isAbstract

public boolean isAbstract()


isComplex

public boolean isComplex()


isNil

private boolean isNil(MessageReader reader)


isNillable

public boolean isNillable()


isReadToDocument

public boolean isReadToDocument()


isSerializedWhenUnknown

public boolean isSerializedWhenUnknown()


isWriteOuter

public boolean isWriteOuter()


readObject

public java.lang.Object readObject(MessageReader reader, MessageContext context)


reconstituteJavaObject

private java.lang.Object reconstituteJavaObject(MessageReader reader)


setDependencies

public void setDependencies(Set dependencies)


setNillable

public void setNillable(boolean nillable)


setReadToDocument

public void setReadToDocument(boolean readToDocument)


setSerializedWhenUnknown

public void setSerializedWhenUnknown(boolean serializedWhenUnknown)


writeObject

public void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)


writeSchema

public void writeSchema(Element root)


 

Groovy Documentation