edu.ucsb.nceas.metacat
Class MetacatVersion

java.lang.Object
  extended by edu.ucsb.nceas.metacat.Version
      extended by edu.ucsb.nceas.metacat.MetacatVersion
All Implemented Interfaces:
java.lang.Comparable<Version>

public class MetacatVersion
extends Version

Author:
jones Version represents the current version information for this Metacat instance.

Field Summary
 
Fields inherited from class edu.ucsb.nceas.metacat.Version
allowedVersionLevels, subversions, versionString
 
Constructor Summary
MetacatVersion(java.lang.String versionID)
           
 
Method Summary
static java.lang.String getVersionAsXml()
          Get the version number in an XML document.
static java.lang.String getVersionID()
          Get the current version string for this metacat instance.
 
Methods inherited from class edu.ucsb.nceas.metacat.Version
compareTo, getSubversion, getVersionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetacatVersion

public MetacatVersion(java.lang.String versionID)
Method Detail

getVersionID

public static java.lang.String getVersionID()
                                     throws edu.ucsb.nceas.utilities.PropertyNotFoundException
Get the current version string for this metacat instance. It is currently stored in the metacat.properties file.

Returns:
a string indicating the version of Metacat running
Throws:
edu.ucsb.nceas.utilities.PropertyNotFoundException

getVersionAsXml

public static java.lang.String getVersionAsXml()
                                        throws edu.ucsb.nceas.utilities.PropertyNotFoundException
Get the version number in an XML document.

Returns:
the version wrapped in an XML document
Throws:
edu.ucsb.nceas.utilities.PropertyNotFoundException


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.