public class WsLookup extends Object
WsLookupType
Constructor and Description |
---|
WsLookup()
Creates an empty WsLookup object.
|
WsLookup(String name,
String description,
WsLookupType lookupType)
Creates a new WsLookup with the given values.
|
Modifier and Type | Method and Description |
---|---|
String |
getColor()
Gets the color hex string for this lookup
|
String |
getDataValue()
Gets the value for this lookup.
|
String |
getDescription()
Gets the lookup's description.
|
Long |
getId()
Gets the lookup's id.
|
String |
getImage()
Gets the image associated with this lookup.
|
WsLookupType |
getLookupType()
Gets the lookup type.
|
String |
getName()
Gets the lookup's name.
|
Integer |
getSortOrder()
Gets the sort order for this lookup.
|
boolean |
isActive()
Is this lookup active?
|
boolean |
isDefault()
Is this the default value for the associated lookup type?
|
void |
setActive(boolean active)
Sets whether or not this is lookup is active.
|
void |
setColor(String color)
Sets the color hex string for this lookup
|
void |
setDataValue(String dataValue)
Sets the value for this lookup.
|
void |
setDefault(boolean isDefault)
Sets whether or not this is the default value for the associated lookup
type.
|
void |
setDescription(String description)
Sets the lookup's description.
|
void |
setId(Long id)
Sets the lookup's id.
|
void |
setImage(String image)
Sets the image associated with this lookup.
|
void |
setLookupType(WsLookupType lookupType)
Sets the lookup type.
|
void |
setName(String name)
Sets the lookup's name.
|
void |
setSortOrder(Integer sortOrder)
Sets the sort order for this lookup.
|
String |
toString()
Gets a string representation of this lookup.
|
public WsLookup()
public WsLookup(String name, String description, WsLookupType lookupType)
name
- name of the lookup entrydescription
- description of the lookup entry (can be null)lookupType
- lookupType this lookup entry is associated withpublic Long getId()
public void setId(Long id)
id
- the id to setpublic String getName()
public void setName(String name)
name
- the name to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic WsLookupType getLookupType()
public void setLookupType(WsLookupType lookupType)
lookupType
- the lookupType to setpublic String getImage()
public void setImage(String image)
image
- the image to setpublic Integer getSortOrder()
public void setSortOrder(Integer sortOrder)
sortOrder
- the sortOrder to setpublic boolean isDefault()
public void setDefault(boolean isDefault)
isDefault
- whether or not this should be the default valuepublic boolean isActive()
public void setActive(boolean active)
active
- whether or not this lookup should be activepublic String getDataValue()
public void setDataValue(String dataValue)
dataValue
- the dataValue to setpublic String getColor()
public void setColor(String color)
color
- color to setCopyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.