public class Schema
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<AttributeType> |
attributeTypes
Attribute types.
|
private java.util.Collection<DITContentRule> |
ditContentRules
DIT content rules.
|
private java.util.Collection<DITStructureRule> |
ditStructureRules
DIT structure rules.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private java.util.Collection<MatchingRule> |
matchingRules
Matching rules.
|
private java.util.Collection<MatchingRuleUse> |
matchingRuleUses
Matching rule uses.
|
private java.util.Collection<NameForm> |
nameForms
Name forms.
|
private java.util.Collection<ObjectClass> |
objectClasses
Object classes.
|
private java.util.Collection<Syntax> |
syntaxes
Syntaxes.
|
| Constructor and Description |
|---|
Schema()
Default constructor.
|
Schema(java.util.Collection<AttributeType> attributeTypes,
java.util.Collection<DITContentRule> ditContentRules,
java.util.Collection<DITStructureRule> ditStructureRules,
java.util.Collection<Syntax> syntaxes,
java.util.Collection<MatchingRule> matchingRules,
java.util.Collection<MatchingRuleUse> matchingRuleUses,
java.util.Collection<NameForm> nameForms,
java.util.Collection<ObjectClass> objectClasses)
Creates a new schema.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
AttributeType |
getAttributeType(java.lang.String name)
Returns the attribute type with the supplied OID or name.
|
java.util.Collection<AttributeType> |
getAttributeTypes()
Returns the attribute types.
|
java.lang.String[] |
getBinaryAttributeNames()
Returns the attribute names in this schema that represent binary data.
|
DITContentRule |
getDITContentRule(java.lang.String name)
Returns the DIT content rule with the supplied OID or name.
|
java.util.Collection<DITContentRule> |
getDitContentRules()
Returns the DIT content rules.
|
DITStructureRule |
getDITStructureRule(int id)
Returns the DIT structure rule with the supplied ID.
|
DITStructureRule |
getDITStructureRule(java.lang.String name)
Returns the DIT structure rule with the supplied name.
|
java.util.Collection<DITStructureRule> |
getDitStructureRules()
Returns the DIT structure rules.
|
MatchingRule |
getMatchingRule(java.lang.String name)
Returns the matching rule with the supplied OID or name.
|
java.util.Collection<MatchingRule> |
getMatchingRules()
Returns the matching rules.
|
MatchingRuleUse |
getMatchingRuleUse(java.lang.String name)
Returns the matching rule use with the supplied OID or name.
|
java.util.Collection<MatchingRuleUse> |
getMatchingRuleUses()
Returns the matching rule uses.
|
NameForm |
getNameForm(java.lang.String name)
Returns the name form with the supplied OID or name.
|
java.util.Collection<NameForm> |
getNameForms()
Returns the name forms.
|
ObjectClass |
getObjectClass(java.lang.String name)
Returns the object class with the supplied OID or name.
|
java.util.Collection<ObjectClass> |
getObjectClasses()
Returns the object classes.
|
Syntax |
getSyntax(java.lang.String oid)
Returns the syntax with the supplied OID.
|
java.util.Collection<Syntax> |
getSyntaxes()
Returns the syntaxes.
|
int |
hashCode() |
void |
setAttributeTypes(java.util.Collection<AttributeType> c)
Sets the attribute types.
|
void |
setDitContentRules(java.util.Collection<DITContentRule> c)
Sets the DIT content rules.
|
void |
setDitStructureRules(java.util.Collection<DITStructureRule> c)
Sets the DIT structure rules.
|
void |
setMatchingRules(java.util.Collection<MatchingRule> c)
Sets the matching rules.
|
void |
setMatchingRuleUses(java.util.Collection<MatchingRuleUse> c)
Sets the matching rule uses.
|
void |
setNameForms(java.util.Collection<NameForm> c)
Sets the name forms.
|
void |
setObjectClasses(java.util.Collection<ObjectClass> c)
Sets the object classes.
|
void |
setSyntaxes(java.util.Collection<Syntax> c)
Sets the syntaxes.
|
java.lang.String |
toString() |
private static final int HASH_CODE_SEED
private java.util.Collection<AttributeType> attributeTypes
private java.util.Collection<DITContentRule> ditContentRules
private java.util.Collection<DITStructureRule> ditStructureRules
private java.util.Collection<Syntax> syntaxes
private java.util.Collection<MatchingRule> matchingRules
private java.util.Collection<MatchingRuleUse> matchingRuleUses
private java.util.Collection<NameForm> nameForms
private java.util.Collection<ObjectClass> objectClasses
public Schema()
public Schema(java.util.Collection<AttributeType> attributeTypes, java.util.Collection<DITContentRule> ditContentRules, java.util.Collection<DITStructureRule> ditStructureRules, java.util.Collection<Syntax> syntaxes, java.util.Collection<MatchingRule> matchingRules, java.util.Collection<MatchingRuleUse> matchingRuleUses, java.util.Collection<NameForm> nameForms, java.util.Collection<ObjectClass> objectClasses)
attributeTypes - attribute typesditContentRules - DIT content rulesditStructureRules - DIT structure rulessyntaxes - syntaxesmatchingRules - matching rulesmatchingRuleUses - matching rule usesnameForms - name formsobjectClasses - object classsespublic java.util.Collection<AttributeType> getAttributeTypes()
public AttributeType getAttributeType(java.lang.String name)
name - OID or namepublic void setAttributeTypes(java.util.Collection<AttributeType> c)
c - attribute typespublic java.lang.String[] getBinaryAttributeNames()
public java.util.Collection<DITContentRule> getDitContentRules()
public DITContentRule getDITContentRule(java.lang.String name)
name - OID or namepublic void setDitContentRules(java.util.Collection<DITContentRule> c)
c - DIT content rulespublic java.util.Collection<DITStructureRule> getDitStructureRules()
public DITStructureRule getDITStructureRule(int id)
id - rule IDpublic DITStructureRule getDITStructureRule(java.lang.String name)
name - rule namepublic void setDitStructureRules(java.util.Collection<DITStructureRule> c)
c - DIT structure rulespublic java.util.Collection<Syntax> getSyntaxes()
public Syntax getSyntax(java.lang.String oid)
oid - OIDpublic void setSyntaxes(java.util.Collection<Syntax> c)
c - syntaxespublic java.util.Collection<MatchingRule> getMatchingRules()
public MatchingRule getMatchingRule(java.lang.String name)
name - OID or namepublic void setMatchingRules(java.util.Collection<MatchingRule> c)
c - matching rulespublic java.util.Collection<MatchingRuleUse> getMatchingRuleUses()
public MatchingRuleUse getMatchingRuleUse(java.lang.String name)
name - OID or namepublic void setMatchingRuleUses(java.util.Collection<MatchingRuleUse> c)
c - matching rule usespublic java.util.Collection<NameForm> getNameForms()
public NameForm getNameForm(java.lang.String name)
name - OID or namepublic void setNameForms(java.util.Collection<NameForm> c)
c - name formspublic java.util.Collection<ObjectClass> getObjectClasses()
public ObjectClass getObjectClass(java.lang.String name)
name - OID or namepublic void setObjectClasses(java.util.Collection<ObjectClass> c)
c - object classespublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object