edu.wisc.ssec.mcidasv.servermanager
Interface AddeEntry

All Known Implementing Classes:
LocalAddeEntry, RemoteAddeEntry

public interface AddeEntry

Represents a source of ADDE data. An ADDE entry may describe a dataset on remote servers or the user's own machine.


Nested Class Summary
static class AddeEntry.EditorAction
          Represents the possible actions that an ADDE editor can perform.
static class AddeEntry.EntrySource
          Where did this entry come from?
static class AddeEntry.EntryStatus
          Has the user elected to disable this entry from appearing in its relevant chooser?
static class AddeEntry.EntryType
          Type of chooser this should appear under.
static class AddeEntry.EntryValidity
          Sort of a "misc" status field...
 
Field Summary
static AddeAccount DEFAULT_ACCOUNT
          Represents the "no accounting" entries.
 
Method Summary
 String asStringId()
          Currently used as a identifier for convenient storage by the server manager.
 AddeAccount getAccount()
          Accounting information associated with the current entry.
 String getAddress()
          Address of the server associated with the current entry.
 String getEntryAlias()
           
 AddeEntry.EntrySource getEntrySource()
          Source that specified this entry.
 AddeEntry.EntryStatus getEntryStatus()
          GUI status of the entry.
 String getEntryText()
          Handy String representation of this ADDE entry.
 AddeEntry.EntryType getEntryType()
          Type of chooser this entry should appear under.
 AddeEntry.EntryValidity getEntryValidity()
          Does this entry represent a "valid" ADDE server.
 String getGroup()
          Dataset/group located on the server.
 String getName()
          Name associated with this entry.
 boolean isEntryTemporary()
           
 void setEntryAlias(String newAlias)
           
 void setEntryStatus(AddeEntry.EntryStatus newStatus)
           
 String toString()
          String representation of this entry.
 

Field Detail

DEFAULT_ACCOUNT

static final AddeAccount DEFAULT_ACCOUNT
Represents the "no accounting" entries.

Method Detail

getAddress

String getAddress()
Address of the server associated with the current entry. LocalAddeEntrys will return localhost.


getGroup

String getGroup()
Dataset/group located on the server.


getName

String getName()
Name associated with this entry.

Returns:
Name associated with this entry.

getAccount

AddeAccount getAccount()
Accounting information associated with the current entry. If the server does not require accounting information, this method returns DEFAULT_ACCOUNT.

Returns:
ADDE account object.

getEntryType

AddeEntry.EntryType getEntryType()
Type of chooser this entry should appear under.

Returns:
The "type" of data associated with this entry.

getEntryValidity

AddeEntry.EntryValidity getEntryValidity()
Does this entry represent a "valid" ADDE server.

Returns:
Whether or not this entry has been validated.

getEntrySource

AddeEntry.EntrySource getEntrySource()
Source that specified this entry. For example; allows you to distinguish "system" entries (which cannot be removed, only disabled) from entries created by the user (full control).


getEntryStatus

AddeEntry.EntryStatus getEntryStatus()
GUI status of the entry. Differs from AddeEntry.EntryValidity in that EntryStatus controls this entry showing up in a chooser and has nothing to do with whether or not the entry is a valid ADDE server.


getEntryText

String getEntryText()
Handy String representation of this ADDE entry. Currently looks like ADDRESS/GROUP, but this is subject to change.


setEntryStatus

void setEntryStatus(AddeEntry.EntryStatus newStatus)

getEntryAlias

String getEntryAlias()

setEntryAlias

void setEntryAlias(String newAlias)

isEntryTemporary

boolean isEntryTemporary()

asStringId

String asStringId()
Currently used as a identifier for convenient storage by the server manager.


toString

String toString()
String representation of this entry.

Overrides:
toString in class Object