public abstract class AbstractWrapperBeanGenerator<T,C,M,A extends Comparable> extends Object
It uses JAXB's AnnotationReader
, Navigator
so that
tools can use this with annotation processing, and the runtime can use this with
reflection.
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractWrapperBeanGenerator.BeanMemberFactory<T,A> |
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrapperBeanGenerator(com.sun.xml.bind.v2.model.annotation.AnnotationReader<T,C,?,M> annReader,
com.sun.xml.bind.v2.model.nav.Navigator<T,C,?,M> nav,
AbstractWrapperBeanGenerator.BeanMemberFactory<T,A> factory) |
Modifier and Type | Method and Description |
---|---|
Collection<A> |
collectExceptionBeanMembers(C exception)
Computes and sorts exception bean members for a given exception as per
the 3.7 section of the spec.
|
Collection<A> |
collectExceptionBeanMembers(C exception,
boolean decapitalize)
Computes and sorts exception bean members for a given exception as per
the 3.7 section of the spec.
|
List<A> |
collectRequestBeanMembers(M method)
Computes request bean members for a method.
|
List<A> |
collectResponseBeanMembers(M method)
Computes response bean members for a method.
|
protected abstract T |
getHolderValueType(T type)
Returns Holder's value type.
|
protected abstract T |
getSafeType(T type) |
protected abstract boolean |
isVoidType(T type) |
protected abstract T getHolderValueType(T type)
protected abstract boolean isVoidType(T type)
public List<A> collectRequestBeanMembers(M method)
method
- SEI method for which request bean members are computedpublic List<A> collectResponseBeanMembers(M method)
method
- SEI method for which response bean members are computedpublic Collection<A> collectExceptionBeanMembers(C exception)
But if the exception has @XmlType its values are honored. Only the propOrder properties are considered. The returned collection is sorted as per the given propOrder.
exception
- public Collection<A> collectExceptionBeanMembers(C exception, boolean decapitalize)
But if the exception has @XmlType its values are honored. Only the propOrder properties are considered. The returned collection is sorted as per the given propOrder.
exception
- decapitalize
- if true, all the property names are decapitalizedCopyright © 2015 Oracle Corporation. All rights reserved.