org.openrdf.elmo.sesame
Class SesamePropertyFactory<E>

java.lang.Object
  extended by org.openrdf.elmo.sesame.SesamePropertyFactory<E>
Type Parameters:
E - property type
All Implemented Interfaces:
ElmoPropertyFactory<E>
Direct Known Subclasses:
InferencingPropertyFactory

public class SesamePropertyFactory<E>
extends Object
implements ElmoPropertyFactory<E>

Creates ElmoProperty objects for a given predicate.

Author:
James Leigh

Constructor Summary
SesamePropertyFactory()
           
 
Method Summary
 ElmoProperty<E> createElmoProperty(Object bean)
          Create a new instance of ElmoProperty for this bean.
 Set<? extends Value> getOneOf()
           
 URI getPredicate()
           
protected  PropertyChanger getPropertyChanger()
           
static ValueFactory getValueFactory()
           
 SesamePropertyFactory<E> setField(Field field)
          Associates this factory with a given field.
 SesamePropertyFactory<E> setPropertyDescriptor(PropertyDescriptor property)
          Associates this factory with a given property.
 SesamePropertyFactory<E> setReadOnly(boolean readOnly)
           
 SesamePropertyFactory<E> setUri(String uri)
          Associates this factory with a given uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SesamePropertyFactory

public SesamePropertyFactory()
Method Detail

getValueFactory

public static ValueFactory getValueFactory()

getPredicate

public URI getPredicate()

getOneOf

public Set<? extends Value> getOneOf()

setUri

public SesamePropertyFactory<E> setUri(String uri)
Description copied from interface: ElmoPropertyFactory
Associates this factory with a given uri.

Specified by:
setUri in interface ElmoPropertyFactory<E>
Returns:
itself

setReadOnly

public SesamePropertyFactory<E> setReadOnly(boolean readOnly)
Specified by:
setReadOnly in interface ElmoPropertyFactory<E>

setField

public SesamePropertyFactory<E> setField(Field field)
Description copied from interface: ElmoPropertyFactory
Associates this factory with a given field.

Specified by:
setField in interface ElmoPropertyFactory<E>
Returns:
itself

setPropertyDescriptor

public SesamePropertyFactory<E> setPropertyDescriptor(PropertyDescriptor property)
Description copied from interface: ElmoPropertyFactory
Associates this factory with a given property.

Specified by:
setPropertyDescriptor in interface ElmoPropertyFactory<E>
Returns:
itself

createElmoProperty

public ElmoProperty<E> createElmoProperty(Object bean)
Description copied from interface: ElmoPropertyFactory
Create a new instance of ElmoProperty for this bean.

Specified by:
createElmoProperty in interface ElmoPropertyFactory<E>
Returns:
ElmoProperty

getPropertyChanger

protected PropertyChanger getPropertyChanger()


Copyright © 2004-2008 Aduna. All Rights Reserved.