public class

Version

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.Version

Summary

Constants
String ATT_VERSION
Public Constructors
Version()
Public Methods
static void addBuildAttribute(XMLBuilder xml)
Adds a build version attribute to the current element in the XMLBuilder construction.
static String getBuild(Attributes attrs)
Retrieves the version from the org.xml.sax.Attributes collection in SAX parsing.
static String getBuild(Document doc)
This retrieves the version from a DOM.
static String getBuild()
static void setBuildAttribute(Document doc)
Adds the build version attribute to the root element of the given document.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ATT_VERSION

Constant Value: "version"

Public Constructors

public Version ()

Public Methods

public static void addBuildAttribute (XMLBuilder xml)

Adds a build version attribute to the current element in the XMLBuilder construction.

Parameters
xml The XMLBuilder.

public static String getBuild (Attributes attrs)

Retrieves the version from the org.xml.sax.Attributes collection in SAX parsing. If the attribute is absent, an empty String is returned.

Parameters
attrs org.xml.sax.Attributes collection.
Returns
  • the build version.

public static String getBuild (Document doc)

This retrieves the version from a DOM. If the attribute is absent, an empty String is returned.

Parameters
doc The DOM document.
Returns
  • the build version.

public static String getBuild ()

Returns
  • the build version.

public static void setBuildAttribute (Document doc)

Adds the build version attribute to the root element of the given document.

Parameters
doc Document whose root element will be version stamped.