org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class ResourceKeyUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ResourceKeyUtils

public class ResourceKeyUtils
extends java.lang.Object

Utilities for dealing with Resource Keys


Constructor Summary
ResourceKeyUtils()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.String> convertResourceKeyMap(java.util.Map<java.lang.String,java.lang.String> original, java.lang.String fromComponent, java.lang.String toComponent)
          Replaces all the resource key aliases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceKeyUtils

public ResourceKeyUtils()
Method Detail

convertResourceKeyMap

public static java.util.Map<java.lang.String,java.lang.String> convertResourceKeyMap(java.util.Map<java.lang.String,java.lang.String> original,
                                                                                     java.lang.String fromComponent,
                                                                                     java.lang.String toComponent)
Replaces all the resource key aliases. For example, this can be used to replace all af_table.styleXYZ values into af_treeTable.styleXYZ values.

Parameters:
original - the original resource key map
fromComponent - eg: table
toComponent - eg: treeTable
Returns:
A new map with the replacesment values.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.