/** * Sets the name of the tag * * @param name the name to set */ public void setName( String name ) { this.name = Strings.toLowerCaseAscii( name ); }
/** * {@inheritDoc} */ @Override public boolean containsKey( Object key ) { return super.containsKey( Strings.toLowerCaseAscii( ( String ) key ) ); }
/** * @param id The id to set * @param value The value to set */ public void put( String id, String value ) { attributes.put( Strings.toLowerCaseAscii( id ), value ); } }
/** * {@inheritDoc} */ @Override public boolean containsKey( Object key ) { return super.containsKey( Strings.toLowerCaseAscii( ( String ) key ) ); }
/** * {@inheritDoc} */ @Override public Schema getSchema( String schemaName ) { return schemaMap.get( Strings.toLowerCaseAscii( schemaName ) ); }
/** * {@inheritDoc} */ @Override public Schema remove( Object key ) { return super.remove( Strings.toLowerCaseAscii( ( String ) key ) ); }
/** * {@inheritDoc} */ @Override public Schema remove( Object key ) { return super.remove( Strings.toLowerCaseAscii( ( String ) key ) ); }
/** * {@inheritDoc} */ @Override public boolean containsKey( Object key ) { return super.containsKey( Strings.toLowerCaseAscii( ( String ) key ) ); }
/** * Checks to see if a particular Schema is loaded. * * @param schemaName the name of the Schema to check * @return true if the Schema is loaded, false otherwise */ public boolean isSchemaLoaded( String schemaName ) { return loadedSchemas.containsKey( Strings.toLowerCaseAscii( schemaName ) ); }
/** * {@inheritDoc} */ @Override public boolean contains( String oid ) { if ( !byName.containsKey( oid ) ) { return byName.containsKey( Strings.toLowerCaseAscii( oid ) ); } return true; }
/** * {@inheritDoc} */ @Override public void putAll( Map<? extends String, ? extends Schema> map ) { for ( Map.Entry<? extends String, ? extends Schema> e : map.entrySet() ) { super.put( Strings.toLowerCaseAscii( e.getKey() ), e.getValue() ); } } }
/** * {@inheritDoc} */ @Override public void putAll( Map<? extends String, ? extends Schema> map ) { for ( Map.Entry<? extends String, ? extends Schema> e : map.entrySet() ) { super.put( Strings.toLowerCaseAscii( e.getKey() ), e.getValue() ); } } }
/** * Creates an instance of AdministrativeRole * * @param role The role's name */ AdministrativeRole( String role ) { this.role = Strings.toLowerCaseAscii( Strings.trim( role ) ); }
/** * {@inheritDoc} */ @Override public void removeSchema( Schema schema ) { schemaMap.remove( Strings.toLowerCaseAscii( schema.getSchemaName() ) ); }
/** * Merely adds the schema to the set of loaded schemas. Does not * actually do any work to add schema objects to registries. * * {@inheritDoc} */ @Override public void schemaLoaded( Schema schema ) { this.loadedSchemas.put( Strings.toLowerCaseAscii( schema.getSchemaName() ), schema ); }
/** * Creates an instance of AdministrativeRole * * @param role The role's name */ AdministrativeRole( String role ) { this.role = Strings.toLowerCaseAscii( Strings.trim( role ) ); }
/** * Merely adds the schema to the set of loaded schemas. Does not * actually do any work to add schema objects to registries. * * {@inheritDoc} */ @Override public void schemaLoaded( Schema schema ) { this.loadedSchemas.put( Strings.toLowerCaseAscii( schema.getSchemaName() ), schema ); }
/** * {@inheritDoc} */ @Override public ObjectClass lookupObjectClassRegistry( String oid ) throws LdapException { return registries.getObjectClassRegistry().lookup( Strings.toLowerCaseAscii( oid ).trim() ); }
/** * {@inheritDoc} */ @Override public MatchingRule lookupMatchingRuleRegistry( String oid ) throws LdapException { return registries.getMatchingRuleRegistry().lookup( Strings.toLowerCaseAscii( oid ).trim() ); }
/** * {@inheritDoc} */ @Override public LdapSyntax lookupLdapSyntaxRegistry( String oid ) throws LdapException { return registries.getLdapSyntaxRegistry().lookup( Strings.toLowerCaseAscii( oid ).trim() ); }