com.cc.framework.http
Class RequestDecorationType

java.lang.Object
  extended bycom.cc.framework.http.RequestDecorationType
All Implemented Interfaces:
java.io.Serializable, SimpleEnumType

public class RequestDecorationType
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable

Enumeration of RequestDecorationTypes

Since:
1.0
Version:
$Revision: 1.12 $
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String prefix
          Prefix
private static long serialVersionUID
          Serial Version UID
static RequestDecorationType TYPE_HD_FORM
          TYPE_HD_FORM
static RequestDecorationType TYPE_HD_URL
          TYPE_HD_URL
static RequestDecorationType TYPE_URL
          TYPE_URL
private  java.lang.String value
          Internal Type
 
Constructor Summary
RequestDecorationType(java.lang.String value, java.lang.String prefix)
          Constructor for RequestDecorationType
 
Method Summary
 java.lang.String decorate(java.lang.String str)
          Concatenates a String with the Prefix
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 java.lang.String getName()
          Returns the Name
 int hashCode()
           
 boolean isMatching(java.lang.String requestParam)
          Checks if the Argument matches the Prefix of the EnumerationTyp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

TYPE_HD_FORM

public static final RequestDecorationType TYPE_HD_FORM
TYPE_HD_FORM


TYPE_HD_URL

public static final RequestDecorationType TYPE_HD_URL
TYPE_HD_URL


TYPE_URL

public static final RequestDecorationType TYPE_URL
TYPE_URL


value

private java.lang.String value
Internal Type


prefix

private java.lang.String prefix
Prefix

Constructor Detail

RequestDecorationType

public RequestDecorationType(java.lang.String value,
                             java.lang.String prefix)
Constructor for RequestDecorationType

Parameters:
value - Value
prefix - Prefix
Method Detail

isMatching

public boolean isMatching(java.lang.String requestParam)
Checks if the Argument matches the Prefix of the EnumerationTyp

Parameters:
requestParam - Request Parameter
Returns:
boolean

decorate

public java.lang.String decorate(java.lang.String str)
Concatenates a String with the Prefix

Parameters:
str - String
Returns:
String

getName

public java.lang.String getName()
Returns the Name

Returns:
String

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this RequestDecorationType object against.
Returns:
true if the internal types are equal; false otherwise.

hashCode

public int hashCode()
See Also:
Object.hashCode()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.