public class ServerDescriptor extends Object
servers.xml.| Modifier and Type | Field and Description |
|---|---|
private String |
dataType
Data type
|
private String |
groupName
Group name
|
private boolean |
isActive
Is the server active
|
private String |
serverName
Server name or IP address
|
| Constructor and Description |
|---|
ServerDescriptor(String type,
String name,
String group,
String active)
Create a new server descriptor object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataType()
Get the data type property.
|
String |
getGroupName()
Get the groupName property.
|
boolean |
getIsActive()
Get the isActive property.
|
String |
getServerName()
Get the serverName property.
|
boolean |
isDataType(String type)
Determine whether or not this server supports data of the given type.
|
void |
setDataType(String newValue)
Set the dataType property.
|
void |
setGroupName(String newValue)
Set the groupName property.
|
void |
setIsActive(boolean newValue)
Set the isActive property.
|
void |
setServerName(String newValue)
Set the serverName property.
|
String |
toString()
Get a String representation of this object.
|
private boolean isActive
private String serverName
public ServerDescriptor(String type, String name, String group, String active)
type - Data type. Should be one of "image", "point",
"grid", "text", "nav".name - ADDE server name.group - ADDE group name.active - "true" if this descriptor should be active.public boolean getIsActive()
isActive property.public String getDataType()
dataType property.public boolean isDataType(String type)
type - Data type. Should be one of "image", "point",
"grid", "text", "nav".true if type is supported, false
otherwise.public String getServerName()
serverName property.public String getGroupName()
groupName property.public void setIsActive(boolean newValue)
newValue - The new vaue for the isActive property.public void setDataType(String newValue)
newValue - The new vaue for the dataType property.public void setServerName(String newValue)
newValue - The new vaue for the serverName property.public void setGroupName(String newValue)
newValue - The new vaue for the groupName property.