public class ObjectClass extends AbstractSchemaObject
According to ldapbis [MODELS]:
Object Class definitions are written according to the ABNF: ObjectClassDescription = LPAREN WSP numericoid ; object identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active [ SP "SUP" SP oids ] ; superior object classes [ SP kind ] ; kind of class [ SP "MUST" SP oids ] ; attribute types [ SP "MAY" SP oids ] ; attribute types extensions WSP RPAREN kind = "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" where: [numericoid] is object identifier assigned to this object class; NAME [qdescrs] are short names (descriptors) identifying this object class; DESC [qdstring] is a short descriptive string; OBSOLETE indicates this object class is not active; SUP [oids] specifies the direct superclasses of this object class; the kind of object class is indicated by one of ABSTRACT, STRUCTURAL, or AUXILIARY, default is STRUCTURAL; MUST and MAY specify the sets of required and allowed attribute types, respectively; and [extensions] describe extensions.
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
The mandatory serialVersionUID
|
Constructor and Description |
---|
ObjectClass(String oid)
Creates a new instance of MatchingRuleUseDescription
|
Modifier and Type | Method and Description |
---|---|
ObjectClass |
copy()
Copy an ObjectClass
|
boolean |
equals(Object o) |
List<String> |
getMayAttributeTypeOids() |
List<AttributeType> |
getMayAttributeTypes() |
List<String> |
getMustAttributeTypeOids() |
List<AttributeType> |
getMustAttributeTypes() |
List<String> |
getSuperiorOids()
Gets the superclasses OIDsof this ObjectClass.
|
List<ObjectClass> |
getSuperiors()
Gets the superclasses of this ObjectClass.
|
ObjectClassTypeEnum |
getType()
Gets the type of this ObjectClass as a type safe enum.
|
boolean |
isAbstract()
Tells if the current ObjectClass is ABSTRACT
|
boolean |
isAuxiliary()
Tells if the current ObjectClass is AUXILIARY
|
boolean |
isStructural()
Tells if the current ObjectClass is STRUCTURAL
|
String |
toString() |
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock
public static final long serialVersionUID
public ObjectClass(String oid)
oid
- the OID for this objectClasspublic List<String> getMayAttributeTypeOids()
public List<AttributeType> getMayAttributeTypes()
public List<String> getMustAttributeTypeOids()
public List<AttributeType> getMustAttributeTypes()
public List<ObjectClass> getSuperiors()
public List<String> getSuperiorOids()
public ObjectClassTypeEnum getType()
public boolean isStructural()
true
if the ObjectClass is STRUCTURALpublic boolean isAbstract()
true
if the ObjectClass is ABSTRACTpublic boolean isAuxiliary()
true
if the ObjectClass is AUXILIARYpublic ObjectClass copy()
public boolean equals(Object o)
AbstractSchemaObject
equals
in interface SchemaObject
equals
in class AbstractSchemaObject
Object.equals(Object)
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.