public class ServerDataPersistence extends java.lang.Object implements Persistent, java.lang.Comparable<ServerDataPersistence>
es.gva.cit.catalogClient.utils.comboserver.ServerData
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENT_DESCRIPTION |
static java.lang.String |
PERSISTENT_NAME |
Constructor and Description |
---|
ServerDataPersistence() |
ServerDataPersistence(java.lang.String serviceType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(ServerData server) |
void |
add(java.lang.String server,
java.lang.String protocol) |
void |
addServerData(ServerData server)
This method adds a ServerData using the Andami persistence model.
|
int |
compareTo(ServerDataPersistence a) |
boolean |
contains(java.lang.String serverAddress) |
boolean |
existsServer(java.lang.String address)
Returns true if exists a server in this list
|
ServerData[] |
getArrayOfServerData()
This method returns an array of ServerData objects that have been saved
using the gvsig tools persistence model.
|
java.util.List<ServerData> |
getServerData() |
java.lang.String |
getServiceType() |
boolean |
isEmpty() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
remove(java.lang.String serverAddress) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setArrayOfServerData(ServerData[] servers) |
void |
setServiceType(java.lang.String serviceType) |
public static final java.lang.String PERSISTENT_NAME
public static final java.lang.String PERSISTENT_DESCRIPTION
public ServerDataPersistence(java.lang.String serviceType)
sevice
- Type Service type to loadpublic ServerDataPersistence()
public void addServerData(ServerData server)
server
- ServerDatapublic boolean existsServer(java.lang.String address)
address
- public ServerData[] getArrayOfServerData()
public java.util.List<ServerData> getServerData()
public void setArrayOfServerData(ServerData[] servers)
public java.lang.String getServiceType()
public void setServiceType(java.lang.String serviceType)
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistence()
public int compareTo(ServerDataPersistence a)
compareTo
in interface java.lang.Comparable<ServerDataPersistence>
public boolean isEmpty()
public void remove(java.lang.String serverAddress)
public void add(java.lang.String server, java.lang.String protocol)
public void add(ServerData server)
public boolean contains(java.lang.String serverAddress)