org.openanzo.common.ldap.container.transform
Class ValueMapTransform

java.lang.Object
  extended by org.openanzo.common.ldap.container.transform.ValueMapTransform
All Implemented Interfaces:
ValueTransform

public class ValueMapTransform
extends java.lang.Object
implements ValueTransform

Transforms the value to an RDFTerm using the provided map. If a matching entry is not in the map, toObject will return null and no bindings will be added for the LDAP attribute value pair.

Author:
Joe Betz

Constructor Summary
ValueMapTransform()
           
ValueMapTransform(java.util.Map<java.lang.String,RDFTerm> map)
           
 
Method Summary
 void add(java.lang.String value, RDFTerm term)
           
 RDFTerm toObject(java.lang.String dn, java.lang.String attribute, java.lang.String value)
          transform the attribute value to an RDFTerm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueMapTransform

public ValueMapTransform(java.util.Map<java.lang.String,RDFTerm> map)

ValueMapTransform

public ValueMapTransform()
Method Detail

add

public void add(java.lang.String value,
                RDFTerm term)

toObject

public RDFTerm toObject(java.lang.String dn,
                        java.lang.String attribute,
                        java.lang.String value)
Description copied from interface: ValueTransform
transform the attribute value to an RDFTerm.

Specified by:
toObject in interface ValueTransform
value - Value of an LDAP entry's attribute.
Returns:
An RDFTerm.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.