|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.AbstractSchemaObject
org.apache.directory.shared.ldap.schema.LoadableSchemaObject
public abstract class LoadableSchemaObject
An abstract class used to manage the ADS specific SchemaObject, which can contain some compiled Java class to implement the specific logic.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
---|
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
Constructor Summary | |
---|---|
protected |
LoadableSchemaObject(SchemaObjectType objectType)
Constructor to use when the OID is not known until after instantiation. |
protected |
LoadableSchemaObject(SchemaObjectType objectType,
java.lang.String oid)
Constructor to use when the OID is known in advance. |
Method Summary | |
---|---|
LoadableSchemaObject |
copy()
Copy the current SchemaObject on place |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getBytecode()
|
java.lang.String |
getFqcn()
|
boolean |
isValid()
Test that the FQCN is equal to the instance's name. |
void |
registerOid(SchemaObject schemaObject,
Registries registries)
Register the given SchemaObject into the given registries' globalOidRegistry |
void |
setBytecode(java.lang.String bytecode)
Stores some bytecode representing the compiled Java class for this SchemaObject instance. |
void |
setFqcn(java.lang.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.shared.ldap.schema.AbstractSchemaObject |
---|
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LoadableSchemaObject(SchemaObjectType objectType, java.lang.String oid)
objectType
- The SchemaObject typeoid
- The SchemaObject OIDprotected LoadableSchemaObject(SchemaObjectType objectType)
objectType
- The SchemaObject typeMethod Detail |
---|
public java.lang.String getBytecode()
public void setBytecode(java.lang.String bytecode)
bytecode
- The bytecode to storepublic java.lang.String getFqcn()
public void setFqcn(java.lang.String fqcn)
fqcn
- The Fully Qualified Class Namepublic void registerOid(SchemaObject schemaObject, Registries registries) throws LdapException
registerOid
in interface SchemaObject
registerOid
in class AbstractSchemaObject
schemaObject
- the SchemaObject we want to registerregistries
- The registries in which we want it to be stored
LdapException
- If the OID is invalidpublic LoadableSchemaObject copy()
copy
in interface SchemaObject
copy
in class AbstractSchemaObject
public boolean equals(java.lang.Object o)
equals
in interface SchemaObject
equals
in class AbstractSchemaObject
Object#equals()
public boolean isValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |