public class ServerGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUP_LIST_MATCHER |
static java.lang.String |
PATH_ALL_GROUPS |
Constructor and Description |
---|
ServerGroup(ServerGroup serverGroup) |
ServerGroup(java.lang.String name,
java.lang.String direction,
long created,
java.lang.String type,
int bitpos,
boolean active,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
static ServerGroup |
fromJSON(org.json.JSONObject obj) |
static java.util.List<ServerGroup> |
fromResultJSON(org.json.JSONObject json) |
int |
getBitpos() |
long |
getCreated() |
java.lang.String |
getDescription() |
java.lang.String |
getDirection() |
java.lang.String |
getName() |
java.lang.String |
getType() |
boolean |
isActive() |
boolean |
isValid() |
void |
setActive(boolean active) |
void |
setDirection(java.lang.String direction) |
org.json.JSONObject |
toJSON() |
static org.json.JSONArray |
toResultJSON(java.util.List<ServerGroup> serverGroups) |
public static final java.lang.String GROUP_LIST_MATCHER
public static final java.lang.String PATH_ALL_GROUPS
public ServerGroup(java.lang.String name, java.lang.String direction, long created, java.lang.String type, int bitpos, boolean active, java.lang.String description)
public ServerGroup(ServerGroup serverGroup)
public java.lang.String getName()
public java.lang.String getDirection()
public void setDirection(java.lang.String direction)
public long getCreated()
public java.lang.String getType()
public int getBitpos()
public boolean isActive()
public void setActive(boolean active)
public java.lang.String getDescription()
public boolean isValid()
public org.json.JSONObject toJSON()
public static org.json.JSONArray toResultJSON(java.util.List<ServerGroup> serverGroups)
public static ServerGroup fromJSON(org.json.JSONObject obj) throws org.json.JSONException
org.json.JSONException
public static java.util.List<ServerGroup> fromResultJSON(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONException