Class Schema


  • public final class Schema
    extends Object
    Bean that contains the schema definitions in RFC 4512.
    • Method Detail

      • getAttributeTypes

        public Collection<AttributeType> getAttributeTypes()
        Returns the attribute types.
        Returns:
        attribute types
      • getAttributeType

        public AttributeType getAttributeType​(String name)
        Returns the attribute type with the supplied OID or name.
        Parameters:
        name - OID or name
        Returns:
        attribute type or null if name does not exist
      • setAttributeTypes

        public void setAttributeTypes​(Collection<AttributeType> c)
        Sets the attribute types.
        Parameters:
        c - attribute types
      • getBinaryAttributeNames

        public String[] getBinaryAttributeNames()
        Returns the attribute names in this schema that represent binary data. This includes attributes with a syntax OID of '1.3.6.1.4.1.1466.115.121.1.5' and any syntax with the 'X-NOT-HUMAN-READABLE' extension.
        Returns:
        binary attribute names
      • getDitContentRules

        public Collection<DITContentRule> getDitContentRules()
        Returns the DIT content rules.
        Returns:
        DIT content rules
      • getDITContentRule

        public DITContentRule getDITContentRule​(String name)
        Returns the DIT content rule with the supplied OID or name.
        Parameters:
        name - OID or name
        Returns:
        DIT content rule or null if name does not exist
      • setDitContentRules

        public void setDitContentRules​(Collection<DITContentRule> c)
        Sets the DIT content rules.
        Parameters:
        c - DIT content rules
      • getDitStructureRules

        public Collection<DITStructureRule> getDitStructureRules()
        Returns the DIT structure rules.
        Returns:
        DIT structure rules
      • getDITStructureRule

        public DITStructureRule getDITStructureRule​(int id)
        Returns the DIT structure rule with the supplied ID.
        Parameters:
        id - rule ID
        Returns:
        DIT structure rule or null if id does not exist
      • getDITStructureRule

        public DITStructureRule getDITStructureRule​(String name)
        Returns the DIT structure rule with the supplied name.
        Parameters:
        name - rule name
        Returns:
        DIT structure rule or null if name does not exist
      • setDitStructureRules

        public void setDitStructureRules​(Collection<DITStructureRule> c)
        Sets the DIT structure rules.
        Parameters:
        c - DIT structure rules
      • getSyntaxes

        public Collection<Syntax> getSyntaxes()
        Returns the syntaxes.
        Returns:
        syntaxes
      • getSyntax

        public Syntax getSyntax​(String oid)
        Returns the syntax with the supplied OID.
        Parameters:
        oid - OID
        Returns:
        syntax or null if OID does not exist
      • setSyntaxes

        public void setSyntaxes​(Collection<Syntax> c)
        Sets the syntaxes.
        Parameters:
        c - syntaxes
      • getMatchingRules

        public Collection<MatchingRule> getMatchingRules()
        Returns the matching rules.
        Returns:
        matching rules
      • getMatchingRule

        public MatchingRule getMatchingRule​(String name)
        Returns the matching rule with the supplied OID or name.
        Parameters:
        name - OID or name
        Returns:
        matching rule or null if name does not exist
      • setMatchingRules

        public void setMatchingRules​(Collection<MatchingRule> c)
        Sets the matching rules.
        Parameters:
        c - matching rules
      • getMatchingRuleUses

        public Collection<MatchingRuleUse> getMatchingRuleUses()
        Returns the matching rule uses.
        Returns:
        matching rule uses
      • getMatchingRuleUse

        public MatchingRuleUse getMatchingRuleUse​(String name)
        Returns the matching rule use with the supplied OID or name.
        Parameters:
        name - OID or name
        Returns:
        matching rule use or null if name does not exist
      • setMatchingRuleUses

        public void setMatchingRuleUses​(Collection<MatchingRuleUse> c)
        Sets the matching rule uses.
        Parameters:
        c - matching rule uses
      • getNameForms

        public Collection<NameForm> getNameForms()
        Returns the name forms.
        Returns:
        name forms
      • getNameForm

        public NameForm getNameForm​(String name)
        Returns the name form with the supplied OID or name.
        Parameters:
        name - OID or name
        Returns:
        name form or null if name does not exist
      • setNameForms

        public void setNameForms​(Collection<NameForm> c)
        Sets the name forms.
        Parameters:
        c - name forms
      • getObjectClasses

        public Collection<ObjectClass> getObjectClasses()
        Returns the object classes.
        Returns:
        object classes
      • getObjectClass

        public ObjectClass getObjectClass​(String name)
        Returns the object class with the supplied OID or name.
        Parameters:
        name - OID or name
        Returns:
        object class or null if name does not exist
      • setObjectClasses

        public void setObjectClasses​(Collection<ObjectClass> c)
        Sets the object classes.
        Parameters:
        c - object classes
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object