public class TransformHelper extends Object
TransformHelper class.
| Modifier and Type | Field and Description |
|---|---|
protected String |
prefix |
protected TransformStrategy |
strategy |
| Constructor and Description |
|---|
TransformHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkLevel()
Return true if the level is ok
|
Object |
createArray(int length,
Class<?> type)
createArray.
|
Object |
createObject(Class<?> type)
createObject.
|
PojoModel |
createPojoModel(Object from)
createPojoModel.
|
TransformHelper |
decLevel()
decLevel.
|
ClassLoader |
getClassLoader()
getClassLoader.
|
String |
getPrefix()
Getter for the field
prefix. |
TransformStrategy |
getStrategy()
Getter for the field
strategy. |
Class<?> |
getType(String clazz)
getType.
|
TransformHelper |
incLevel()
incLevel.
|
boolean |
isArrayType(String type)
isArrayType.
|
void |
log(String msg)
log.
|
void |
log(String string,
Throwable t)
log.
|
void |
postToJson(Object from,
org.codehaus.jackson.JsonNode to)
postToJson.
|
void |
postToPojo(org.codehaus.jackson.JsonNode from,
Object to)
postToPojo.
|
void |
setPrefix(String in)
Setter for the field
prefix. |
protected String prefix
protected TransformStrategy strategy
public TransformHelper incLevel()
incLevel.
TransformHelper object.public void postToJson(Object from, org.codehaus.jackson.JsonNode to)
postToJson.
from - a Object object.to - a JsonNode object.public Class<?> getType(String clazz) throws IllegalAccessException
getType.
clazz - a String object.Class object.IllegalAccessException - if any.public boolean isArrayType(String type)
isArrayType.
type - a String object.public ClassLoader getClassLoader()
getClassLoader.
ClassLoader object.public TransformHelper decLevel()
decLevel.
TransformHelper object.public Object createObject(Class<?> type) throws InstantiationException, IllegalAccessException
createObject.
type - a Class object.Object object.InstantiationException - if any.IllegalAccessException - if any.public void setPrefix(String in)
Setter for the field prefix.
in - a String object.public boolean checkLevel()
public TransformStrategy getStrategy()
Getter for the field strategy.
TransformStrategy object.Copyright © 2016. All Rights Reserved.