|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.NamedThing
ucar.unidata.idv.chooser.adde.AddeServer
public class AddeServer
Holds information about the available adde servers
| Nested Class Summary | |
|---|---|
static class |
AddeServer.Group
Class Group represents an adde group |
| Field Summary | |
|---|---|
static String |
TYPE_ANY
group type |
static String |
TYPE_IMAGE
image type |
static String |
TYPE_NONE
group type |
static String |
TYPE_POINT
point type |
static String |
TYPE_RADAR
radar type |
static String |
TYPE_WXTEXT
text type |
| Constructor Summary | |
|---|---|
AddeServer()
ctor |
|
AddeServer(String name)
ctor |
|
AddeServer(String name,
String description)
ctor |
|
| Method Summary | |
|---|---|
void |
addGroup(AddeServer.Group group)
Add the group to me |
void |
addGroups(List groupsToAdd)
Add the list of groups |
static List |
coalesce(List servers)
Merge all of the similarly named servers in the list |
boolean |
equals(Object o)
equals |
AddeServer.Group |
findGroup(String name)
Find the group with the given name |
static AddeServer |
findServer(List servers,
String name)
Find the server with the given name in the given list |
boolean |
getActive()
Get the Active property. |
List |
getGroups()
Get the Groups property. |
List |
getGroupsWithType(String type)
Get the groups with the given type |
List |
getGroupsWithType(String type,
boolean onlyActive)
Get the groups with the given type |
boolean |
getIsLocal()
Get the IsLocal property. |
static List |
getServersWithType(String type,
List servers)
Find the list of servers that have at least one group with the given type |
boolean |
hasType(String type)
Does this server have a group with the given type |
static void |
main(String[] args)
test |
static List |
processXml(Element root)
process the xml root |
void |
setActive(boolean value)
Set the Active property. |
void |
setGroups(List value)
Set the Groups property. |
void |
setIsLocal(boolean value)
Set the IsLocal property. |
static Element |
toXml(List servers,
boolean localOnly)
Create the xml tree for all of the given servers |
| Methods inherited from class ucar.unidata.util.NamedThing |
|---|
getDescription, getName, hashCode, setDescription, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_NONE
public static final String TYPE_ANY
public static final String TYPE_IMAGE
public static final String TYPE_RADAR
public static final String TYPE_POINT
public static final String TYPE_WXTEXT
| Constructor Detail |
|---|
public AddeServer()
public AddeServer(String name)
name - my name
public AddeServer(String name,
String description)
name - my namedescription - my description| Method Detail |
|---|
public static Element toXml(List servers,
boolean localOnly)
throws Exception
servers - List of serverslocalOnly - Only include servers and groups that are marked as local
Exception - On badnesspublic static List coalesce(List servers)
servers - list of servers
public static List processXml(Element root)
root - The xml node
public static AddeServer findServer(List servers,
String name)
servers - List of serversname - name
public static List getServersWithType(String type,
List servers)
type - group typeservers - servers
public void setIsLocal(boolean value)
value - The new value for IsLocalpublic boolean getIsLocal()
public void setActive(boolean value)
value - The new value for Activepublic boolean getActive()
public boolean hasType(String type)
type - group type
public void addGroup(AddeServer.Group group)
group - new grouppublic void addGroups(List groupsToAdd)
groupsToAdd - list of groupspublic void setGroups(List value)
value - The new value for Groupspublic List getGroups()
public AddeServer.Group findGroup(String name)
name - group name
public List getGroupsWithType(String type)
type - group type
public List getGroupsWithType(String type,
boolean onlyActive)
type - group typeonlyActive - If true then only get the active groups
public boolean equals(Object o)
equals in class NamedThingo - object
public static void main(String[] args)
args - args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||