org.openrdf.elmo
Interface ElmoProperty<E>

Type Parameters:
E - property type
All Known Implementing Classes:
InverseSesameProperty, LocalizedSesameProperty, SesameProperty, UnmodifiableElmoProperty

public interface ElmoProperty<E>

Internal interface for mapping roles. Allows access to property values as a Set or as a single value.

Author:
James Leigh

Method Summary
 Set<E> getAll()
          Get all values for property.
 E getSingle()
          Assumes there is zero or one value and return null or the value.
 void refresh()
          Clear any cached values.
 void setAll(Set<E> all)
          Replaces all values with the values given.
 void setSingle(E single)
          Replace all values with this value
 

Method Detail

getAll

Set<E> getAll()
Get all values for property.

Returns:
set of all values

setAll

void setAll(Set<E> all)
Replaces all values with the values given.

Parameters:
all -

getSingle

E getSingle()
Assumes there is zero or one value and return null or the value.

Returns:
null or the single value

setSingle

void setSingle(E single)
Replace all values with this value

Parameters:
single -

refresh

void refresh()
Clear any cached values.



Copyright © 2004-2007. All Rights Reserved.