org.openanzo.common.ldap.container.transform
Class ValueMapTransform
java.lang.Object
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
|
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 |
ValueMapTransform
public ValueMapTransform(java.util.Map<java.lang.String,RDFTerm> map)
ValueMapTransform
public ValueMapTransform()
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.