|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexgrid.loader.processor.support.BeanReflectionTruncator
public class BeanReflectionTruncator
The Class BeanReflectionTruncator.
Constructor Summary | |
---|---|
BeanReflectionTruncator()
|
Method Summary | ||
---|---|---|
protected void |
doTruncate(java.lang.String[] path,
java.lang.Object obj,
int length)
Do truncate. |
|
java.lang.reflect.Field |
getField(java.lang.Object obj,
java.lang.String fieldName)
Gets the field. |
|
protected java.lang.String[] |
getFieldPath(java.lang.String path)
Gets the field path. |
|
java.util.Map<java.lang.String,java.lang.Integer> |
getFieldsToTruncate()
Gets the fields to truncate. |
|
java.lang.Object |
getObject(java.lang.Object obj,
java.lang.String fieldName)
Gets the object. |
|
void |
setFieldsToTruncate(java.util.Map<java.lang.String,java.lang.Integer> fieldsToTruncate)
Sets the fields to truncate. |
|
|
truncate(T item)
Truncate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanReflectionTruncator()
Method Detail |
---|
public <T> T truncate(T item) throws java.lang.Exception
Truncator
truncate
in interface Truncator
item
- the item
java.lang.Exception
- the exceptionprotected void doTruncate(java.lang.String[] path, java.lang.Object obj, int length) throws java.lang.Exception
path
- the pathobj
- the objlength
- the length
java.lang.Exception
- the exceptionpublic java.lang.reflect.Field getField(java.lang.Object obj, java.lang.String fieldName) throws java.lang.Exception
obj
- the objfieldName
- the field name
java.lang.Exception
- the exceptionpublic java.lang.Object getObject(java.lang.Object obj, java.lang.String fieldName) throws java.lang.Exception
obj
- the objfieldName
- the field name
java.lang.Exception
- the exceptionprotected java.lang.String[] getFieldPath(java.lang.String path)
path
- the path
public java.util.Map<java.lang.String,java.lang.Integer> getFieldsToTruncate()
public void setFieldsToTruncate(java.util.Map<java.lang.String,java.lang.Integer> fieldsToTruncate)
fieldsToTruncate
- the fields to truncate
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |