org.openanzo.common.ldap.container.map
Class BasicAttributeBinding

java.lang.Object
  extended by org.openanzo.common.ldap.container.map.BasicAttributeBinding
All Implemented Interfaces:
AttributeBinding

public final class BasicAttributeBinding
extends java.lang.Object
implements AttributeBinding

Maps an RDF URI to an Ldap attribute.

Author:
Joe Betz

Constructor Summary
BasicAttributeBinding(java.lang.String attribute, java.net.URI uri, ValueTransform valueBinding)
          Create a new mapping between URI and Ldap attribute.
 
Method Summary
 java.lang.String getAttribute()
          Gets the Ldap attribute.
 IRIReference getPredicateUri()
          Gets the URI list.
 ValueTransform getValueTransform()
          Gets the binding used to transform the value of this attribute to an RDF statement object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAttributeBinding

public BasicAttributeBinding(java.lang.String attribute,
                             java.net.URI uri,
                             ValueTransform valueBinding)
Create a new mapping between URI and Ldap attribute.

Parameters:
attribute - The Ldap attribute
uri - url to bind with the attribute
valueBinding - value binding to apply to matching attribute values
Method Detail

getAttribute

public java.lang.String getAttribute()
Description copied from interface: AttributeBinding
Gets the Ldap attribute.

Specified by:
getAttribute in interface AttributeBinding
Returns:
Ldap attribute.

getPredicateUri

public IRIReference getPredicateUri()
Description copied from interface: AttributeBinding
Gets the URI list.

Specified by:
getPredicateUri in interface AttributeBinding
Returns:
List of URIs.

getValueTransform

public ValueTransform getValueTransform()
Description copied from interface: AttributeBinding
Gets the binding used to transform the value of this attribute to an RDF statement object.

Specified by:
getValueTransform in interface AttributeBinding
Returns:
A value binding.


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