org.apache.jetspeed.capabilities.impl
Class CapabilityImpl

java.lang.Object
  extended by org.apache.jetspeed.capabilities.impl.CapabilityImpl
All Implemented Interfaces:
org.apache.jetspeed.capabilities.Capability

public class CapabilityImpl
extends Object
implements org.apache.jetspeed.capabilities.Capability

Capability implementation class.

Version:
$Id: CapabilityImpl.java 517719 2007-03-13 15:05:48Z ate $
Author:
Roger Ruttimann

Field Summary
private  int capabilityId
           
private  String name
           
 
Constructor Summary
CapabilityImpl()
           
 
Method Summary
 boolean equals(Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 int getCapabilityId()
           
 String getName()
           
 int hashCode()
          Implements the hashCode calculation so two different objects with the content return the same hashcode....
 void setCapabilityId(int id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capabilityId

private int capabilityId

name

private String name
Constructor Detail

CapabilityImpl

public CapabilityImpl()
Method Detail

setCapabilityId

public void setCapabilityId(int id)
Specified by:
setCapabilityId in interface org.apache.jetspeed.capabilities.Capability

getCapabilityId

public int getCapabilityId()
Specified by:
getCapabilityId in interface org.apache.jetspeed.capabilities.Capability

setName

public void setName(String name)
Specified by:
setName in interface org.apache.jetspeed.capabilities.Capability

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.capabilities.Capability

hashCode

public int hashCode()
Implements the hashCode calculation so two different objects with the content return the same hashcode....

Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.

Overrides:
equals in class Object
Parameters:
object - to compare this one with
Returns:
true if both objects represent the same (logical) content


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.