uk.org.ogsadai.client.toolkit.properties
Class DataResourceInfo

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.properties.DataResourceInfo

public class DataResourceInfo
extends java.lang.Object

Information on a data resource exposed by a data service resource.

Author:
The OGSA-DAI Team.

Field Summary
private static?java.lang.String COPYRIGHT_NOTICE
??????????Copyright statement
private ?java.lang.String mName
??????????Data resource product name
private ?java.lang.String mVendor
??????????Data resource product vendor
private ?java.lang.String mVersion
??????????Data resource product version
?
Constructor Summary
private DataResourceInfo(java.lang.String?name, java.lang.String?vendor, java.lang.String?version)
??????????Create new object with given values.
?
Method Summary
static?DataResourceInfo createFromProperty(Property?property)
??????????Creates a DataResourceInfo object from a property holding a value representing this information.
?java.lang.String getName()
??????????Gets the data resource name
?java.lang.String getVendor()
??????????Gets the data resource vendor
?java.lang.String getVersion()
??????????Gets the data resource version
?
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
?

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mName

private java.lang.String mName
Data resource product name


mVendor

private java.lang.String mVendor
Data resource product vendor


mVersion

private java.lang.String mVersion
Data resource product version

Constructor Detail

DataResourceInfo

private DataResourceInfo(java.lang.String?name,
                         java.lang.String?vendor,
                         java.lang.String?version)
Create new object with given values.

Parameters:
name - Product name
vendor - Product vendor
version - Product version
Method Detail

getName

public java.lang.String getName()
Gets the data resource name

Returns:
name

getVendor

public java.lang.String getVendor()
Gets the data resource vendor

Returns:
vendor

getVersion

public java.lang.String getVersion()
Gets the data resource version

Returns:
version

createFromProperty

public static DataResourceInfo createFromProperty(Property?property)
                                           throws DataFormatException
Creates a DataResourceInfo 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 data resource information as provided by a data service resource.

Parameters:
property - Property holding data resource information from data service resource.
Returns:
the DataResourceInfo corresponding to the information in the property.
Throws:
DataFormatException - If the value of the property cannot be parsed into data resource information.