Package se.digg.dgc.valueset.v1
Class ValueSetValue
- java.lang.Object
-
- se.digg.dgc.valueset.v1.ValueSetValue
-
public class ValueSetValue extends Object
Representation of a valueset value.- Author:
- Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
-
-
Constructor Summary
Constructors Constructor Description ValueSetValue()Default constructor.ValueSetValue(String display, String lang, boolean active, String version, String system)All-args constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDisplay()Gets the display name of the value.StringgetLang()Gets the language code.StringgetSystem()Gets the system.StringgetVersion()Gets the version of the value.inthashCode()booleanisActive()Tells whether this value is active.voidsetActive(boolean active)Assigns whether this value is activevoidsetDisplay(String display)Sets the display name of the value.voidsetLang(String lang)Sets the language codevoidsetSystem(String system)Sets the system.voidsetVersion(String version)Sets the version of the value.StringtoString()
-
-
-
Constructor Detail
-
ValueSetValue
public ValueSetValue()
Default constructor.
-
ValueSetValue
public ValueSetValue(String display, String lang, boolean active, String version, String system)
All-args constructor.- Parameters:
display- the display name of the valuelang- the language codeactive- whether this value is "active"version- the version of the valuesystem- the system
-
-
Method Detail
-
getDisplay
public String getDisplay()
Gets the display name of the value.- Returns:
- the display name
-
setDisplay
public void setDisplay(String display)
Sets the display name of the value.- Parameters:
display- the display name
-
getLang
public String getLang()
Gets the language code.- Returns:
- the language code
-
setLang
public void setLang(String lang)
Sets the language code- Parameters:
lang- the language code
-
isActive
public boolean isActive()
Tells whether this value is active.- Returns:
- whether this value is active
-
setActive
public void setActive(boolean active)
Assigns whether this value is active- Parameters:
active- active/not active
-
getVersion
public String getVersion()
Gets the version of the value.- Returns:
- the version
-
setVersion
public void setVersion(String version)
Sets the version of the value.- Parameters:
version- the version
-
getSystem
public String getSystem()
Gets the system.- Returns:
- the system
-
setSystem
public void setSystem(String system)
Sets the system.- Parameters:
system- the system
-
-