/** * Gets the MatchingRule name for this AttributeType used for Ordering matching. * * @return the Ordering matching rule name */ public String getOrderingName() { if ( ordering != null ) { return ordering.getName(); } else { return orderingOid; } }
/** * Gets the Equality Name for this AttributeType's values. * * @return the value Equality's Name */ public String getEqualityName() { if ( equality != null ) { return equality.getName(); } else { return equalityOid; } }
/** * Gets the MatchingRule name for this AttributeType used for Substring matching. * * @return the Substring matching rule name */ public String getSubstringName() { if ( substring != null ) { return substring.getName(); } else { return substringOid; } }
/** * Update the associated Comparator, even if the SchemaObject is readOnly * * @param oid The LdapComparator */ public void updateLdapComparator( LdapComparator<?> ldapComparator ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } this.ldapComparator = ( LdapComparator<? super Object> ) ldapComparator; }
/** * Update the associated Normalizer, even if the SchemaObject is readOnly * * @param oid The Normalizer */ public void updateNormalizer( Normalizer normalizer ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } this.normalizer = normalizer; }
/** * Sets the Normalizer * * @param oid The Normalizer */ public void setNormalizer( Normalizer normalizer ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } if ( !isReadOnly ) { this.normalizer = normalizer; } }
/** * Sets the Syntax's OID * * @param oid The Syntax's OID */ public void setSyntaxOid( String oid ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } if ( !isReadOnly ) { this.ldapSyntaxOid = oid; } }
/** * Sets the LdapComparator * * @param oid The LdapComparator */ public void setLdapComparator( LdapComparator<?> ldapComparator ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } if ( !isReadOnly ) { this.ldapComparator = ( LdapComparator<? super Object> ) ldapComparator; } }
/** * Update the associated Syntax, even if the SchemaObject is readOnly * * @param oid The Syntax */ public void updateSyntax( LdapSyntax ldapSyntax ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } this.ldapSyntax = ldapSyntax; this.ldapSyntaxOid = ldapSyntax.getOid(); }
/** * Sets the Syntax * * @param oid The Syntax */ public void setSyntax( LdapSyntax ldapSyntax ) { if ( locked ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_04441, getName() ) ); } if ( !isReadOnly ) { this.ldapSyntax = ldapSyntax; this.ldapSyntaxOid = ldapSyntax.getOid(); } }
public void register( String schema, MatchingRule dITContentRule ) throws NamingException { if ( byOid.containsKey( dITContentRule.getOid() ) || bootstrap.hasMatchingRule( dITContentRule.getOid() ) ) { NamingException e = new NamingException( "dITContentRule w/ OID " + dITContentRule.getOid() + " has already been registered!" ); monitor.registerFailed( dITContentRule, e ); throw e; } oidRegistry.register( dITContentRule.getName(), dITContentRule.getOid() ); byOid.put( dITContentRule.getOid(), dITContentRule ); oidToSchema.put( dITContentRule.getOid(), schema ); monitor.registered( dITContentRule ); }
errors.add( new NullPointerException( "matchingRule " + mr.getName() + " in schema " + schema + " with OID " + mr.getOid() + " has a null comparator" ) ); isSuccess = false; errors.add( new NullPointerException( "matchingRule " + mr.getName() + " in schema " + schema + " with OID " + mr.getOid() + " has a null normalizer" ) ); isSuccess = false; errors.add( new NullPointerException( "matchingRule " + mr.getName() + " in schema " + schema + " with OID " + mr.getOid() + " has a null Syntax" ) ); isSuccess = false;
errors.add( new NullPointerException( "matchingRule " + mr.getName() + " in schema " + schema + " with OID " + mr.getOid() + " has a null comparator" ) ); isSuccess = false; errors.add( new NullPointerException( "matchingRule " + mr.getName() + " in schema " + schema + " with OID " + mr.getOid() + " has a null normalizer" ) ); isSuccess = false; errors.add( new NullPointerException( "matchingRule " + mr.getName() + " in schema " + schema + " with OID " + mr.getOid() + " has a null Syntax" ) ); isSuccess = false;