Class 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 the XMLBuilder 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 the Attributes 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Version

        public Version()
    • 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 the XMLBuilder construction.
        Parameters:
        xml - The XMLBuilder.
      • 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 the Attributes collection in SAX parsing. If the attribute is absent, an empty String is returned.
        Parameters:
        attrs - Attributes collection.
        Returns:
        the build version.