|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.client.toolkit.ServiceType
A class representing the type of a service - OGSA-DAI WSI, OGSA-DAI WSRF or unknown.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mType
Current type as a string |
static ServiceType |
UNKNOWN
Unknown service |
private static java.lang.String |
UNKNOWN_STRING
String used to represent unknown services. |
static ServiceType |
WSI
OGSA-DAI WSI service |
private static java.lang.String |
WSI_STRING
String used to represent OGSA-DAI WSI services. |
static ServiceType |
WSRF
OGSA-DAI WSRF service |
private static java.lang.String |
WSRF_STRING
String used to represent OGSA-DAI WSRF services. |
Constructor Summary | |
private |
ServiceType(java.lang.String type)
Create a ServiceType of the specified type. |
Method Summary | |
java.lang.String |
getAsString()
Return the service type as a string - either wsi
or wsrf or unknown . |
boolean |
isUnknown()
Is the current type unknown? |
boolean |
isWSI()
Is the current type OGSA-DAI WSI? |
boolean |
isWSRF()
Is the current type OGSA-DAI WSRF? |
void |
setType(java.lang.String type)
Set the service type. |
void |
setUnknown()
Set the service type to be unknown |
void |
setWSI()
Set the service type to be OGSA-DAI WSI |
void |
setWSRF()
Set the service type to be OGSA-DAI WSRF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final java.lang.String WSI_STRING
private static final java.lang.String WSRF_STRING
private static final java.lang.String UNKNOWN_STRING
public static final ServiceType WSI
public static final ServiceType WSRF
public static final ServiceType UNKNOWN
private java.lang.String mType
Constructor Detail |
private ServiceType(java.lang.String type)
ServiceType
of the specified type.
type
- Type of service. Must be one of
ServiceType.WSI_STRING
,
ServiceType.WSRF_STRING
or
ServiceType.UNKNOWN_STRING
.
java.lang.IllegalArgumentException
- if type
is none of the three values above.Method Detail |
public void setType(java.lang.String type)
type
- Type of service. Must be one of
ServiceType.WSI_STRING
,
ServiceType.WSRF_STRING
or
ServiceType.UNKNOWN_STRING
.
java.lang.IllegalArgumentException
- if type
is none of the three values above.public void setWSI()
public void setWSRF()
public void setUnknown()
public boolean isWSI()
true
if so else false
.public boolean isWSRF()
true
if so else false
.public boolean isUnknown()
true
if so else false
.public java.lang.String getAsString()
wsi
or wsrf
or unknown
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |