Java EE 5 SDK

com.sun.appserv.management.util.jmx
Class AttributeNameManglerImpl

java.lang.Object
  extended by com.sun.appserv.management.util.jmx.AttributeNameManglerImpl
All Implemented Interfaces:
AttributeNameMangler

public class AttributeNameManglerImpl
extends Object
implements AttributeNameMangler

Implements the mapping by removing illegal characters and attempting to camel-case a following alphabetic character. Optionally capitalizes the first letter


Constructor Summary
AttributeNameManglerImpl(boolean capitalizeFirstLetter, Map<String,String> overrides)
           
 
Method Summary
 String mangleAttributeName(String attributeName)
          Return a legal java identifier corresponding to the Attribute name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeNameManglerImpl

public AttributeNameManglerImpl(boolean capitalizeFirstLetter,
                                Map<String,String> overrides)
Parameters:
capitalizeFirstLetter - true if first letter should be capitalized
overrides - explicit mappings from the original to a result
Method Detail

mangleAttributeName

public String mangleAttributeName(String attributeName)
Description copied from interface: AttributeNameMangler
Return a legal java identifier corresponding to the Attribute name. For names that are already legal, it is advised to not alter them, but not required to do so.

Specified by:
mangleAttributeName in interface AttributeNameMangler
Parameters:
attributeName - Attribute name
Returns:
legal Java identifier

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.