|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.aegis.type.TypeUtil
public final class TypeUtil
Static methods/constants for Aegis.
| Field Summary | |
|---|---|
static java.util.logging.Logger |
LOG
|
| Method Summary | |
|---|---|
static Type |
getReadType(javax.xml.stream.XMLStreamReader xsr,
AegisContext context,
Type baseType)
|
static Type |
getReadTypeStandalone(javax.xml.stream.XMLStreamReader xsr,
AegisContext context,
Type baseType)
getReadType cannot just look up the xsi:type in the mapping. |
static java.lang.reflect.Type |
getSingleTypeParameter(java.lang.reflect.Type type)
Insist that a Type is a parameterized type of one parameter. |
static java.lang.reflect.Type |
getSingleTypeParameter(java.lang.reflect.Type type,
int index)
Insist that a Type is a parameterized type of one parameter. |
static java.lang.Class<?> |
getTypeClass(java.lang.reflect.Type type,
boolean throwForNonClass)
Utility function to cast a Type to a Class. |
static java.lang.Class<?> |
getTypeRelatedClass(java.lang.reflect.Type type)
If a Type is a class, return it as a class. |
static Type |
getWriteType(AegisContext globalContext,
java.lang.Object value,
Type type)
|
static Type |
getWriteTypeStandalone(AegisContext globalContext,
java.lang.Object value,
Type type)
|
static Type |
getWriteTypeStandalone(AegisContext globalContext,
java.lang.Object value,
java.lang.reflect.Type reflectType)
Allow writing of collections when the type of the collection object is known via an Type object. |
static void |
setAttributeAttributes(javax.xml.namespace.QName name,
Type type,
org.apache.ws.commons.schema.XmlSchema root)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.logging.Logger LOG
| Method Detail |
|---|
public static Type getReadType(javax.xml.stream.XMLStreamReader xsr,
AegisContext context,
Type baseType)
public static Type getReadTypeStandalone(javax.xml.stream.XMLStreamReader xsr,
AegisContext context,
Type baseType)
xsr - context -
public static Type getWriteType(AegisContext globalContext,
java.lang.Object value,
Type type)
public static Type getWriteTypeStandalone(AegisContext globalContext,
java.lang.Object value,
Type type)
public static Type getWriteTypeStandalone(AegisContext globalContext,
java.lang.Object value,
java.lang.reflect.Type reflectType)
Type object.
globalContext - the contextvalue - the object to write.reflectType - the type to use in writing the object.
public static void setAttributeAttributes(javax.xml.namespace.QName name,
Type type,
org.apache.ws.commons.schema.XmlSchema root)
public static java.lang.Class<?> getTypeClass(java.lang.reflect.Type type,
boolean throwForNonClass)
type - Reflection type.throwForNonClass - whether to throw (true) or return null (false) if the Type
is not a class.
public static java.lang.reflect.Type getSingleTypeParameter(java.lang.reflect.Type type)
type - the type
public static java.lang.reflect.Type getSingleTypeParameter(java.lang.reflect.Type type,
int index)
type - the typeindex - which parameter
public static java.lang.Class<?> getTypeRelatedClass(java.lang.reflect.Type type)
type -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||