gldapo
Class GldapoSchemaRegistry

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList
                  extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GldapoSchemaRegistry(Gldapo gldapo)
           
 
Method Summary
 boolean add(Object registration)
          Registers a new schema class.
 Object getAt(Class schema)
          Allows fetching of the registration of a schema class, by the schema class
 Gldapo getGldapo()
           
 MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 boolean isRegistered(Class schema)
          Test to see if a particular schema class is already registered.
 void setGldapo(Gldapo value)
           
 void setMetaClass(MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
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
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

GldapoSchemaRegistry

public GldapoSchemaRegistry(Gldapo gldapo)
Method Detail

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.