com.ibm.commerce.pagelayout.facade.client.util

Class PageLayoutUtil

  • java.lang.Object
    • com.ibm.commerce.pagelayout.facade.client.util.PageLayoutUtil


  • public class PageLayoutUtil
    extends java.lang.Object
    Utility class for Page Layout Component.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PageLayoutUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String constructXPathParams(java.lang.String xPathParamTemplate, java.util.Collection<java.lang.String> paramValues)
      This method constructs XPath parameters for the given multiple parameter values using the given XPath parameter template.
      static java.lang.String escapeSingleQuotes(java.lang.String strInput)
      Escape the single quote characters by replacing each single quote with two single quotes.
      • Methods inherited from class java.lang.Object

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

      • PageLayoutUtil

        public PageLayoutUtil()
    • Method Detail

      • constructXPathParams

        public static java.lang.String constructXPathParams(java.lang.String xPathParamTemplate,
                                                            java.util.Collection<java.lang.String> paramValues)
        This method constructs XPath parameters for the given multiple parameter values using the given XPath parameter template. It delimits multiple XPath parameters with an " or ".
        Parameters:
        xPathParamTemplate - The given XPath parameter template, e.g. @deviceClass=''{0}''. This method uses MessageFormat.format(String, Object...) to substitute the parameter value. Hence the template has to be in a format supported by MessageFormat.
        paramValues - The collection of parameter values.
        Returns:
        The constructed string of XPath parameters, e.g. "@deviceClass='Mobile' or @deviceClass='Web' or @deviceClass='Any'"
      • escapeSingleQuotes

        public static java.lang.String escapeSingleQuotes(java.lang.String strInput)
        Escape the single quote characters by replacing each single quote with two single quotes.
        Parameters:
        strInput - input string
        Returns:
        a string with single quote characters escaped