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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadableSchemaObject
copy()
Copy the current SchemaObject on placeboolean
equals(Object o)
String
getBytecode()
String
getFqcn()
boolean
isValid()
Test that the FQCN is equal to the instance's name.void
setBytecode(String bytecode)
Stores some bytecode representing the compiled Java class for this SchemaObject instance.void
setFqcn(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, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
-
-
-
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
-
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
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceSchemaObject
- Overrides:
equals
in 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
-
-