org.openrdf.elmo.impl
Class UnmodifiableElmoProperty<E>

java.lang.Object
  extended by org.openrdf.elmo.impl.UnmodifiableElmoProperty<E>
Type Parameters:
E - property type
All Implemented Interfaces:
ElmoProperty<E>, Refreshable

public class UnmodifiableElmoProperty<E>
extends Object
implements ElmoProperty<E>

ElmoProperty used when only a getter method exists for the Bean property.

Author:
James Leigh

Constructor Summary
UnmodifiableElmoProperty(ElmoProperty<E> delegate)
           
 
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()
          Flushes the local state of the entity forcing it to refresh.
 void setAll(Set<E> all)
          Replaces all values with the values given.
 void setSingle(E single)
          Replace all values with this value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmodifiableElmoProperty

public UnmodifiableElmoProperty(ElmoProperty<E> delegate)
Method Detail

getAll

public Set<E> getAll()
Description copied from interface: ElmoProperty
Get all values for property.

Specified by:
getAll in interface ElmoProperty<E>
Returns:
set of all values

getSingle

public E getSingle()
Description copied from interface: ElmoProperty
Assumes there is zero or one value and return null or the value.

Specified by:
getSingle in interface ElmoProperty<E>
Returns:
null or the single value

setAll

public void setAll(Set<E> all)
Description copied from interface: ElmoProperty
Replaces all values with the values given.

Specified by:
setAll in interface ElmoProperty<E>

setSingle

public void setSingle(E single)
Description copied from interface: ElmoProperty
Replace all values with this value

Specified by:
setSingle in interface ElmoProperty<E>

refresh

public void refresh()
Description copied from interface: Refreshable
Flushes the local state of the entity forcing it to refresh.

Specified by:
refresh in interface Refreshable


Copyright © 2004-2008 Aduna. All Rights Reserved.