org.openrdf.repository.object.composition.helpers
Class LocalizedPropertySet

java.lang.Object
  extended by org.openrdf.repository.object.composition.helpers.RemotePropertySet
      extended by org.openrdf.repository.object.composition.helpers.CachedPropertySet
          extended by org.openrdf.repository.object.composition.helpers.LocalizedPropertySet
All Implemented Interfaces:
Iterable<Object>, Collection<Object>, Set<Object>, PropertySet, PropertyConsumer, Refreshable

public class LocalizedPropertySet
extends CachedPropertySet

SesameProperty used for localized properties. Only the best set of literals are included in the results.

Author:
James Leigh

Field Summary
 
Fields inherited from class org.openrdf.repository.object.composition.helpers.RemotePropertySet
property
 
Fields inherited from interface org.openrdf.repository.object.traits.PropertyConsumer
USE
 
Fields inherited from interface org.openrdf.repository.object.composition.helpers.PropertySet
ADD_ALL, ADD_SINGLE, GET_ALL, GET_SINGLE, SET_ALL, SET_SINGLE
 
Constructor Summary
LocalizedPropertySet(ManagedRDFObject bean, PropertySetModifier property)
           
 
Method Summary
 void clear()
           
 String getSingle()
          Assumes there is zero or one value and return null or the value.
protected  Value getValue(Object instance)
           
 boolean isEmpty()
           
 Iterator<Object> iterator()
           
 void setAll(Set<?> set)
          Replaces all values with the values given.
 void setSingle(Object o)
          Replace all values with this value
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class org.openrdf.repository.object.composition.helpers.CachedPropertySet
contains, containsAll, getObjectIterator, getObjects, refresh, refreshCache, removeAll, retainAll, setPropertySetFactory, usePropertyBindings
 
Methods inherited from class org.openrdf.repository.object.composition.helpers.RemotePropertySet
add, addAll, createInstance, equals, getAll, getStatements, getValues, hashCode, refresh, refreshEntity, remove, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizedPropertySet

public LocalizedPropertySet(ManagedRDFObject bean,
                            PropertySetModifier property)
Method Detail

clear

public void clear()
Specified by:
clear in interface Collection<Object>
Specified by:
clear in interface Set<Object>
Overrides:
clear in class CachedPropertySet

getSingle

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

Specified by:
getSingle in interface PropertySet
Overrides:
getSingle in class CachedPropertySet
Returns:
null or the single value

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Object>
Specified by:
isEmpty in interface Set<Object>
Overrides:
isEmpty in class CachedPropertySet

iterator

public Iterator<Object> iterator()
Specified by:
iterator in interface Iterable<Object>
Specified by:
iterator in interface Collection<Object>
Specified by:
iterator in interface Set<Object>
Overrides:
iterator in class CachedPropertySet

setSingle

public void setSingle(Object o)
Description copied from interface: PropertySet
Replace all values with this value

Specified by:
setSingle in interface PropertySet
Overrides:
setSingle in class CachedPropertySet

setAll

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

Specified by:
setAll in interface PropertySet
Overrides:
setAll in class CachedPropertySet

size

public int size()
Specified by:
size in interface Collection<Object>
Specified by:
size in interface Set<Object>
Overrides:
size in class CachedPropertySet

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<Object>
Specified by:
toArray in interface Set<Object>
Overrides:
toArray in class CachedPropertySet

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<Object>
Specified by:
toArray in interface Set<Object>
Overrides:
toArray in class CachedPropertySet

getValue

protected Value getValue(Object instance)
Overrides:
getValue in class CachedPropertySet


Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.