|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.site.content.filter.FilterMatches
@Entity public class FilterMatches
describes the n:m relationship of the filtered ContentLocalizationMap
and all its matching FilterRuleProperty objects.
| Constructor Summary | |
|---|---|
protected |
FilterMatches()
Deprecated. |
|
FilterMatches(ContentLocalizationMap c)
creates a new FilterMatches for the given object. |
| Method Summary | |
|---|---|
boolean |
addProperty(FilterRuleProperty p)
adds a FilterRuleProperty to the object's list of matching
properties. |
void |
clearProperties()
clears all properties of the filtered object. |
int |
compareTo(FilterMatches m)
returns the result of the comparison. |
boolean |
containsProperty(FilterRuleProperty p)
checks whether the FilterMatches contains the given property. |
boolean |
equals(java.lang.Object o)
returns whether the given Object is equal to the FilterRule. |
ContentLocalizationMap |
getContentLocalizationMap()
|
Filter |
getFilter()
returns the Filter associated with the matches. |
ContentLocalizationMap |
getFilteredContent()
returns the object, which is filterable with this FilterMatches. |
java.lang.Long |
getId()
returns the primary key. |
java.util.Set<FilterRuleProperty> |
getProperties()
returns the FilterRulePropertys. |
int |
hashCode()
returns the int value of the id or super.hashCode(), if the id is
still null. |
boolean |
isPropertiesEmpty()
returns true, if the match contains no properties. |
int |
propertiesSize()
returns the number of properties associated with the matches. |
boolean |
removeProperty(FilterRuleProperty p)
removes a given FilterRuleProperty from the matches properties. |
void |
setFilter(Filter f)
sets the Filter the match belongs to. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected FilterMatches()
public FilterMatches(ContentLocalizationMap c)
FilterMatches for the given object.
c - the content to be filterable| Method Detail |
|---|
public final java.lang.Long getId()
public final Filter getFilter()
Filter associated with the matches.
public final void setFilter(Filter f)
Filter the match belongs to.
f - the filter to setpublic final ContentLocalizationMap getFilteredContent()
FilterMatches.
public final boolean addProperty(FilterRuleProperty p)
FilterRuleProperty to the object's list of matching
properties.
p - the property to add
true, if the property has been added. Otherwise false.Set.add(java.lang.Object)public final void clearProperties()
Set.clear()public final boolean containsProperty(FilterRuleProperty p)
FilterMatches contains the given property.
p - the property to look for
true, if the match contains the property. Otherwise
false.Set.contains(java.lang.Object)public final boolean isPropertiesEmpty()
true, if the match contains no properties.
true, if the match contains no properties. Otherwise
falseSet.isEmpty()public final boolean removeProperty(FilterRuleProperty p)
FilterRuleProperty from the matches properties.
p - the property to remove
true, if the property has been removed. Otherwise false.Set.remove(java.lang.Object)public final int propertiesSize()
Set.size()public final int hashCode()
super.hashCode(), if the id is
still null.
hashCode in class java.lang.Objectsuper.hashCode(), if the id is
still nullObject.hashCode()public final boolean equals(java.lang.Object o)
Object is equal to the FilterRule.
equals in class java.lang.Objecto - the object to compare with
true, if the given object is a FilterRule and the
result of compareTo(FilterMatches) is
0public final int compareTo(FilterMatches m)
If both rules have been persisted, the rule's ids are compared. Otherwise the hash codes are compared.
m - the matches to compare to
Comparable.compareTo(Object)public final java.util.Set<FilterRuleProperty> getProperties()
FilterRulePropertys.
FilterRulePropertyspublic final ContentLocalizationMap getContentLocalizationMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||