Package org.n52.faroe
Class SettingDefinitionGroup
- java.lang.Object
-
- org.n52.faroe.AbstractOrdered
-
- org.n52.faroe.SettingDefinitionGroup
-
- All Implemented Interfaces:
Comparable<Ordered>,Ordered
public class SettingDefinitionGroup extends AbstractOrdered
Class to group ISettingDefinitions. Not needed by the service but only for representation in the GUI.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SettingDefinitionGroup()SettingDefinitionGroup(String title)SettingDefinitionGroup(String title, float order)SettingDefinitionGroup(String title, String description)SettingDefinitionGroup(String title, String description, float order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()protected StringgetSuborder()StringgetTitle()booleanhasDescription()inthashCode()protected booleanhasStringProperty(String s)Checks if the parameter is not null and not empty.booleanhasTitle()booleanisShowInDefaultSettings()Should this group be displayed in default settingsvoidsetDescription(String description)Sets the description for this group.voidsetShowInDefaultSettings(boolean show)Set if this settings group should be displayed in default settingsvoidsetTitle(String title)Sets the title of this group.StringtoString()-
Methods inherited from class org.n52.faroe.AbstractOrdered
compareTo, getOrder, setOrder
-
-
-
-
Constructor Detail
-
SettingDefinitionGroup
public SettingDefinitionGroup(String title, String description, float order)
-
SettingDefinitionGroup
public SettingDefinitionGroup(String title, float order)
-
SettingDefinitionGroup
public SettingDefinitionGroup(String title)
-
SettingDefinitionGroup
public SettingDefinitionGroup()
-
-
Method Detail
-
getTitle
public String getTitle()
- Returns:
- the title of this group
-
setTitle
public void setTitle(String title)
Sets the title of this group.- Parameters:
title- the title
-
hasTitle
public boolean hasTitle()
- Returns:
- if this group has a non empty title
-
getDescription
public String getDescription()
- Returns:
- the description for this group
-
setDescription
public void setDescription(String description)
Sets the description for this group.- Parameters:
description- the description
-
hasDescription
public boolean hasDescription()
- Returns:
- if this group has a non empty description
-
setShowInDefaultSettings
public void setShowInDefaultSettings(boolean show)
Set if this settings group should be displayed in default settings- Parameters:
show- Display in default settings
-
isShowInDefaultSettings
public boolean isShowInDefaultSettings()
Should this group be displayed in default settings- Returns:
true, if this group should be displayed in default settings
-
hasStringProperty
protected boolean hasStringProperty(String s)
Checks if the parameter is not null and not empty.- Parameters:
s- the string to test- Returns:
- if it is not null and not empty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractOrdered
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractOrdered
-
getSuborder
protected String getSuborder()
- Specified by:
getSuborderin classAbstractOrdered
-
-