|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.discovery.ServiceTypes
public class ServiceTypes
Service capabilities expressed in terms of the Java interface(s) and/or classes.
Serializable
,
Serialized FormConstructor Summary | |
---|---|
ServiceTypes()
Constructs a default instance. |
|
ServiceTypes(java.lang.Class classOrInterface)
Constructs an instance that specifies a class or interface. |
|
ServiceTypes(java.lang.Class[] classesOrInterfaces)
Constructs an instance that specifies one or more Java classes used to define a service capability. |
Method Summary | |
---|---|
void |
add(java.lang.Class svcCapability)
Adds a service capability definition. |
boolean |
areSatisfiedBy(RemoteServiceInterface serviceIf)
Determines whether or not the service provider satisfies all of the service capabilities. |
void |
clear()
Clears all class(es) and interface(es) associated with this service capability definition. |
boolean |
contains(ServiceTypes requiredClassesOrInterfaces)
Determines whether or not this service capability definition contains all of the required class/interface service capabilities. |
java.lang.Class[] |
getClasses()
Gets the classes and/or interfaces that express the capabilities of a service. |
java.util.Iterator |
iteratorClasses()
Gets an iterator of the class and super classes, if any, defining the service capability. |
java.util.Iterator |
iteratorInterfaces()
Gets an iterator or the class interfaces that define the service capability. |
void |
setClass(java.lang.Class classOrInterface)
Determines the interfaces and classes that define the specified class/interface and appends them to the collections of interfaces and classes. |
void |
setClasses(java.lang.Class[] classesOrInterfaces)
Determines the interfaces and classes that define the specified classes and interfaces. |
java.lang.String |
toString()
Gets a string representation of this instance. |
Constructor Detail |
---|
public ServiceTypes()
public ServiceTypes(java.lang.Class[] classesOrInterfaces)
classesOrInterfaces
- Class(es) that define one or more service
capabilities.public ServiceTypes(java.lang.Class classOrInterface)
classOrInterface
- A class that defines a service capability.Method Detail |
---|
public java.util.Iterator iteratorClasses()
Class
.public java.util.Iterator iteratorInterfaces()
Class
.public final void setClass(java.lang.Class classOrInterface)
classOrInterface
- A class that defines a service capability.public final void setClasses(java.lang.Class[] classesOrInterfaces)
classesOrInterfaces
- Classes that define one or more service
capabilities.public final java.lang.Class[] getClasses()
public final void clear()
public boolean contains(ServiceTypes requiredClassesOrInterfaces)
requiredClassesOrInterfaces
- Required service capabilities.
true
if this service capability satisfies all
of the required service capabilities.public final boolean areSatisfiedBy(RemoteServiceInterface serviceIf)
serviceIf
- An object that implements the
RemoteServiceInterface
which will
be tested to determine if it satisfies all of the
specified service capabilities.
true
if all of the service capabilities are
satisfied, false
if one or more capabilities aren't
satisfied.public void add(java.lang.Class svcCapability)
svcCapability
- A Class defining a service capability to add to the
overall service capability definition.public final java.lang.String toString()
toString
in class java.lang.Object
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |