FileDocCategorySizeDatePackage
NoOpAttributeNameMapper.javaAPI DocGlassfish v2 API3650Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx

NoOpAttributeNameMapper

public final class NoOpAttributeNameMapper extends Object implements AttributeNameMapper
A mapper that maps every name to itself.

Fields Summary
final Set
mAttributeSet
Constructors Summary
public NoOpAttributeNameMapper(String[] originalNames)
Create a new instance which will map (as necessary) the specified Attribute names. Same as AttributeNameMapperImpl( attributeNames, new AttributeNameManglerImpl() )

		mAttributeSet	= GSetUtil.newStringSet( originalNames );
	
Methods Summary
public voidaddMapping(java.lang.String originalName, java.lang.String derivedName)

		if ( ! originalName.equals( derivedName ) )
		{
			throw new IllegalArgumentException( derivedName );
		}
		
		mAttributeSet.add( originalName );
	
public voidderiveAll(java.lang.String[] originalNames)

		GSetUtil.addArray( mAttributeSet, originalNames );
	
public java.lang.StringderivedToOriginal(java.lang.String derivedName)

		return( derivedName );
	
public voiddontMap(java.lang.String originalName)

		addMapping( originalName, originalName );
	
public java.util.SetgetAttributeNames()

		return( Collections.unmodifiableSet( mAttributeSet ) );
	
public java.lang.StringmatchName(java.lang.String derivedName, java.lang.String[] candidates)

	    throw new UnsupportedOperationException( "matchName" );
	
public java.lang.StringoriginalToDerived(java.lang.String originalName)

		return( originalName );
	
public booleanrequiresMapping(java.lang.String originalName)

		return( false );