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.String
ATT_VERSION
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addBuildAttribute(XMLBuilder xml)
Adds a build version attribute to the current element in theXMLBuilder
construction.static java.lang.String
getBuild()
static java.lang.String
getBuild(org.w3c.dom.Document doc)
This retrieves the version from a DOM.static java.lang.String
getBuild(org.xml.sax.Attributes attrs)
Retrieves the version from theAttributes
collection in SAX parsing.static void
setBuildAttribute(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 theXMLBuilder
construction.- 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 theAttributes
collection in SAX parsing. If the attribute is absent, an empty String is returned.- Parameters:
attrs
-Attributes
collection.- Returns:
- the build version.
-
-