public abstract class ServerModel
extends java.lang.Object
ServerModel abstract class wraps the dynamic attributes pertaining to the server,
such as the server URL, server name, and server version, among others.| Modifier and Type | Class and Description |
|---|---|
static class |
ServerModel.PreConfig
The
ServerModel.PreConfig abstract class wraps various properties about server configurations,
including whether or not new servers can be configured or switched to, among others. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_SERVER_NAME
Default server name.
|
static java.lang.String |
DEFAULT_SERVER_VERSION
Default server version.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
badgeCount()
Returns an int of the number of badges on the server.
|
abstract boolean |
current()
Returns a boolean that represents whether or not the user is currently pointing to the
server.
|
abstract boolean |
reachable()
Returns a boolean that represents whether or not the server is reachable.
|
abstract boolean |
selected()
Returns a boolean that represents whether or not the server has been selected.
|
abstract java.lang.String |
serverName()
Returns a String of the name of the server.
|
abstract java.lang.String |
serverUrl()
Returns a String of the URL of the server.
|
abstract java.lang.String |
serverVersion()
Returns a String of the version of the server.
|
abstract ServerModel |
withSelected(boolean selected)
Constructor for a
ServerModel object with the selected set. |
public static final java.lang.String DEFAULT_SERVER_NAME
public static final java.lang.String DEFAULT_SERVER_VERSION
public abstract java.lang.String serverUrl()
public abstract java.lang.String serverName()
public abstract java.lang.String serverVersion()
public abstract int badgeCount()
public abstract boolean reachable()
true if the server is reachable;
false otherwise.public abstract boolean selected()
true if the server has been selected;
false otherwise.public abstract ServerModel withSelected(boolean selected)
ServerModel object with the selected set.selected - See selected()ServerModel object with the selected set.public abstract boolean current()
true if the user is currently pointing to the server;
false otherwise.