com.cc.framework.ui
Class JoinMode

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

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

Defines the modes how columns in a list can be joined

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static JoinMode[] ALL
          Collection with all kinds of join modes
static JoinMode CONCATENATE
          join two adjacent elements without any spacing
private  java.lang.String mode
          The internal mode
static JoinMode NONE
          do not join elements
static JoinMode SEPARATOR
          join two adjacent elements by adding a separator
private static long serialVersionUID
          Serial Version UID
 
Constructor Summary
private JoinMode(java.lang.String mode)
          Constructor for ColumnJoinMode
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 int hashCode()
           
static JoinMode parse(java.lang.String code)
          Creates for the argument an object of type ColumnJoinMode
 java.lang.String toString()
          Returns the join mode
static JoinMode valueOf(boolean b)
          Maps a boolean value to a JoinMode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

NONE

public static final JoinMode NONE
do not join elements


SEPARATOR

public static final JoinMode SEPARATOR
join two adjacent elements by adding a separator


CONCATENATE

public static final JoinMode CONCATENATE
join two adjacent elements without any spacing


mode

private java.lang.String mode
The internal mode


ALL

private static final JoinMode[] ALL
Collection with all kinds of join modes

Constructor Detail

JoinMode

private JoinMode(java.lang.String mode)
Constructor for ColumnJoinMode

Parameters:
mode - The join mode identifier to initialize the Object
Method Detail

toString

public java.lang.String toString()
Returns the join mode

Returns:
The join mode

equals

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

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

hashCode

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

parse

public static JoinMode parse(java.lang.String code)
Creates for the argument an object of type ColumnJoinMode

Parameters:
code - String to parse
Returns:
The new Object

valueOf

public static JoinMode valueOf(boolean b)
Maps a boolean value to a JoinMode

Parameters:
b - the value to map
Returns:
JoinMode


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