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 boolean
equals(Object obj)
String
getDisplay()
Gets the display name of the value.String
getLang()
Gets the language code.String
getSystem()
Gets the system.String
getVersion()
Gets the version of the value.int
hashCode()
boolean
isActive()
Tells whether this value is active.void
setActive(boolean active)
Assigns whether this value is activevoid
setDisplay(String display)
Sets the display name of the value.void
setLang(String lang)
Sets the language codevoid
setSystem(String system)
Sets the system.void
setVersion(String version)
Sets the version of the value.String
toString()
-
-
-
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
-
-