uk.ac.ncl.cs.instantsoap.wsapi
Class MetaData

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.wsapi.MetaData

public class MetaData
extends Object

Information describing an application, an input or output, or other entities.

Fully-configured instances of MetaData must have a non-null name property. It is strongly encouraged that they should have non-null description properties. The semanticAnnotation may be null.

The semantic annotation is an application-specific Object. We encourage you to use a DOM or String encoding an RDF or OWL document. This object is not coppied or cloned, so you must manage alterations to it carefully.

Author:
Matthew Pocock

Constructor Summary
MetaData()
          Create a new instance with null values for all properties.
MetaData(String name)
          Create a new instance with the given name.
MetaData(String name, String description)
          Create a new instance with the given name and description.
MetaData(String name, String description, Object semanticAnnotation)
          Create a new instance with the given name, description and semantic annotation.
 
Method Summary
 boolean equals(Object o)
           
 String getDescription()
          Get the description attribute.
 String getName()
          Get the name attribute.
 Object getSemanticAnnotation()
          Get the semantic annotation.
 int hashCode()
           
 void setDescription(String description)
          Set the description attribute.
 void setName(String name)
          Set the name attribute.
 void setSemanticAnnotation(Object semanticAnnotation)
          Set the semantic annotation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaData

public MetaData()
Create a new instance with null values for all properties.


MetaData

public MetaData(String name)
Create a new instance with the given name.

Parameters:
name - the name to use

MetaData

public MetaData(String name,
                String description)
Create a new instance with the given name and description.

Parameters:
name - the name to use
description - the description to use

MetaData

public MetaData(String name,
                String description,
                Object semanticAnnotation)
Create a new instance with the given name, description and semantic annotation.

Parameters:
name - the name to use
description - the description to use
semanticAnnotation - the semantic annotation Object
Method Detail

getName

public String getName()
Get the name attribute.

Returns:
the name String

setName

public void setName(String name)
Set the name attribute.

Parameters:
name - the new name String

getDescription

public String getDescription()
Get the description attribute.

Returns:
the description String

setDescription

public void setDescription(String description)
Set the description attribute.

Parameters:
description - the new description String

getSemanticAnnotation

public Object getSemanticAnnotation()
Get the semantic annotation.

Returns:
the semantic annotation Object

setSemanticAnnotation

public void setSemanticAnnotation(Object semanticAnnotation)
Set the semantic annotation.

Parameters:
semanticAnnotation - the semanticAnnotation Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008. All Rights Reserved.