|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.discovery.Services
public class Services
A type-safe collection of services which implement the
RemoteServiceInterface
interface.
Constructor Summary | |
---|---|
Services()
Default constructor that initializes this collection with no services. |
|
Services(Services services)
Constructor that initializes this collection with the specified services. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object object)
Adds a RemoteServiceInterface object to this collection. |
boolean |
add(RemoteServiceInterface service)
Adds a RemoteServiceInterface object to this collection. |
boolean |
addAll(Services services)
Adds all of the services to this collection. |
java.util.Collection |
getCollection()
Gets the collection of services. |
java.util.Iterator |
iterator()
Gets an iterator for the services. |
boolean |
remove(RemoteServiceInterface service)
Removes a RemoteServiceInterface object from this
collection. |
boolean |
removeAll(Services services)
Removes all of the services from this collection. |
void |
setCollection(java.util.Collection collection)
Gets the collection of services. |
int |
size()
Gets the number of services in the collection. |
Constructor Detail |
---|
public Services()
public Services(Services services) throws java.lang.IllegalArgumentException
services
- Services to add to this collection.
java.lang.IllegalArgumentException
- if a null
services parameter is specified.Method Detail |
---|
public final boolean add(java.lang.Object object)
RemoteServiceInterface
object to this collection.
If the object already exists in this collection, then the collection
is not updated. A null
parameter is also disregarded.
object
- An implementation of a
RemoteServiceInterface
.
true
if the service was added or
false
if it wasn't.public final boolean add(RemoteServiceInterface service)
RemoteServiceInterface
object to this collection.
If the object already exists in this collection, then the collection
is not updated. A null
parameter is also disregarded.
service
- An implementation of a
RemoteServiceInterface
.
true
if the service was added or
false
if it wasn't.public final boolean remove(RemoteServiceInterface service)
RemoteServiceInterface
object from this
collection.
service
- An implementation of a
RemoteServiceInterface
.
true
if the collection contained the item to be
removed.public final boolean addAll(Services services)
services
- Collection of services to add to this
collection.
true
if this collection was altered,
false
if it wasn't.public final boolean removeAll(Services services)
services
- Collection of services to remove from
this collection.
true
if this collection was altered,
false
if it wasn't.public final java.util.Collection getCollection()
public final void setCollection(java.util.Collection collection)
collection
- Service collection. Each element must implement
the base service interface RemoteServiceInterface
.public final java.util.Iterator iterator()
public final int size()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |