|
jTransfo, 0.14 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jtransfo.internal.ToHelper
public class ToHelper
Helper for working with transfer objects.
| Constructor Summary | |
|---|---|
ToHelper()
|
|
| Method Summary | |
|---|---|
Class<?> |
getDomainClass(Class<?> toClass)
Get domain class for transfer object. |
Class<?> |
getToSubType(Class<?> toType,
Object domainObject)
Get the correct transfer object type for the given domain object. |
boolean |
isTo(Object object)
Is the given object a transfer object? True when there is a DomainClass annotation on the class. |
boolean |
isToClass(Class<?> toClass)
Is the given class a transfer object class? True when there is a DomainClass annotation on the class. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToHelper()
| Method Detail |
|---|
public boolean isTo(Object object)
DomainClass annotation on the class.
object - object to test
public boolean isToClass(Class<?> toClass)
DomainClass annotation on the class.
toClass - object class to test
public Class<?> getDomainClass(Class<?> toClass)
toClass - transfer object class
public Class<?> getToSubType(Class<?> toType,
Object domainObject)
toType - base transfer object typedomainObject - domain object (instance)
|
jTransfo, 0.14 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||