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
public abstract class LoadableSchemaObject extends AbstractSchemaObject
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLoadableSchemaObject(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadableSchemaObjectcopy()Copy the current SchemaObject on placebooleanequals(Object o)StringgetBytecode()StringgetFqcn()inthashCode()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.voidsetFqcn(String fqcn)Set the Fully Qualified Class Name for this SchemaObject instance class stored in the bytecode attribute-
Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
-
-
-
Constructor Detail
-
LoadableSchemaObject
protected LoadableSchemaObject(SchemaObjectType objectType, String oid)
Constructor to use when the OID is known in advance.- Parameters:
objectType- The SchemaObject typeoid- The SchemaObject OID
-
LoadableSchemaObject
protected LoadableSchemaObject(SchemaObjectType objectType)
Constructor to use when the OID is not known until after instantiation.- Parameters:
objectType- The SchemaObject type
-
-
Method Detail
-
getBytecode
public String getBytecode()
- Returns:
- The associated bytecode of this SchemaObject instance
-
setBytecode
public void setBytecode(String bytecode)
Stores some bytecode representing the compiled Java class for this SchemaObject instance.- Parameters:
bytecode- The bytecode to store
-
getFqcn
public String getFqcn()
- Returns:
- The chemaObject instance Fully Qualified Class Name
-
setFqcn
public void setFqcn(String fqcn)
Set the Fully Qualified Class Name for this SchemaObject instance class stored in the bytecode attribute- Parameters:
fqcn- The Fully Qualified Class Name
-
copy
public LoadableSchemaObject copy()
Copy the current SchemaObject on place- Returns:
- The copied SchemaObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceSchemaObject- Overrides:
hashCodein classAbstractSchemaObject
-
equals
public boolean equals(Object o)
- 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
-
-