org.codehaus.xfire.jaxb2
Class JaxbType

java.lang.Object
  extended by org.codehaus.xfire.aegis.type.Type
      extended by org.codehaus.xfire.jaxb2.JaxbType
All Implemented Interfaces:
SchemaType

public class JaxbType
extends Type


Field Summary
static java.lang.String ENABLE_REQUEST_VALIDATION
           
static java.lang.String ENABLE_RESPONSE_VALIDATION
           
static java.lang.String ENABLE_VALIDATION
           
static java.lang.String GENERATED_VALIDATION_SCHEMA
           
static java.lang.String SEARCH_PACKAGES
           
static java.lang.String VALIDATION_SCHEMA
           
 
Constructor Summary
JaxbType(java.lang.Class clazz)
           
JaxbType(java.lang.Class clazz, JAXBContext jaxbContext)
           
 
Method Summary
 java.lang.Class getActualTypeClass()
           
 JAXBContext getJAXBContext(MessageContext mc)
           
static java.lang.String getPackageNs(java.lang.Class clazz)
           
 javax.xml.namespace.QName getSchemaType()
          The schema type that this SchemaType represents.
 void initType()
           
 void initType(java.lang.Class<?> clazz)
           
 boolean isComplex()
          Whether or not this a complex type.
 boolean isWriteOuter()
           
 java.lang.Object readObject(MessageReader reader, MessageContext context)
          Read in the XML fragment and create an object.
 void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)
          Writes the object to the MessageWriter.
 void writeSchema(Element root)
          JAXB doesn't retain all the schema information at runtime, so schemas must be added manually.
 
Methods inherited from class org.codehaus.xfire.aegis.type.Type
equals, getDependencies, getTypeClass, getTypeMapping, hashCode, isAbstract, isNillable, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SEARCH_PACKAGES

public static final java.lang.String SEARCH_PACKAGES
See Also:
Constant Field Values

ENABLE_VALIDATION

public static final java.lang.String ENABLE_VALIDATION
See Also:
Constant Field Values

ENABLE_RESPONSE_VALIDATION

public static final java.lang.String ENABLE_RESPONSE_VALIDATION
See Also:
Constant Field Values

ENABLE_REQUEST_VALIDATION

public static final java.lang.String ENABLE_REQUEST_VALIDATION
See Also:
Constant Field Values

VALIDATION_SCHEMA

public static final java.lang.String VALIDATION_SCHEMA
See Also:
Constant Field Values

GENERATED_VALIDATION_SCHEMA

public static final java.lang.String GENERATED_VALIDATION_SCHEMA
See Also:
Constant Field Values
Constructor Detail

JaxbType

public JaxbType(java.lang.Class clazz)

JaxbType

public JaxbType(java.lang.Class clazz,
                JAXBContext jaxbContext)
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   MessageContext context)
                            throws XFireFault
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:
Throws:
XFireFault

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        MessageContext context)
                 throws XFireFault
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
XFireFault

getJAXBContext

public JAXBContext getJAXBContext(MessageContext mc)
                           throws JAXBException
Throws:
JAXBException

isComplex

public boolean isComplex()
Description copied from interface: SchemaType
Whether or not this a complex type. If true then the schema for this type is written out.

Specified by:
isComplex in interface SchemaType
Overrides:
isComplex in class Type
Returns:
True if a complex type schema must be written.

isWriteOuter

public boolean isWriteOuter()
Specified by:
isWriteOuter in interface SchemaType
Overrides:
isWriteOuter in class Type

getSchemaType

public javax.xml.namespace.QName getSchemaType()
Description copied from interface: SchemaType
The schema type that this SchemaType represents.

Specified by:
getSchemaType in interface SchemaType
Overrides:
getSchemaType in class Type
Returns:
Get the schema type.

initType

public void initType()

initType

public void initType(java.lang.Class<?> clazz)

getPackageNs

public static java.lang.String getPackageNs(java.lang.Class clazz)

writeSchema

public void writeSchema(Element root)
JAXB doesn't retain all the schema information at runtime, so schemas must be added manually. So, this method does absolutely nothing.

Specified by:
writeSchema in interface SchemaType
Overrides:
writeSchema in class Type

getActualTypeClass

public java.lang.Class getActualTypeClass()


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.