public abstract class AbstractWrapperHelper extends Object implements WrapperHelper
Modifier and Type | Field and Description |
---|---|
protected Field[] |
fields |
protected Method[] |
getMethods |
static Class<?>[] |
NO_CLASSES |
static Object[] |
NO_PARAMS |
protected Method[] |
setMethods |
protected boolean |
validate |
protected Class<?> |
wrapperType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrapperHelper(Class<?> wt,
Method[] sets,
Method[] gets,
Field[] f) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
createWrapperObject(Class<?> typeClass) |
Object |
createWrapperObject(List<?> lst) |
protected Object |
getPartObject(int index,
Object object) |
String |
getSignature() |
boolean |
getValidate() |
protected Object |
getValue(Method method,
Object in) |
protected abstract Object |
getWrapperObject(Object object) |
List<Object> |
getWrapperParts(Object o) |
void |
setValidate(boolean v)
WrapperClassOutInterceptor may call this if the wrapper class needs to be validated.
|
public static final Class<?>[] NO_CLASSES
public static final Object[] NO_PARAMS
protected final Class<?> wrapperType
protected final Method[] setMethods
protected final Method[] getMethods
protected final Field[] fields
protected boolean validate
public void setValidate(boolean v)
public boolean getValidate()
public String getSignature()
getSignature
in interface WrapperHelper
protected abstract Object createWrapperObject(Class<?> typeClass) throws Exception
Exception
protected abstract Object getWrapperObject(Object object) throws Exception
Exception
protected Object getPartObject(int index, Object object) throws Exception
Exception
protected Object getValue(Method method, Object in) throws IllegalAccessException, InvocationTargetException
public Object createWrapperObject(List<?> lst) throws Fault
createWrapperObject
in interface WrapperHelper
Fault
public List<Object> getWrapperParts(Object o) throws Fault
getWrapperParts
in interface WrapperHelper
Fault
Copyright © 2016 JBoss by Red Hat. All rights reserved.