Capability Class

com.bea.netuix.servlets.controls
Capability Class

public class Capability

    extends Object
    implements Serializable

Represents a named capability for a control.


Hierarchy
Object
  Capability
All Implemented Interfaces

Serializable
Direct Known Subclasses

WindowMode, WindowState

Constructor Summary

Capability(String name, boolean entitlementsEnabled)

Construct a Capability with a given name and specify whether or not entitlements are enabled.

Capability(String name)

Construct a Capability with a given name.

 

Method Summary

public boolean
equals(Capability c)

Returns true if the given Capability is equal to this Capability.

public boolean
equals(Object o)

Returns true if the given Object is equal to this Object.

public String
getName()

Returns the name of this Capability.

public boolean
isEntitlementsEnabled()

Returns whether or not entitlements are enabled for this Capability.

public void
setEntitlementsEnabled(boolean entitlementsEnabled)

Set whether or not entitlements are enabled for this Capability.

public void
setName(String name)

Sets the name of this Capability.

public String
toString()

Returns this Capability as a String.

 
Methods from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   

Constructor Detail


Capability

public Capability(String name, 
                  boolean entitlementsEnabled)

Construct a Capability with a given name and specify whether or not entitlements are enabled.


Capability

public Capability(String name)

Construct a Capability with a given name.

 

Method Detail

equals(Capability) Method

public boolean equals(Capability c)

Returns true if the given Capability is equal to this Capability.

Parameters

c
the Capability to compare this to

Returns

true if the name of the these Capabilities is non-null and the same

equals(Object) Method

public boolean equals(Object o)

Returns true if the given Object is equal to this Object.

Overrides
Object.equals(Object)

Parameters

o
Object to compare this to

Returns

true if o is a Capability and equals this Capability

getName() Method

public String getName()

Returns the name of this Capability.

Returns

name the name of this Capability

isEntitlementsEnabled() Method

public boolean isEntitlementsEnabled()

Returns whether or not entitlements are enabled for this Capability.

Returns

whether or not entitlements are enabled for this Capability

setEntitlementsEnabled(boolean) Method

public void setEntitlementsEnabled(boolean entitlementsEnabled)

Set whether or not entitlements are enabled for this Capability.

Parameters

entitlementsEnabled
whether or not entitlements are enabled for this Capability

setName(String) Method

public void setName(String name)

Sets the name of this Capability.

Parameters

name
the name of this Capability

toString() Method

public String toString()

Returns this Capability as a String.

Overrides
Object.toString()

Returns

a String representation of this Capability