public class InstanceOf extends java.lang.Object implements ObjectCondition, SendableEntityCreator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLAZZNAME
Constant of CLAZZNAME.
|
static java.lang.String |
PROPERTY
Constant of PROPERTY.
|
static java.lang.String |
VALUE
Constant of VALUE.
|
NEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor and Description |
|---|
InstanceOf() |
| Modifier and Type | Method and Description |
|---|---|
static InstanceOf |
create(java.lang.Class<?> clazzName)
Static Method for instance a new Instance of InstanceOf Object.
|
static InstanceOf |
create(java.lang.Object clazz,
java.lang.String property)
Static Method for instance a new Instance of InstanceOf Object.
|
static InstanceOf |
create(java.lang.String property)
Static Method for instance a new Instance of InstanceOf Object.
|
java.lang.Class<?> |
getClazzName() |
java.lang.String[] |
getProperties()
Gets the properties.
|
java.lang.String |
getProperty() |
java.lang.Object |
getSendableInstance(boolean prototyp)
Gets the sendable instance.
|
java.lang.Object |
getValue() |
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attribute)
Gets the value.
|
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
Sets the value.
|
boolean |
update(java.lang.Object evt)
checks or notify this condition.
|
InstanceOf |
withClazzName(java.lang.Class<?> value) |
InstanceOf |
withProperty(java.lang.String value) |
InstanceOf |
withValue(java.lang.Object value) |
InstanceOf |
withWhiteList(boolean whiteList) |
public static final java.lang.String CLAZZNAME
public static final java.lang.String PROPERTY
public static final java.lang.String VALUE
public java.lang.String[] getProperties()
SendableEntityCreatorgetProperties in interface SendableEntityCreatorpublic java.lang.Object getSendableInstance(boolean prototyp)
SendableEntityCreatorgetSendableInstance in interface SendableEntityCreatorprototyp - the prototyppublic java.lang.Object getValue(java.lang.Object entity,
java.lang.String attribute)
SendableEntityCreatorgetValue in interface SendableEntityCreatorentity - the entityattribute - the attributepublic boolean setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorentity - the entityattribute - the attributevalue - the valuetype - edit, update or remove operationpublic static InstanceOf create(java.lang.Class<?> clazzName)
clazzName - The ClazzNamepublic static InstanceOf create(java.lang.Object clazz, java.lang.String property)
clazz - The ClazzNameproperty - The Propertypublic static InstanceOf create(java.lang.String property)
property - The Propertypublic java.lang.Class<?> getClazzName()
public InstanceOf withClazzName(java.lang.Class<?> value)
value - The new ClazzNamepublic java.lang.String getProperty()
public InstanceOf withProperty(java.lang.String value)
value - The new Propertypublic java.lang.Object getValue()
public InstanceOf withValue(java.lang.Object value)
value - The new Valuepublic boolean update(java.lang.Object evt)
Conditionpublic InstanceOf withWhiteList(boolean whiteList)