|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.framework.TopiaFilter
public class TopiaFilter
Filter
Created: 23 avr. 2010
| Field Summary | |
|---|---|
protected Integer |
endIndex
|
protected String |
orderBy
|
protected String |
referenceId
|
protected String |
referenceProperty
|
protected Integer |
startIndex
|
| Fields inherited from interface org.nuiton.topia.framework.EntityFilter |
|---|
PROPERTY_END_INDEX, PROPERTY_ORDER_BY, PROPERTY_REFERENCE_ID, PROPERTY_REFERENCE_PROPERTY, PROPERTY_START_INDEX |
| Constructor Summary | |
|---|---|
TopiaFilter()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add PropertyChangeListener. |
void |
checkReference(Class<?> reference,
boolean mandatory)
Use to check if reference class is supported by the current
filter reference. |
Integer |
getEndIndex()
Get the value of endIndex |
String |
getOrderBy()
Get the value of orderBy |
String |
getReferenceId()
Get the value of referenceId |
String |
getReferenceProperty()
Get the value of referenceProperty |
Integer |
getStartIndex()
Get the value of startIndex |
boolean |
hasReference()
Used to check if the filter contains a reference. |
boolean |
isClassReference(Class<?> entityClass)
Test if the entityClass is corresponding to the current reference
in the filter. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove PropertyChangeListener. |
void |
setEndIndex(Integer endIndex)
Set the value of endIndex |
void |
setOrderBy(String orderBy)
Set the value of orderBy |
void |
setReference(Object entity)
Set the value of referenceId from entity |
void |
setReferenceId(String referenceId)
Set the value of referenceId |
void |
setReferenceProperty(String referenceProperty)
Set the value of referenceProperty |
void |
setStartIndex(Integer startIndex)
Set the value of startIndex |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Integer startIndex
protected Integer endIndex
protected String orderBy
protected String referenceId
protected String referenceProperty
| Constructor Detail |
|---|
public TopiaFilter()
| Method Detail |
|---|
public Integer getStartIndex()
EntityFilter
getStartIndex in interface EntityFilterpublic void setStartIndex(Integer startIndex)
EntityFilter
setStartIndex in interface EntityFilterstartIndex - new value of startIndexpublic String getOrderBy()
EntityFilter
getOrderBy in interface EntityFilterpublic void setOrderBy(String orderBy)
EntityFilter
setOrderBy in interface EntityFilterorderBy - new value of orderBypublic Integer getEndIndex()
EntityFilter
getEndIndex in interface EntityFilterpublic void setEndIndex(Integer endIndex)
EntityFilter
setEndIndex in interface EntityFilterendIndex - new value of endIndexpublic String getReferenceId()
EntityFilter
getReferenceId in interface EntityFilterpublic void setReferenceId(String referenceId)
EntityFilter
setReferenceId in interface EntityFilter
public void setReference(Object entity)
throws IllegalArgumentException
EntityFilterentity
setReference in interface EntityFilterIllegalArgumentExceptionpublic boolean hasReference()
EntityFilter
hasReference in interface EntityFilterpublic String getReferenceProperty()
EntityFilter
getReferenceProperty in interface EntityFilterpublic void setReferenceProperty(String referenceProperty)
EntityFilter
setReferenceProperty in interface EntityFilterpublic void addPropertyChangeListener(PropertyChangeListener listener)
EntityFilter
addPropertyChangeListener in interface EntityFilterpublic void removePropertyChangeListener(PropertyChangeListener listener)
EntityFilter
removePropertyChangeListener in interface EntityFilterpublic boolean isClassReference(Class<?> entityClass)
entityClass is corresponding to the current reference
in the filter. Will return false if no reference is set in the filter.
isClassReference in interface EntityFilterentityClass - Class reference to test
checkReference(Class, boolean)
public void checkReference(Class<?> reference,
boolean mandatory)
throws IllegalArgumentException
reference class is supported by the current
filter reference. The reference can be not mandatory. Exceptions
are thrown if the check failed. If you prefer to have a boolean instead
of exceptions, you can use isClassReference(Class).
checkReference in interface EntityFilterreference - Class reference to checkmandatory - If the existence of the reference is mandatory
IllegalArgumentException - for errors on checkhasReference(),
isClassReference(Class)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||