Class ComponentUtil

java.lang.Object
com.webmethods.portal.system.ComponentUtil

public class ComponentUtil extends Object
Some helper methods when working with IComponent objects
  • Constructor Details

    • ComponentUtil

      public ComponentUtil()
  • Method Details

    • constructComponentKey

      public static String constructComponentKey(String name, String type)
      Constructs a key from the name and the type. Internally to prevent name collisions in the handler table for a component provider we might key off of both the name and the type. This method determines that key.
      Parameters:
      name - the value of the name attribute
      type - the value of the type attribute, or null if not available
      Returns:
      a key that represents the name and type for locating the IComponent in the table
    • constructComponentKey

      public static String constructComponentKey(Element configElem)
      Constructs the handler key name based on the information in the given handler configuration element.
      Parameters:
      configElem - the configuration element associated with the handler
      Returns:
      a key that represents the data
      See Also:
    • getComponentClassName

      public static String getComponentClassName(Element configElem)
      Returns component class name as specified in the configuration XML Element
      Parameters:
      configElem - source Element with component configuration
      Returns:
    • constructComponentKey

      public static String constructComponentKey(Map<?,?> properties)
      Constructs the handler key name based on the information in the given handler configuration element.
      Parameters:
      properties - the configuration associated with the handler
      Returns:
      a key that represents the data
      See Also:
    • constructComponentKey

      public static String constructComponentKey(IComponent component)
      Taking a default component construct a key
      Parameters:
      component -
      Returns: