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