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:
org.codehaus.xfire.wsdl.SchemaType

public class JaxbType
extends org.codehaus.xfire.aegis.type.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, javax.xml.bind.JAXBContext jaxbContext)
           
 
Method Summary
 java.lang.Class getActualTypeClass()
           
 javax.xml.bind.JAXBContext getJAXBContext(org.codehaus.xfire.MessageContext mc)
           
static java.lang.String getPackageNs(java.lang.Class clazz)
           
 javax.xml.namespace.QName getSchemaType()
           
 void initType()
           
 void initType(java.lang.Class<?> clazz)
           
 boolean isComplex()
           
 boolean isWriteOuter()
           
 java.lang.Object readObject(org.codehaus.xfire.aegis.MessageReader reader, org.codehaus.xfire.MessageContext context)
           
 void writeObject(java.lang.Object object, org.codehaus.xfire.aegis.MessageWriter writer, org.codehaus.xfire.MessageContext context)
           
 void writeSchema(org.jdom.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,
                javax.xml.bind.JAXBContext jaxbContext)
Method Detail

readObject

public java.lang.Object readObject(org.codehaus.xfire.aegis.MessageReader reader,
                                   org.codehaus.xfire.MessageContext context)
                            throws org.codehaus.xfire.fault.XFireFault
Specified by:
readObject in class org.codehaus.xfire.aegis.type.Type
Throws:
org.codehaus.xfire.fault.XFireFault

writeObject

public void writeObject(java.lang.Object object,
                        org.codehaus.xfire.aegis.MessageWriter writer,
                        org.codehaus.xfire.MessageContext context)
                 throws org.codehaus.xfire.fault.XFireFault
Specified by:
writeObject in class org.codehaus.xfire.aegis.type.Type
Throws:
org.codehaus.xfire.fault.XFireFault

getJAXBContext

public javax.xml.bind.JAXBContext getJAXBContext(org.codehaus.xfire.MessageContext mc)
                                          throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

isComplex

public boolean isComplex()
Specified by:
isComplex in interface org.codehaus.xfire.wsdl.SchemaType
Overrides:
isComplex in class org.codehaus.xfire.aegis.type.Type

isWriteOuter

public boolean isWriteOuter()
Specified by:
isWriteOuter in interface org.codehaus.xfire.wsdl.SchemaType
Overrides:
isWriteOuter in class org.codehaus.xfire.aegis.type.Type

getSchemaType

public javax.xml.namespace.QName getSchemaType()
Specified by:
getSchemaType in interface org.codehaus.xfire.wsdl.SchemaType
Overrides:
getSchemaType in class org.codehaus.xfire.aegis.type.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(org.jdom.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 org.codehaus.xfire.wsdl.SchemaType
Overrides:
writeSchema in class org.codehaus.xfire.aegis.type.Type

getActualTypeClass

public java.lang.Class getActualTypeClass()


Copyright © 2004-2011. All Rights Reserved.