pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content.filter
Class FilterRuleProperty

java.lang.Object
  extended by org.torweg.pulse.site.content.Localized
      extended by org.torweg.pulse.site.content.filter.FilterRuleProperty
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FilterRuleProperty>, INameable, INamed

@Entity
public class FilterRuleProperty
extends Localized
implements java.lang.Comparable<FilterRuleProperty>

a FilterRuleProperty is part of a FilterRule.

FilterRuleProperty objects are associated with Contents by a Filter.

Version:
$Revision: 1503 $
Author:
Thomas Weber, Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected FilterRuleProperty()
          Deprecated. 
  FilterRuleProperty(java.lang.String n)
          creates a new FilterRuleProperty with the given name.
 
Method Summary
 int compareTo(FilterRuleProperty p)
          returns the result of the comparison.
 FilterRuleProperty createCopy()
          creates a copy of the current FilterRuleProperty.
 org.jdom.Element deserializeToJDOM()
          returns a JDOM representation of the FilterRuleProperty.
 boolean equals(java.lang.Object o)
          returns whether the given Object is equal to the FilterRuleProperty.
 int hashCode()
          returns the int value of the id or super.hashCode(), if the id is still null.
 
Methods inherited from class org.torweg.pulse.site.content.Localized
getId, getLocalization, getLocalization, getLocalizations, getName, putLocalization, removeLocalization, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterRuleProperty

@Deprecated
protected FilterRuleProperty()
Deprecated. 

used by HibernateTM.


FilterRuleProperty

public FilterRuleProperty(java.lang.String n)
creates a new FilterRuleProperty with the given name.

Parameters:
n - the name
Method Detail

hashCode

public final int hashCode()
returns the int value of the id or super.hashCode(), if the id is still null.

Overrides:
hashCode in class java.lang.Object
Returns:
the int value of the id or super.hashCode(), if the id is still null
See Also:
Object.hashCode()

equals

public final boolean equals(java.lang.Object o)
returns whether the given Object is equal to the FilterRuleProperty.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare with
Returns:
true, if the given object is a FilterRuleProperty and the result of compareTo(FilterRuleProperty) is 0

compareTo

public final int compareTo(FilterRuleProperty p)
returns the result of the comparison.

If both rules have been persisted, the rule's ids are compared. Otherwise the hash codes are compared.

Specified by:
compareTo in interface java.lang.Comparable<FilterRuleProperty>
Parameters:
p - the property to compare to
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
See Also:
Comparable.compareTo(Object)

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
returns a JDOM representation of the FilterRuleProperty.

Returns:
a JDOM representation of the FilterRuleProperty

createCopy

public final FilterRuleProperty createCopy()
creates a copy of the current FilterRuleProperty.

Returns:
a copy of the current FilterRuleProperty