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.accesscontrol
Class UserAttribute

java.lang.Object
  extended by org.torweg.pulse.accesscontrol.UserAttribute
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UserAttribute>, JDOMable, INameable, INamed

Deprecated.

@Deprecated
public class UserAttribute
extends java.lang.Object
implements INameable, java.io.Serializable, java.lang.Comparable<UserAttribute>, JDOMable

Version:
$Revision: 1377 $
Author:
Christian Schatt
See Also:
Serialized Form

Constructor Summary
UserAttribute(java.lang.String n)
          Deprecated. The constructor that sets the name of the UserAttribute.
 
Method Summary
 void addAttribute(UserAttribute c)
          Deprecated. Adds the given UserAttribute to the children of the UserAttribute.
 void addValue(java.lang.String v)
          Deprecated. Adds the given String to the Set of values of the UserAttribute.
 int compareTo(UserAttribute ua)
          Deprecated. Compares this UserAttribute to the given one, and returns -1, 0, or 1 as this UserAttribute is less than, equal to, or greater than the given one.
 org.jdom.Element deserializeToJDOM()
          Deprecated. Serializes the state of the UserAttribute as a JDOM Element.
 boolean equals(java.lang.Object o)
          Deprecated. Determines whether the given Object is equal to the UserAttribute.
 java.util.Set<UserAttribute> getAttributes()
          Deprecated. Returns a shallow copy of the HashSet of children of the UserAttribute.
 java.lang.String getName()
          Deprecated. Returns the unique name of the UserAttribute.
 UserAttribute getParent()
          Deprecated. Returns the parent of UserAttribute or null.
 java.util.Set<java.lang.String> getValues()
          Deprecated. Returns a shallow copy of the HashSet of values of the UserAttribute.
 int hashCode()
          Deprecated. Returns a hashCode for the UserAttribute.
 void removeAttribute(UserAttribute c)
          Deprecated. Removes the given UserAttribute from the children of the UserAttributes.
 void removeValue(java.lang.String v)
          Deprecated. Removes the given String from the Set of values of the UserAttribute.
 void setName(java.lang.String n)
          Deprecated. Sets the unique name of the UserAttribute.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAttribute

public UserAttribute(java.lang.String n)
Deprecated. 
The constructor that sets the name of the UserAttribute.

Parameters:
n - the name to be set.
Method Detail

getName

public final java.lang.String getName()
Deprecated. 
Returns the unique name of the UserAttribute.

Specified by:
getName in interface INamed
Returns:
the unique name of the UserAttribute.

setName

public final void setName(java.lang.String n)
Deprecated. 
Sets the unique name of the UserAttribute.

The name must not be null.

Specified by:
setName in interface INameable
Parameters:
n - the name to be set.

getParent

public final UserAttribute getParent()
Deprecated. 
Returns the parent of UserAttribute or null.

Returns:
the parent of UserAttribute or null.

getAttributes

public final java.util.Set<UserAttribute> getAttributes()
Deprecated. 
Returns a shallow copy of the HashSet of children of the UserAttribute.

Returns:
a shallow copy of the HashSet of children of the UserAttribute.

addAttribute

public final void addAttribute(UserAttribute c)
Deprecated. 
Adds the given UserAttribute to the children of the UserAttribute.

Parameters:
c - the UserAttribute to be added.

removeAttribute

public final void removeAttribute(UserAttribute c)
Deprecated. 
Removes the given UserAttribute from the children of the UserAttributes.

Parameters:
c - the UserAttribute to be removed.

getValues

public final java.util.Set<java.lang.String> getValues()
Deprecated. 
Returns a shallow copy of the HashSet of values of the UserAttribute.

Returns:
a shallow copy of the HashSet of values of the UserAttribute.

addValue

public final void addValue(java.lang.String v)
Deprecated. 
Adds the given String to the Set of values of the UserAttribute.

Parameters:
v - the String to be added.

removeValue

public final void removeValue(java.lang.String v)
Deprecated. 
Removes the given String from the Set of values of the UserAttribute.

Parameters:
v - the String to be removed.

compareTo

public final int compareTo(UserAttribute ua)
Deprecated. 
Compares this UserAttribute to the given one, and returns -1, 0, or 1 as this UserAttribute is less than, equal to, or greater than the given one.

Specified by:
compareTo in interface java.lang.Comparable<UserAttribute>
Parameters:
ua - the UserAttribute to be compared to this one.
Returns:
-1, 0, or 1 as this UserAttribute is less than, equal to, or greater than the given one.

equals

public final boolean equals(java.lang.Object o)
Deprecated. 
Determines whether the given Object is equal to the UserAttribute.

The two are equal if and only if the given Object is an UserAttribute, and if the names of the two are equal.

Overrides:
equals in class java.lang.Object
Parameters:
o - the Object to be checked for equality with the UserAttribute.
Returns:
true if the given Object is equal to the UserAttribute. Returns false otherwise.

hashCode

public final int hashCode()
Deprecated. 
Returns a hashCode for the UserAttribute.

The returned hashCode is the hashCode obtained by calling the hashCode method on the name String of the UserAttribute.

Overrides:
hashCode in class java.lang.Object
Returns:
a hashCode for the UserAttribute.

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
Deprecated. 
Serializes the state of the UserAttribute as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the state of the UserAttribute as a JDOM Element.