Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

org.apache.jetspeed.portlet
Class Capability

java.lang.Object
  extended byorg.apache.jetspeed.portlet.Capability

public class Capability
extends java.lang.Object

Instances of the Capability class correspond to particular properties which can be assigned to the client devices.

The class has only a private constructor, so that it is not possible to dynamically create objects of this class from outside the class. A set of predefined instances (ie. capabilities) is provided.

Since:
4.1
See Also:
Client

Field Summary
static Capability FRAGMENT
          The predifined capability instance of a fragment identifier support
static Capability HTML_2_0
          The predifined capability instance of html version 2.0 support
static Capability HTML_3_0
          The predifined capability instance of html version 3.0 support
static Capability HTML_3_2
          The predifined capability instance of html version 3.2 support
static Capability HTML_4_0
          The predifined capability instance of html version 4.0 support
static Capability HTML_CSS
          The predifined capability instance of html css support
static Capability HTML_FRAME
          The predifined capability instance of html frames support
static Capability HTML_IFRAME
          The predifined capability instance of html i-frames support
static Capability HTML_JAVA
          The predifined capability instance of html java support
static Capability HTML_JAVASCRIPT
          The predifined capability instance of html java script support
static Capability HTML_NESTED_TABLE
          The predifined capability instance of html nested table support
static Capability HTML_TABLE
          The predifined capability instance of html table support
static Capability WML_1_1
          The predifined capability instance of wml version 1.1 support
static Capability WML_1_2
          The predifined capability instance of wml version 1.2 support
static Capability WML_TABLE
          The predifined capability instance of wml table support
 

Method Summary
 boolean equals(java.lang.Object object)
          Returns whether this and the given object represent the same capability.
static Capability forIdentifier(java.lang.String key)
          Returns a capability for a given key (as returned by the {link #getKey} method).
 java.lang.String getIdentifier()
          Returns the identifier of this capability.
 java.lang.String getKey()
          Returns the internal key value of this capability.
protected  int getValue()
          Returns the integer value of this capability.
 int hashCode()
          Returns a hash code for this capability.
 java.lang.String toString()
          Returns the capability as a displayable string.
 

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

Field Detail

FRAGMENT

public static final Capability FRAGMENT
The predifined capability instance of a fragment identifier support


HTML_2_0

public static final Capability HTML_2_0
The predifined capability instance of html version 2.0 support


HTML_3_0

public static final Capability HTML_3_0
The predifined capability instance of html version 3.0 support


HTML_3_2

public static final Capability HTML_3_2
The predifined capability instance of html version 3.2 support


HTML_4_0

public static final Capability HTML_4_0
The predifined capability instance of html version 4.0 support


HTML_JAVA

public static final Capability HTML_JAVA
The predifined capability instance of html java support


HTML_JAVASCRIPT

public static final Capability HTML_JAVASCRIPT
The predifined capability instance of html java script support


HTML_TABLE

public static final Capability HTML_TABLE
The predifined capability instance of html table support


HTML_NESTED_TABLE

public static final Capability HTML_NESTED_TABLE
The predifined capability instance of html nested table support


HTML_FRAME

public static final Capability HTML_FRAME
The predifined capability instance of html frames support


HTML_IFRAME

public static final Capability HTML_IFRAME
The predifined capability instance of html i-frames support


HTML_CSS

public static final Capability HTML_CSS
The predifined capability instance of html css support


WML_1_1

public static final Capability WML_1_1
The predifined capability instance of wml version 1.1 support


WML_1_2

public static final Capability WML_1_2
The predifined capability instance of wml version 1.2 support


WML_TABLE

public static final Capability WML_TABLE
The predifined capability instance of wml table support

Method Detail

hashCode

public int hashCode()
Returns a hash code for this capability.

Returns:
the hash code

equals

public boolean equals(java.lang.Object object)
Returns whether this and the given object represent the same capability.

Parameters:
object - the object to compare with
Returns:
true if the objects represent the same capability,
false otherwise

toString

public java.lang.String toString()
Returns the capability as a displayable string.

Returns:
the displayable string

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier of this capability.

Returns:
the capability

getKey

public java.lang.String getKey()
Returns the internal key value of this capability.

Returns:
the key value

forIdentifier

public static Capability forIdentifier(java.lang.String key)
Returns a capability for a given key (as returned by the {link #getKey} method). Returns null if the given key is not a valid capability key.

Returns:
the capability

getValue

protected int getValue()
Returns the integer value of this capability.

Returns:
the integer value

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.