gldapo
Class GldapoTypeMappingRegistry

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.GldapoTypeMappingRegistry
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, Deque, List, Queue

public class GldapoTypeMappingRegistry
extends LinkedList

Holds the global type mappings to convert values to and from LDAP and Java

See Also:
Gldapo.getTypemappings(), Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GldapoTypeMappingRegistry()
          Installs DefaultTypeMappings into the registry.
 
Method Summary
 void clear()
           
 Object findMapper(String mapperName, Class[] argTypes)
           
 MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object getToGroovyMapperForType(String type)
          Returns a closure that can be used to convert a LDAP value to a particular type.
 Object getToLdapMapperForType(String type)
          Returns a closure that can be used to convert a groovy value to an LDAP value (string)
 void installDefaults()
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, 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

GldapoTypeMappingRegistry

public GldapoTypeMappingRegistry()
Installs DefaultTypeMappings into the registry.

Method Detail

installDefaults

public void installDefaults()

getToGroovyMapperForType

public Object getToGroovyMapperForType(String type)
Returns a closure that can be used to convert a LDAP value to a particular type.

Uses AbstractAttributeMapping.toGroovyByTypeMapperName(String) to calculate the name of the suitable mapping method


getToLdapMapperForType

public Object getToLdapMapperForType(String type)
Returns a closure that can be used to convert a groovy value to an LDAP value (string)

Uses AbstractAttributeMapping.toLdapByTypeMapperName(String) to calculate the name of the suitable mapping method


findMapper

public Object findMapper(String mapperName,
                         Class[] argTypes)

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List
Overrides:
clear in class LinkedList

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.