Package com.microstrategy.utils
Class Version
- java.lang.Object
 - 
- com.microstrategy.utils.Version
 
 
- 
public class Version extends java.lang.Object- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATT_VERSION 
- 
Constructor Summary
Constructors Constructor Description Version() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddBuildAttribute(XMLBuilder xml)Adds a build version attribute to the current element in theXMLBuilderconstruction.static java.lang.StringgetBuild()static java.lang.StringgetBuild(org.w3c.dom.Document doc)This retrieves the version from a DOM.static java.lang.StringgetBuild(org.xml.sax.Attributes attrs)Retrieves the version from theAttributescollection in SAX parsing.static voidsetBuildAttribute(org.w3c.dom.Document doc)Adds the build version attribute to the root element of the given document. 
 - 
 
- 
- 
Field Detail
- 
ATT_VERSION
public static final java.lang.String ATT_VERSION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getBuild
public static java.lang.String getBuild()
- Returns:
 - the build version.
 
 
- 
setBuildAttribute
public static void setBuildAttribute(org.w3c.dom.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.
 
- 
addBuildAttribute
public static void addBuildAttribute(XMLBuilder xml)
Adds a build version attribute to the current element in theXMLBuilderconstruction.- Parameters:
 xml- TheXMLBuilder.
 
- 
getBuild
public static java.lang.String getBuild(org.w3c.dom.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.
 
 
- 
getBuild
public static java.lang.String getBuild(org.xml.sax.Attributes attrs)
Retrieves the version from theAttributescollection in SAX parsing. If the attribute is absent, an empty String is returned.- Parameters:
 attrs-Attributescollection.- Returns:
 - the build version.
 
 
 - 
 
 -