org.apache.directory.server.core.schema
Class MatchingRuleUseImpl

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.AbstractSchemaObject
      extended by org.apache.directory.server.core.schema.MatchingRuleUseImpl
All Implemented Interfaces:
java.io.Serializable, org.apache.directory.shared.ldap.schema.MatchingRuleUse, org.apache.directory.shared.ldap.schema.MutableSchemaObject, org.apache.directory.shared.ldap.schema.SchemaObject

public class MatchingRuleUseImpl
extends org.apache.directory.shared.ldap.schema.AbstractSchemaObject
implements org.apache.directory.shared.ldap.schema.MatchingRuleUse, org.apache.directory.shared.ldap.schema.MutableSchemaObject

A machingRuleUse implementation which dynamically pull applicable attributeTypes and it's matchingRule from the registries associated with it.

Version:
$Rev$
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
description, isObsolete, names, oid, schema
 
Constructor Summary
protected MatchingRuleUseImpl(java.lang.String oid, Registries registries)
          Creates a new matchingRuleUse.
 
Method Summary
 org.apache.directory.shared.ldap.schema.AttributeType[] getApplicableAttributes()
           
 org.apache.directory.shared.ldap.schema.MatchingRule getMatchingRule()
           
 void setApplicableAttributesOids(java.lang.String[] applicableAttributesOids)
          Sets the oids used to look up the applicable AttributeTypes.
 void setDescription(java.lang.String description)
          Sets the description associated with this matchingRuleUse.
 void setNames(java.lang.String[] names)
          Sets the names associated with this matchingRuleUse.
 void setObsolete(boolean obsolete)
          Sets whether or not this matchingRuleUse is obsolete.
 void setSchema(java.lang.String schemaName)
          Sets the schema this matchingRuleUse is defined under.
 
Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
equals, getDescription, getName, getNamesRef, getOid, getSchema, hashCode, isObsolete, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.schema.SchemaObject
getDescription, getName, getNamesRef, getOid, getSchema, isObsolete
 
Methods inherited from interface org.apache.directory.shared.ldap.schema.SchemaObject
getDescription, getName, getNamesRef, getOid, getSchema, isObsolete
 

Constructor Detail

MatchingRuleUseImpl

protected MatchingRuleUseImpl(java.lang.String oid,
                              Registries registries)
Creates a new matchingRuleUse.

Parameters:
oid - the numeric oid of the matchingRule associated with this matchingRuleUse
registries - the registries used to resolve the matchingRule and the applicable attributes
Method Detail

getMatchingRule

public org.apache.directory.shared.ldap.schema.MatchingRule getMatchingRule()
                                                                     throws javax.naming.NamingException
Specified by:
getMatchingRule in interface org.apache.directory.shared.ldap.schema.MatchingRuleUse
Throws:
javax.naming.NamingException

getApplicableAttributes

public org.apache.directory.shared.ldap.schema.AttributeType[] getApplicableAttributes()
                                                                                throws javax.naming.NamingException
Specified by:
getApplicableAttributes in interface org.apache.directory.shared.ldap.schema.MatchingRuleUse
Throws:
javax.naming.NamingException

setApplicableAttributesOids

public void setApplicableAttributesOids(java.lang.String[] applicableAttributesOids)
Sets the oids used to look up the applicable AttributeTypes.

Parameters:
applicableAttributesOids - the String[] of attributeType oids

setNames

public void setNames(java.lang.String[] names)
Sets the names associated with this matchingRuleUse.

Specified by:
setNames in interface org.apache.directory.shared.ldap.schema.MutableSchemaObject
Overrides:
setNames in class org.apache.directory.shared.ldap.schema.AbstractSchemaObject

setDescription

public void setDescription(java.lang.String description)
Sets the description associated with this matchingRuleUse.

Specified by:
setDescription in interface org.apache.directory.shared.ldap.schema.MutableSchemaObject
Overrides:
setDescription in class org.apache.directory.shared.ldap.schema.AbstractSchemaObject

setObsolete

public void setObsolete(boolean obsolete)
Sets whether or not this matchingRuleUse is obsolete.

Specified by:
setObsolete in interface org.apache.directory.shared.ldap.schema.MutableSchemaObject
Overrides:
setObsolete in class org.apache.directory.shared.ldap.schema.AbstractSchemaObject

setSchema

public void setSchema(java.lang.String schemaName)
Sets the schema this matchingRuleUse is defined under.

Specified by:
setSchema in interface org.apache.directory.shared.ldap.schema.SchemaObject
Overrides:
setSchema in class org.apache.directory.shared.ldap.schema.AbstractSchemaObject


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.