|
|||||||||||
| ?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
| SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.properties.DAIVersion
Information on the type and version OGSA-DAI used to deploy a service.
| Field Summary | |
private static?java.lang.String |
COPYRIGHT_NOTICE??????????Copyright statement |
private ?int |
mMajorVersion??????????Major version number |
private ?int |
mMinorVersion??????????Minor version number |
private ?ServiceType |
mServiceType??????????OGSA-DAI service type as provided by a service |
private ?java.lang.String |
mTypeAndVersion??????????Type and version as a string |
| Constructor Summary | |
DAIVersion(java.lang.String?typeAndVersion)??????????Constructor - extracts service type and version information from a string. |
|
| Method Summary | |
static?DAIVersion |
createFromProperty(Property?property)??????????Creates a DAIVersion object from a property holding a value representing this information. |
?int |
getMajorVersion()??????????Return major version (for example, for 2.1 this is 2). |
?int |
getMinorVersion()??????????Return minor version (for example, for 2.1 this is 1). |
?ServiceType |
getServiceType()??????????Return service type. |
?java.lang.String |
toString()??????????Return service type and version in string of form OGSA-DAI PLATFORM MAJOR.MINOR
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private ServiceType mServiceType
private java.lang.String mTypeAndVersion
private int mMinorVersion
private int mMajorVersion
| Constructor Detail |
public DAIVersion(java.lang.String?typeAndVersion)
The string is assumed to be of form: OGSA-DAI PLATFORM MAJOR.MINOR where
PLATFORM is one of WSI or where WSRF. If this is not the case then the version is deemed to be unknown.MAJOR is a positive integer. If not provided then a default of 0 is assumed.MINOR is a positive integer. If not provided then a default of 0 is assumed.typeAndVersion - String holding service type and vrsion information.| Method Detail |
public int getMinorVersion()
public int getMajorVersion()
public java.lang.String toString()
OGSA-DAI PLATFORM MAJOR.MINOR
toString in class java.lang.Object
public ServiceType getServiceType()
public static DAIVersion createFromProperty(Property?property)
throws DataFormatException
DAIVersion object from a property holding a value representing this information.
The property's getValue method is assumed to return an org.w3c.dom.Element representing the service type and version information as provided by a data service resource.
property - Property holding data type and version information from data service resource.DataResourceInfo corresponding to the information in the property.DataFormatException - If the value of the property cannot be parsed into service type and version information.
|
|||||||||||
| ?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
| SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD | ||||||||||