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