Package org.ldaptive.schema
Class DITContentRule
java.lang.Object
org.ldaptive.schema.AbstractSchemaElement
org.ldaptive.schema.AbstractNamedSchemaElement
org.ldaptive.schema.DITContentRule
- All Implemented Interfaces:
SchemaElement
Bean for a DIT content rule schema element.
DITContentRuleDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "AUX" SP oids ] ; auxiliary object classes
[ SP "MUST" SP oids ] ; attribute types
[ SP "MAY" SP oids ] ; attribute types
[ SP "NOT" SP oids ] ; attribute types
extensions WSP RPAREN ; extensions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParses a DIT content rule definition using a char buffer.static classParses a DIT content rule definition using a regular expression. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DIT content rule.DITContentRule(String oid, String[] names, String description, boolean obsolete, String[] auxiliaryClasses, String[] requiredAttributes, String[] optionalAttributes, String[] restrictedAttributes, Extensions extensions) Creates a new DIT content rule. -
Method Summary
Modifier and TypeMethodDescriptionbooleanformat()Returns this schema element as formatted string per RFC 4512.String[]Returns the auxiliary classes.getOID()Returns the oid.String[]Returns the optional attributes.String[]Returns the required attributes.String[]Returns the restricted attributes.inthashCode()static DITContentRuleParses the supplied definition string and creates an initialized DIT content rule.voidSets the auxiliary classes.voidSets the optional attributes.voidSets the required attributes.voidSets the restricted attributes.toString()Methods inherited from class org.ldaptive.schema.AbstractNamedSchemaElement
getName, getNames, hasName, isObsolete, setNames, setObsoleteMethods inherited from class org.ldaptive.schema.AbstractSchemaElement
containsBooleanExtension, getDescription, getExtensions, setDescription, setExtensions
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
oid
OID. -
auxiliaryClasses
Auxiliary classes. -
requiredAttributes
Required attributes. -
optionalAttributes
Optional attributes. -
restrictedAttributes
Restricted attributes.
-
-
Constructor Details
-
DITContentRule
Creates a new DIT content rule.- Parameters:
s- oid
-
DITContentRule
public DITContentRule(String oid, String[] names, String description, boolean obsolete, String[] auxiliaryClasses, String[] requiredAttributes, String[] optionalAttributes, String[] restrictedAttributes, Extensions extensions) Creates a new DIT content rule.- Parameters:
oid- oidnames- namesdescription- descriptionobsolete- obsoleteauxiliaryClasses- auxiliary classesrequiredAttributes- required attributesoptionalAttributes- optional attributesrestrictedAttributes- restricted attributesextensions- extensions
-
-
Method Details
-
getOID
Returns the oid.- Returns:
- oid
-
getAuxiliaryClasses
Returns the auxiliary classes.- Returns:
- auxiliary classes
-
setAuxiliaryClasses
Sets the auxiliary classes.- Parameters:
s- auxiliary classes
-
getRequiredAttributes
Returns the required attributes.- Returns:
- required attributes
-
setRequiredAttributes
Sets the required attributes.- Parameters:
s- required attributes
-
getOptionalAttributes
Returns the optional attributes.- Returns:
- optional attributes
-
setOptionalAttributes
Sets the optional attributes.- Parameters:
s- optional attributes
-
getRestrictedAttributes
Returns the restricted attributes.- Returns:
- restricted attributes
-
setRestrictedAttributes
Sets the restricted attributes.- Parameters:
s- restricted attributes
-
parse
Parses the supplied definition string and creates an initialized DIT content rule.- Parameters:
definition- to parse- Returns:
- DIT content rule
- Throws:
SchemaParseException- if the supplied definition is invalid
-
format
Description copied from interface:SchemaElementReturns this schema element as formatted string per RFC 4512.- Returns:
- formatted string
-
equals
- Overrides:
equalsin classAbstractSchemaElement
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractSchemaElement
-
toString
-