org.codehaus.xfire.aegis.type.basic
Class ObjectType
java.lang.Object
org.codehaus.xfire.aegis.type.Type
org.codehaus.xfire.aegis.type.basic.ObjectType
- All Implemented Interfaces:
- org.codehaus.xfire.wsdl.SchemaType
public 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
Methods inherited from class org.codehaus.xfire.aegis.type.Type |
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, setAbstract, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ObjectType
public ObjectType()
ObjectType
public ObjectType(java.util.Set dependencies)
ObjectType
public ObjectType(boolean serializeWhenUnknown)
ObjectType
public ObjectType(java.util.Set dependencies,
boolean serializeWhenUnknown)
readObject
public java.lang.Object readObject(MessageReader reader,
org.codehaus.xfire.MessageContext context)
throws org.codehaus.xfire.fault.XFireFault
- Description copied from class:
Type
- Read in the XML fragment and create an object.
- Specified by:
readObject
in class Type
- Returns:
-
- Throws:
org.codehaus.xfire.fault.XFireFault
writeObject
public void writeObject(java.lang.Object object,
MessageWriter writer,
org.codehaus.xfire.MessageContext context)
throws org.codehaus.xfire.fault.XFireFault
- Description copied from class:
Type
- Writes the object to the MessageWriter.
- Specified by:
writeObject
in class Type
- Throws:
org.codehaus.xfire.fault.XFireFault
isReadToDocument
public boolean isReadToDocument()
setReadToDocument
public void setReadToDocument(boolean readToDocument)
isSerializedWhenUnknown
public boolean isSerializedWhenUnknown()
setSerializedWhenUnknown
public void setSerializedWhenUnknown(boolean serializedWhenUnknown)
setDependencies
public void setDependencies(java.util.Set dependencies)
getDependencies
public java.util.Set getDependencies()
- Description copied from class:
Type
- Return a set of Type dependencies. Returns null if this type has no
dependencies.
- Specified by:
getDependencies
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
getDependencies
in class Type
- Returns:
- Set of
Type
dependencies
isComplex
public boolean isComplex()
- Specified by:
isComplex
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
isComplex
in class Type
- Returns:
- True if a complex type schema must be written.
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
isAbstract
in class Type
isNillable
public boolean isNillable()
- Specified by:
isNillable
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
isNillable
in class Type
isWriteOuter
public boolean isWriteOuter()
- Specified by:
isWriteOuter
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
isWriteOuter
in class Type
setNillable
public void setNillable(boolean nillable)
- Overrides:
setNillable
in class Type
writeSchema
public void writeSchema(org.jdom.Element root)
- Specified by:
writeSchema
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
writeSchema
in class Type
Copyright © 2004-2009. All Rights Reserved.