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

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

public class ActivityMetaData
extends java.lang.Object

Description of an activity supported 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 mDescription
??????????Activity description
private ?java.lang.String mName
??????????Activity name
?
Constructor Summary
private ActivityMetaData(org.w3c.dom.Element?element)
??????????Creates an ActivityMetaData object from an org.w3c.dom.Element XML fragment.
?
Method Summary
static?ActivityMetaData[] createFromProperty(Property?property)
??????????Creates an array of ActivityMetaData objects from a property holding a value representing activity meta data.
?java.lang.String getDescription()
??????????Gets the description of the activity
?java.lang.String getName()
??????????Gets the name of the activity
?java.lang.String toString()
??????????Gets a string representation of the object.
?
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
Activity name


mDescription

private java.lang.String mDescription
Activity description

Constructor Detail

ActivityMetaData

private ActivityMetaData(org.w3c.dom.Element?element)
Creates an ActivityMetaData object from an org.w3c.dom.Element XML fragment.

The property's getValue method is assumed to return an org.w3c.dom.Element representing the request status as provided by a data service resource.

Parameters:
element - XML fragment holding activity meta data.
Method Detail

getName

public java.lang.String getName()
Gets the name of the activity

Returns:
name

getDescription

public java.lang.String getDescription()
Gets the description of the activity

Returns:
description

toString

public java.lang.String toString()
Gets a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string of form [ActivityMetaData:NAME]

createFromProperty

public static ActivityMetaData[] createFromProperty(Property?property)
                                             throws DataFormatException
Creates an array of ActivityMetaData objects from a property holding a value representing activity meta data.

The property's getValue method is assumed to return an org.w3c.dom.Element representing the activity meta data as provided by a data service resource.

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