gldapo
Class GldapoSchemaRegistry
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
gldapo.GldapoSchemaRegistry
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, Deque, List, Queue
public class GldapoSchemaRegistry
- extends LinkedList
The schema registry holds GldapoSchemaRegistration objects that hold the necessary
meta data that Gldapo needs to do all the LDAP magic with schema classes.
You can add actual schema classes or registrations ...
schemaRegistry << MySchemaClass
or ...
schemaRegistry << new GldapoSchemaRegistration(MySchemaClass)
Both will have the same effect, but the first way is preffered (the registration object will be created implicitly)
- See Also:
add(Object),
Serialized Form
| Methods inherited from class java.util.LinkedList |
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
GldapoSchemaRegistry
public GldapoSchemaRegistry(Gldapo gldapo)
getGldapo
public Gldapo getGldapo()
setGldapo
public void setGldapo(Gldapo value)
add
public boolean add(Object registration)
- Registers a new schema class.
If registration is a Class (implicitly creating a GldapoSchemaRegistration for it),
or just adding registration if it is a schema registration.
If the schema class in question is already registered, this will silently do nothing.
- Specified by:
add in interface Collection- Specified by:
add in interface Deque- Specified by:
add in interface List- Specified by:
add in interface Queue- Overrides:
add in class LinkedList
- Parameters:
registration - Either the schema class, or a registration for a schema class
- Throws:
IllegalArgumentException - if registration is not a Class or GldapoSchemaRegistration object
isRegistered
public boolean isRegistered(Class schema)
- Test to see if a particular schema class is already registered.
- Parameters:
schema - the Class in question
- Returns:
- whether it is registered or not
getAt
public Object getAt(Class schema)
- Allows fetching of the registration of a schema class, by the schema class
- Parameters:
schema - the schema class in question
- Returns:
- A
GldapoSchemaRegistration object for the schema class, or null if that class is not registered
getMetaClass
public MetaClass getMetaClass()
setMetaClass
public void setMetaClass(MetaClass metaClass)
invokeMethod
public Object invokeMethod(String name,
Object args)
getProperty
public Object getProperty(String name)
setProperty
public void setProperty(String name,
Object value)
Copyright © 2007-2010 Codehaus. All Rights Reserved.