Package edu.wisc.ssec.mcidasv.chooser
Class ServerDescriptor
java.lang.Object
edu.wisc.ssec.mcidasv.chooser.ServerDescriptor
Holds the state of server components from
servers.xml.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerDescriptor(String type, String name, String group, String active) Create a new server descriptor object. -
Method Summary
Modifier and TypeMethodDescriptionGet the data type property.Get the groupName property.booleanGet the isActive property.Get the serverName property.booleanisDataType(String type) Determine whether or not this server supports data of the given type.voidsetDataType(String newValue) Set the dataType property.voidsetGroupName(String newValue) Set the groupName property.voidsetIsActive(boolean newValue) Set the isActive property.voidsetServerName(String newValue) Set the serverName property.toString()Get a String representation of this object.
-
Field Details
-
isActive
Is the server active -
serverName
Server name or IP address -
groupName
Group name -
dataType
Data type
-
-
Constructor Details
-
ServerDescriptor
Create a new server descriptor object.- Parameters:
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.
-
-
Method Details
-
getIsActive
Get the isActive property.- Returns:
- Value of the
isActiveproperty.
-
getDataType
Get the data type property.- Returns:
- Value of the
dataTypeproperty.
-
isDataType
Determine whether or not this server supports data of the given type.- Parameters:
type- Data type. Should be one of "image", "point", "grid", "text", "nav".- Returns:
trueiftypeis supported,falseotherwise.
-
getServerName
Get the serverName property.- Returns:
- Value of the
serverNameproperty.
-
getGroupName
Get the groupName property.- Returns:
- Value of the
groupNameproperty.
-
setIsActive
Set the isActive property.- Parameters:
newValue- The new vaue for theisActiveproperty.
-
setDataType
Set the dataType property.- Parameters:
newValue- The new vaue for thedataTypeproperty.
-
setServerName
Set the serverName property.- Parameters:
newValue- The new vaue for theserverNameproperty.
-
setGroupName
Set the groupName property.- Parameters:
newValue- The new vaue for thegroupNameproperty.
-
toString
Get a String representation of this object.
-