Class ObjectClass

  • All Implemented Interfaces:
    SchemaElement

    public class ObjectClass
    extends AbstractNamedSchemaElement
    Bean for an object class schema element.
       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
     
    Author:
    Middleware Services
    • Constructor Detail

      • ObjectClass

        public ObjectClass​(java.lang.String s)
        Creates a new object class.
        Parameters:
        s - oid
      • ObjectClass

        public ObjectClass​(java.lang.String oid,
                           java.lang.String[] names,
                           java.lang.String description,
                           boolean obsolete,
                           java.lang.String[] superiorClasses,
                           ObjectClassType objectClassType,
                           java.lang.String[] requiredAttributes,
                           java.lang.String[] optionalAttributes,
                           Extensions extensions)
        Creates a new object class.
        Parameters:
        oid - oid
        names - names
        description - description
        obsolete - obsolete
        superiorClasses - superior classes
        objectClassType - object class type
        requiredAttributes - required attributes
        optionalAttributes - optional attributes
        extensions - extensions
    • Method Detail

      • getOID

        public java.lang.String getOID()
        Returns the oid.
        Returns:
        oid
      • getSuperiorClasses

        public java.lang.String[] getSuperiorClasses()
        Returns the superior classes.
        Returns:
        superior classes
      • setSuperiorClasses

        public void setSuperiorClasses​(java.lang.String[] s)
        Sets the superior classes.
        Parameters:
        s - superior classes
      • getObjectClassType

        public ObjectClassType getObjectClassType()
        Returns the object class type.
        Returns:
        object class type
      • setObjectClassType

        public void setObjectClassType​(ObjectClassType type)
        Sets the object class type.
        Parameters:
        type - object class type
      • getRequiredAttributes

        public java.lang.String[] getRequiredAttributes()
        Returns the required attributes.
        Returns:
        required attributes
      • setRequiredAttributes

        public void setRequiredAttributes​(java.lang.String[] s)
        Sets the required attributes.
        Parameters:
        s - required attributes
      • getOptionalAttributes

        public java.lang.String[] getOptionalAttributes()
        Returns the optional attributes.
        Returns:
        optional attributes
      • setOptionalAttributes

        public void setOptionalAttributes​(java.lang.String[] s)
        Sets the optional attributes.
        Parameters:
        s - optional attributes
      • parse

        public static ObjectClass parse​(java.lang.String definition)
                                 throws SchemaParseException
        Parses the supplied definition string and creates an initialized object class.
        Parameters:
        definition - to parse
        Returns:
        object class
        Throws:
        SchemaParseException - if the supplied definition is invalid
      • format

        public java.lang.String format()
        Description copied from interface: SchemaElement
        Returns this schema element as formatted string per RFC 4512.
        Returns:
        formatted string
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object