|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.aegis.type.Type
org.codehaus.xfire.aegis.type.basic.ObjectType
public class ObjectType
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.
Constructor Summary | |
---|---|
ObjectType()
|
|
ObjectType(boolean serializeWhenUnknown)
|
|
ObjectType(java.util.Set dependencies)
|
|
ObjectType(java.util.Set dependencies,
boolean serializeWhenUnknown)
|
Method Summary | |
---|---|
java.util.Set |
getDependencies()
Return a set of Type dependencies. |
boolean |
isAbstract()
Whether or not this a complexType or a concrete element. |
boolean |
isComplex()
Whether or not this a complex type. |
boolean |
isNillable()
|
boolean |
isReadToDocument()
|
boolean |
isSerializedWhenUnknown()
|
boolean |
isWriteOuter()
|
java.lang.Object |
readObject(MessageReader reader,
MessageContext context)
Read in the XML fragment and create an object. |
void |
setDependencies(java.util.Set dependencies)
|
void |
setNillable(boolean nillable)
|
void |
setReadToDocument(boolean readToDocument)
|
void |
setSerializedWhenUnknown(boolean serializedWhenUnknown)
|
void |
writeObject(java.lang.Object object,
MessageWriter writer,
MessageContext context)
Writes the object to the MessageWriter. |
void |
writeSchema(Element root)
Write the type schema (if complex) to the element. |
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 |
Constructor Detail |
---|
public ObjectType()
public ObjectType(java.util.Set dependencies)
public ObjectType(boolean serializeWhenUnknown)
public ObjectType(java.util.Set dependencies, boolean serializeWhenUnknown)
Method Detail |
---|
public java.lang.Object readObject(MessageReader reader, MessageContext context) throws XFireFault
Type
readObject
in class Type
XFireFault
public void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context) throws XFireFault
Type
writeObject
in class Type
XFireFault
public boolean isReadToDocument()
public void setReadToDocument(boolean readToDocument)
public boolean isSerializedWhenUnknown()
public void setSerializedWhenUnknown(boolean serializedWhenUnknown)
public void setDependencies(java.util.Set dependencies)
public java.util.Set getDependencies()
Type
getDependencies
in interface SchemaType
getDependencies
in class Type
Type
dependenciespublic boolean isComplex()
SchemaType
isComplex
in interface SchemaType
isComplex
in class Type
public boolean isAbstract()
SchemaType
isAbstract
in interface SchemaType
isAbstract
in class Type
public boolean isNillable()
isNillable
in interface SchemaType
isNillable
in class Type
public boolean isWriteOuter()
isWriteOuter
in interface SchemaType
isWriteOuter
in class Type
public void setNillable(boolean nillable)
setNillable
in class Type
public void writeSchema(Element root)
SchemaType
writeSchema
in interface SchemaType
writeSchema
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |