org.codehaus.xfire.jaxb2
Class JaxbType
java.lang.Object
org.codehaus.xfire.aegis.type.Type
org.codehaus.xfire.jaxb2.JaxbType
- All Implemented Interfaces:
- SchemaType
public class JaxbType
- extends Type
Constructor Summary |
JaxbType(java.lang.Class clazz)
|
JaxbType(java.lang.Class clazz,
JAXBContext jaxbContext)
|
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 |
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
JaxbType
public JaxbType(java.lang.Class clazz)
JaxbType
public JaxbType(java.lang.Class clazz,
JAXBContext jaxbContext)
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.