public class PropertyMeta
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PropertyMeta.ClassType
Defines domain/DTO property type, used by Jeneva internally
|
Constructor and Description |
---|
PropertyMeta(java.beans.PropertyDescriptor descriptor)
initializes a new instance of the PropertyMeta class
|
Modifier and Type | Method and Description |
---|---|
byte |
getDtoLevel()
Gets serialization level assigned to the property
|
byte |
getDtoNestedLevel()
Gets serialization level assigned to property children
|
java.lang.String |
getName()
gets property name
|
java.lang.Class<?> |
getNestedGenericClass()
Gets property inner generic class (used for List
|
IParser |
getParser() |
java.lang.Class<?> |
getPropertyClass()
Gets property class (type)
|
PropertyMeta.ClassType |
getPropertyClassType()
Gets property class type
|
boolean |
hasLevel(byte level)
Determines if the property falls into the requested serialization level
|
boolean |
isAssigned(Dtobase target)
Determines if the property instance is assigned by JSON deserializer
|
boolean |
isDtoCustomType()
Returns true if the property is custom type (used for Hibernate custom types)
|
boolean |
isDtoDynamic()
Returns true if serialization level assigned to the property children is resolved dynamically
|
boolean |
isValid()
Returns true if the property is valid DTO
|
java.lang.Object |
read(Dtobase target)
Reads property value
|
void |
setDtoCustomType(boolean value)
Sets flag if the property is custom type (used for Hibernate custom types)
|
void |
setDtoDynamic(boolean value)
Sets flag if serialization level assigned to the property children is resolved dynamically
|
void |
setDtoLevel(byte value)
Sets serialization level assigned to the property
|
void |
setDtoNestedLevel(byte value)
Sets serialization level assigned to property children
|
void |
setNestedGenericClass(java.lang.Class<?> value)
Sets property inner generic class (used for List
|
void |
setParser(IParser value) |
void |
setPropertyClassType(PropertyMeta.ClassType value)
Sets property class type
|
void |
setValid(boolean value)
Sets flag if the property is valid DTO
|
void |
write(Dtobase target,
java.lang.Object value)
Assigns value to the property
|
public PropertyMeta(java.beans.PropertyDescriptor descriptor) throws java.lang.RuntimeException
descriptor
- java.lang.RuntimeException
public java.lang.String getName()
public java.lang.Class<?> getPropertyClass()
public PropertyMeta.ClassType getPropertyClassType()
public void setPropertyClassType(PropertyMeta.ClassType value)
public java.lang.Class<?> getNestedGenericClass()
public void setNestedGenericClass(java.lang.Class<?> value)
public byte getDtoLevel()
public void setDtoLevel(byte value)
public byte getDtoNestedLevel()
public void setDtoNestedLevel(byte value)
public boolean isDtoCustomType()
public void setDtoCustomType(boolean value)
public boolean isDtoDynamic()
public void setDtoDynamic(boolean value)
public IParser getParser()
public void setParser(IParser value)
public boolean isValid()
public void setValid(boolean value)
public boolean hasLevel(byte level)
level
- requested serialization levelpublic boolean isAssigned(Dtobase target)
target
- domain/DTO objectpublic void write(Dtobase target, java.lang.Object value) throws java.lang.Exception
target
- domain/DTO objectvalue
- property valuejava.lang.Exception
- if failedpublic java.lang.Object read(Dtobase target) throws java.lang.Exception
target
- domain/DTO objectjava.lang.Exception
- if failed