com.sun.appserv.management.util.jmx
Class AttributeNameManglerImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeNameManglerImpl
public AttributeNameManglerImpl(boolean capitalizeFirstLetter,
Map<String,String> overrides)
- Parameters:
capitalizeFirstLetter
- true if first letter should be capitalizedoverrides
- explicit mappings from the original to a result
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
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.