org.openrdf.repository.object.composition.helpers
Class LocalizedPropertySet
java.lang.Object
org.openrdf.repository.object.composition.helpers.RemotePropertySet
org.openrdf.repository.object.composition.helpers.CachedPropertySet
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
| Methods inherited from class org.openrdf.repository.object.composition.helpers.RemotePropertySet |
add, addAll, createInstance, equals, getAll, getStatements, getValues, hashCode, refresh, refreshEntity, remove, toString |
LocalizedPropertySet
public LocalizedPropertySet(ManagedRDFObject bean,
PropertySetModifier property)
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.