Class LoadableSchemaObject
java.lang.Object
org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
- All Implemented Interfaces:
Serializable, SchemaObject
- Direct Known Subclasses:
LdapComparator, LdapComparatorDescription, Normalizer, NormalizerDescription, SyntaxChecker, SyntaxCheckerDescription
An abstract class used to manage the ADS specific SchemaObject, which can
contain some compiled Java class to implement the specific logic.
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
Fields inherited from class AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLoadableSchemaObject(SchemaObjectType objectType) Constructor to use when the OID is not known until after instantiation.protectedLoadableSchemaObject(SchemaObjectType objectType, String oid) Constructor to use when the OID is known in advance. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy the current SchemaObject on placebooleanGet the SchemaObject bytecodegetFqcn()Get the schemaObject fully qualified class nameinthashCode()booleanisValid()Test that the FQCN is equal to the instance's name.voidsetBytecode(String bytecode) Stores some bytecode representing the compiled Java class for this SchemaObject instance.voidSet the Fully Qualified Class Name for this SchemaObject instance class stored in the bytecode attributeMethods inherited from class AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, rehash, rehashBase, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
Constructor Details
-
LoadableSchemaObject
Constructor to use when the OID is known in advance.- Parameters:
objectType- The SchemaObject typeoid- The SchemaObject OID
-
LoadableSchemaObject
Constructor to use when the OID is not known until after instantiation.- Parameters:
objectType- The SchemaObject type
-
-
Method Details
-
getBytecode
Get the SchemaObject bytecode- Returns:
- The associated bytecode of this SchemaObject instance
-
setBytecode
Stores some bytecode representing the compiled Java class for this SchemaObject instance.- Parameters:
bytecode- The bytecode to store
-
getFqcn
Get the schemaObject fully qualified class name- Returns:
- The schemaObject instance Fully Qualified Class Name
-
setFqcn
Set the Fully Qualified Class Name for this SchemaObject instance class stored in the bytecode attribute- Parameters:
fqcn- The Fully Qualified Class Name
-
copy
Copy the current SchemaObject on place- Returns:
- The copied SchemaObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceSchemaObject- Overrides:
hashCodein classAbstractSchemaObject
-
equals
- Specified by:
equalsin interfaceSchemaObject- Overrides:
equalsin classAbstractSchemaObject
-
isValid
public boolean isValid()Test that the FQCN is equal to the instance's name. If the FQCN is empty, fill it with the instance's name- Returns:
- true if the FQCN is correctly set
-