|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.StarTeamCollection
com.starteam.ServerInfoCollection
public final class ServerInfoCollection
Collection of Server configuration parameters
| Constructor Summary | |
|---|---|
ServerInfoCollection()
Start with an empty server info collection |
|
ServerInfoCollection(java.io.File file)
Loads the server list from the specified file. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Adds the specified ServerInfo to this ServerList. |
ServerInfo |
find(java.lang.String description)
Find a ServerInfo by description. |
static java.io.File |
getDefaultFile()
The default location that StarTeam applications should use for the server list. |
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present |
void |
saveTo(java.io.File file)
Writes the server list out to the specified file. |
| Methods inherited from class com.starteam.StarTeamCollection |
|---|
addAll, addAll, addTo, attach, clear, contains, containsAll, detach, get, getSyncRoot, indexOf, insert, isEmpty, isFixedSize, isModified, isReadOnly, isSynchronized, iterator, positionOf, removeAll, removeAt, resetCapacity, retainAll, set, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ServerInfoCollection()
public ServerInfoCollection(java.io.File file)
throws java.io.IOException
file - the from which to load the server list.
java.io.IOException| Method Detail |
|---|
public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in class StarTeamCollectiono - serverinfo instance
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in class StarTeamCollectiono - the server info to add (cannot be null)
DuplicateServerListEntryException - if the list already contains an entry with the same name
(case-insensitive)public ServerInfo find(java.lang.String description)
description - the description to match
public static java.io.File getDefaultFile()
throws java.io.IOException
java.io.IOException
public void saveTo(java.io.File file)
throws java.io.IOException
file - the file to save the list to
java.io.IOException - if an error occurs writing to the file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||