Version: 1.1.1

org.biomoby.shared.data
Class MobyProvisionInfo

java.lang.Object
  extended by org.biomoby.shared.data.MobyProvisionInfo

public class MobyProvisionInfo
extends Object

Class to hold data corresponginf to the MOBY PIB.


Constructor Summary
MobyProvisionInfo()
          Creates a blank provision information object.
MobyProvisionInfo(Element e)
          Builds a provision information block from an XML fragment ("ProvisionInformation", as represented by a DOM node).
 
Method Summary
 String format(int indent)
           
 String getComment()
           
 String getDBComment()
           
 String getDBName()
           
 String getDBVersion()
           
 String getSoftwareComment()
          A human readable message about the software used to generate the object.
 String getSoftwareName()
           
 String getSoftwareVersion()
           
 void setComment(String comment)
          This is a general comment about the provision of the object, some human readable message.
 void setDBComment(String comment)
           
 void setDBName(String name)
           
 void setDBVersion(String version)
           
 void setSoftwareComment(String comment)
           
 void setSoftwareName(String name)
           
 void setSoftwareVersion(String version)
           
 String toString()
           
 String toXML()
          This method formats the available information into an XML format suitable for inclusion in a MOBY Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobyProvisionInfo

public MobyProvisionInfo()
Creates a blank provision information object.


MobyProvisionInfo

public MobyProvisionInfo(Element e)
Builds a provision information block from an XML fragment ("ProvisionInformation", as represented by a DOM node).

Method Detail

setSoftwareName

public void setSoftwareName(String name)

getSoftwareName

public String getSoftwareName()

setSoftwareVersion

public void setSoftwareVersion(String version)

getSoftwareVersion

public String getSoftwareVersion()

setSoftwareComment

public void setSoftwareComment(String comment)

getSoftwareComment

public String getSoftwareComment()
A human readable message about the software used to generate the object.


setDBName

public void setDBName(String name)

getDBName

public String getDBName()

setDBVersion

public void setDBVersion(String version)

getDBVersion

public String getDBVersion()

setDBComment

public void setDBComment(String comment)

getDBComment

public String getDBComment()

setComment

public void setComment(String comment)
This is a general comment about the provision of the object, some human readable message.


getComment

public String getComment()

toXML

public String toXML()
This method formats the available information into an XML format suitable for inclusion in a MOBY Object. If all fields are null, an empty string is returned (the MOBY-S API specifies that a ProvisionInformation block must contain at least one child tag).


toString

public String toString()
Overrides:
toString in class Object

format

public String format(int indent)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010