public class DITContentRule extends AbstractNamedSchemaElement
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
Modifier and Type | Field and Description |
---|---|
private String[] |
auxiliaryClasses
Auxiliary classes.
|
private static Pattern |
DEFINITION_PATTERN
Pattern to match definitions.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private String |
oid
OID.
|
private String[] |
optionalAttributes
Optional attributes.
|
private String[] |
requiredAttributes
Required attributes.
|
private String[] |
restrictedAttributes
Restricted attributes.
|
NO_WSP_REGEX, WSP_REGEX
Constructor and Description |
---|
DITContentRule(String s)
Creates 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
format()
Returns this schema element as formatted string per RFC 4512.
|
String[] |
getAuxiliaryClasses()
Returns the auxiliary classes.
|
String |
getOID()
Returns the oid.
|
String[] |
getOptionalAttributes()
Returns the optional attributes.
|
String[] |
getRequiredAttributes()
Returns the required attributes.
|
String[] |
getRestrictedAttributes()
Returns the restricted attributes.
|
int |
hashCode() |
static DITContentRule |
parse(String definition)
Parses the supplied definition string and creates an initialized DIT content rule.
|
void |
setAuxiliaryClasses(String[] s)
Sets the auxiliary classes.
|
void |
setOptionalAttributes(String[] s)
Sets the optional attributes.
|
void |
setRequiredAttributes(String[] s)
Sets the required attributes.
|
void |
setRestrictedAttributes(String[] s)
Sets the restricted attributes.
|
String |
toString() |
getName, getNames, hasName, isObsolete, setNames, setObsolete
containsBooleanExtension, getDescription, getExtensions, setDescription, setExtensions
private static final int HASH_CODE_SEED
private static final Pattern DEFINITION_PATTERN
private final String oid
private String[] auxiliaryClasses
private String[] requiredAttributes
private String[] optionalAttributes
private String[] restrictedAttributes
public DITContentRule(String s)
s
- oidpublic DITContentRule(String oid, String[] names, String description, boolean obsolete, String[] auxiliaryClasses, String[] requiredAttributes, String[] optionalAttributes, String[] restrictedAttributes, Extensions extensions)
oid
- oidnames
- namesdescription
- descriptionobsolete
- obsoleteauxiliaryClasses
- auxiliary classesrequiredAttributes
- required attributesoptionalAttributes
- optional attributesrestrictedAttributes
- restricted attributesextensions
- extensionspublic String getOID()
public String[] getAuxiliaryClasses()
public void setAuxiliaryClasses(String[] s)
s
- auxiliary classespublic String[] getRequiredAttributes()
public void setRequiredAttributes(String[] s)
s
- required attributespublic String[] getOptionalAttributes()
public void setOptionalAttributes(String[] s)
s
- optional attributespublic String[] getRestrictedAttributes()
public void setRestrictedAttributes(String[] s)
s
- restricted attributespublic static DITContentRule parse(String definition) throws ParseException
definition
- to parseParseException
- if the supplied definition is invalidpublic String format()
SchemaElement
public boolean equals(Object o)
equals
in class AbstractSchemaElement
public int hashCode()
hashCode
in class AbstractSchemaElement
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.