org.apache.jetspeed.capabilities.impl
Class CapabilityImpl

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

public class CapabilityImpl
extends java.lang.Object
implements Capability

Capability implementation class.

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

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

Constructor Detail

CapabilityImpl

public CapabilityImpl()
Method Detail

setCapabilityId

public void setCapabilityId(int id)
Description copied from interface: Capability
Set CapabilityId

Specified by:
setCapabilityId in interface Capability

getCapabilityId

public int getCapabilityId()
Description copied from interface: Capability
Get CapabilityId

Specified by:
getCapabilityId in interface Capability
Returns:
capabilityId

setName

public void setName(java.lang.String name)
Description copied from interface: Capability
Set Capability name

Specified by:
setName in interface Capability

getName

public java.lang.String getName()
Description copied from interface: Capability
Get CapabilityId

Specified by:
getName in interface Capability
Returns:
capability string

hashCode

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

Overrides:
hashCode in class java.lang.Object

equals

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

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


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