public class Filter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Condition<ValuesSimple> |
convertable |
protected ValuesMap |
filterMap |
protected java.lang.Boolean |
full |
protected Condition<ValuesSimple> |
idFilter |
protected Condition<ValuesSimple> |
property |
protected java.util.ArrayList<ReferenceObject> |
refs |
protected java.util.ArrayList<java.lang.Object> |
visitedObjects |
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
protected Filter |
clone(Filter newInstance) |
static Filter |
convertable(Condition<ValuesSimple> convertable)
Create a new Filter for Converting Filter (Encoding Object or set only the Id)
|
Condition<ValuesSimple> |
getConvertable() |
Condition<ValuesSimple> |
getIdFilter() |
int |
getIndexVisitedObjects(java.lang.Object element) |
java.lang.String[] |
getProperties(SendableEntityCreator creator) |
Condition<ValuesSimple> |
getPropertyRegard() |
java.lang.Object |
getRefByEntity(java.lang.Object value) |
java.util.ArrayList<ReferenceObject> |
getRefs() |
java.lang.Object |
getVisitedObjects(int index) |
boolean |
hasObjects(java.lang.Object element) |
void |
initMapFilter(IdMap map) |
boolean |
isConvertable(java.lang.Object entity,
java.lang.String property,
java.lang.Object value,
int deep) |
java.lang.Boolean |
isFullSeriation()
Serialization the Full object inclusive null value
|
boolean |
isId(IdMap map,
java.lang.Object entity,
java.lang.String className)
Filter for encoding ID of Element
|
boolean |
isPropertyRegard(java.lang.Object entity,
java.lang.String property,
java.lang.Object value,
int deep) |
static Filter |
regard(Condition<ValuesSimple> convertable)
Create a new Filter for Regard Filter (Encoding Object or remove link)
|
Filter |
with(ReferenceObject item) |
Filter |
withConvertable(Condition<ValuesSimple> convertable) |
Filter |
withFull(boolean value) |
Filter |
withIdFilter(Condition<ValuesSimple> idFilter) |
Filter |
withObjects(java.lang.Object... visitedObject) |
Filter |
withPropertyRegard(Condition<ValuesSimple> property) |
Filter |
withStandard(Filter referenceFilter) |
protected Condition<ValuesSimple> idFilter
protected Condition<ValuesSimple> convertable
protected Condition<ValuesSimple> property
protected java.util.ArrayList<java.lang.Object> visitedObjects
protected java.util.ArrayList<ReferenceObject> refs
protected java.lang.Boolean full
protected ValuesMap filterMap
public Condition<ValuesSimple> getIdFilter()
public Filter withIdFilter(Condition<ValuesSimple> idFilter)
public boolean isId(IdMap map, java.lang.Object entity, java.lang.String className)
map - the Mapentity - Entity for Show IdclassName - ClassNamepublic java.lang.Boolean isFullSeriation()
public Filter withFull(boolean value)
public Condition<ValuesSimple> getConvertable()
public Filter withConvertable(Condition<ValuesSimple> convertable)
public Condition<ValuesSimple> getPropertyRegard()
public Filter withPropertyRegard(Condition<ValuesSimple> property)
public Filter clone()
clone in class java.lang.Objectpublic boolean hasObjects(java.lang.Object element)
public int getIndexVisitedObjects(java.lang.Object element)
public java.lang.Object getVisitedObjects(int index)
public Filter withObjects(java.lang.Object... visitedObject)
visitedObject - Visited Object to Add to Listpublic java.lang.String[] getProperties(SendableEntityCreator creator)
public void initMapFilter(IdMap map)
public boolean isPropertyRegard(java.lang.Object entity,
java.lang.String property,
java.lang.Object value,
int deep)
public boolean isConvertable(java.lang.Object entity,
java.lang.String property,
java.lang.Object value,
int deep)
public java.util.ArrayList<ReferenceObject> getRefs()
public Filter with(ReferenceObject item)
public java.lang.Object getRefByEntity(java.lang.Object value)
public static Filter regard(Condition<ValuesSimple> convertable)
convertable - Conditionpublic static Filter convertable(Condition<ValuesSimple> convertable)
convertable - Condition