Class GssFunctions


  • public class GssFunctions
    extends java.lang.Object
    Container for common GSS functions.
    • Constructor Detail

      • GssFunctions

        public GssFunctions()
    • Method Detail

      • getFunctionMap

        public static java.util.Map<java.lang.String,​GssFunction> getFunctionMap()
        Returns:
        a map from each GSS function name to the function
      • parseBoolean

        public static boolean parseBoolean​(java.lang.String numericPart)
        Helper method to convert a numeric value of "0" or "1" into a boolean.
        Parameters:
        numericPart - The string containing the value
        Returns:
        The corresponding boolean value
      • createUrlNode

        public static CssFunctionNode createUrlNode​(java.lang.String imageUrl,
                                                    SourceCodeLocation location)
        Helper method for implementors of GssFunction to allow the creation of a url entry node in a GSS file.
        Parameters:
        imageUrl - The url of the image to add.
        location - The location in the GSS file to place the node.
        Returns:
        The node containing the url entry.
      • createUrl

        public static java.lang.String createUrl​(java.lang.String url)
        Helper method for implementors of GssFunction to allow the creation of a url string in the GSS.
        Parameters:
        url - The url of the image to add.
        Returns:
        The proper GSS url string.