jp.terasoluna.fw.web.codelist
Class CodeBean

java.lang.Object
  extended by jp.terasoluna.fw.web.codelist.CodeBean
All Implemented Interfaces:
java.io.Serializable

public class CodeBean
extends java.lang.Object
implements java.io.Serializable

Bean class that retains code and code value(display string).

See Also:
Serialized Form

Field Summary
private  java.lang.String id
          Field value indicating the id.
private  java.lang.String name
          Field value indicating the name.
private static long serialVersionUID
          Serial version ID
 
Constructor Summary
CodeBean()
           
 
Method Summary
 java.lang.String getCodeCommaName()
          Fetches the string in which the code and code value (display string) are joined with (",").
 java.lang.String getId()
          Returns id.
 java.lang.String getLabel()
          Fetches the string in which code and code value (display string) are joined with half-width space.
 java.lang.String getName()
          Returns name.
 void setId(java.lang.String id)
          Sets id.
 void setName(java.lang.String name)
          Sets name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version ID

See Also:
Constant Field Values

id

private java.lang.String id
Field value indicating id.


name

private java.lang.String name
Field value indicating name.

Constructor Detail

CodeBean

public CodeBean()
Method Detail

setId

public void setId(java.lang.String id)
Sets id.

Parameters:
id - Field value indicating id.

getId

public java.lang.String getId()
Returns id.

Returns:
Field value indicating id.

setName

public void setName(java.lang.String name)
Sets name.

Parameters:
name - Field value indicating name.

getName

public java.lang.String getName()
Returns name.

Returns:
Field value indicating name.

getLabel

public java.lang.String getLabel()
Fetches the string in which code and code value (display string) are joined with half-width space.

The result is output as follows:
id+(half-width space)+ name

Returns:
String in which code and code value (display string) are joined with half-width space.

getCodeCommaName

public java.lang.String getCodeCommaName()
Fetches the string in which code and code value (display string) are joined with comma (",").

The result is output as follows:
id + , + name

Returns:
String in which code and code value (display string) are joined with comma.