public class SettingDefinitionEncoder extends Object
Constructor and Description |
---|
SettingDefinitionEncoder() |
Modifier and Type | Method and Description |
---|---|
org.codehaus.jettison.json.JSONObject |
encode(Map<SettingDefinitionGroup,Set<SettingDefinition>> grouped) |
org.codehaus.jettison.json.JSONObject |
encode(Set<SettingDefinition> settings) |
org.codehaus.jettison.json.JSONObject |
encode(SettingDefinition def) |
private Object |
encodeValue(SettingDefinition def) |
private String |
getType(SettingDefinition def) |
Map<SettingDefinitionGroup,Set<SettingDefinition>> |
sortByGroup(Set<SettingDefinition<?,?>> defs) |
public Map<SettingDefinitionGroup,Set<SettingDefinition>> sortByGroup(Set<SettingDefinition<?,?>> defs)
public org.codehaus.jettison.json.JSONObject encode(Map<SettingDefinitionGroup,Set<SettingDefinition>> grouped) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public org.codehaus.jettison.json.JSONObject encode(Set<SettingDefinition> settings) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public org.codehaus.jettison.json.JSONObject encode(SettingDefinition def) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private String getType(SettingDefinition def)
private Object encodeValue(SettingDefinition def)
Copyright © 2012-2014 52north.org. All Rights Reserved.