org.openrdf.elmo.sesame
Class LocalizedSesameProperty
java.lang.Object
org.openrdf.elmo.sesame.SesameProperty<String>
org.openrdf.elmo.sesame.LocalizedSesameProperty
- All Implemented Interfaces:
- Iterable<String>, Collection<String>, Set<String>, ElmoProperty<String>, Refreshable
public class LocalizedSesameProperty
- extends SesameProperty<String>
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.elmo.sesame.SesameProperty |
add, addAll, contains, containsAll, equals, getAll, hashCode, refresh, refresh, refreshCache, refreshEntity, remove, removeAll, retainAll, toString |
LocalizedSesameProperty
public LocalizedSesameProperty(SesameEntity bean,
PropertyChanger property)
clear
public void clear()
- Specified by:
clear in interface Collection<String>- Specified by:
clear in interface Set<String>- Overrides:
clear in class SesameProperty<String>
getSingle
public String 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<String>- Overrides:
getSingle in class SesameProperty<String>
- Returns:
- null or the single value
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<String>- Specified by:
isEmpty in interface Set<String>- Overrides:
isEmpty in class SesameProperty<String>
iterator
public Iterator<String> iterator()
- Specified by:
iterator in interface Iterable<String>- Specified by:
iterator in interface Collection<String>- Specified by:
iterator in interface Set<String>- Overrides:
iterator in class SesameProperty<String>
setSingle
public void setSingle(String o)
- Description copied from interface:
ElmoProperty
- Replace all values with this value
- Specified by:
setSingle in interface ElmoProperty<String>- Overrides:
setSingle in class SesameProperty<String>
setAll
public void setAll(Set<String> set)
- Description copied from interface:
ElmoProperty
- Replaces all values with the values given.
- Specified by:
setAll in interface ElmoProperty<String>- Overrides:
setAll in class SesameProperty<String>
size
public int size()
- Specified by:
size in interface Collection<String>- Specified by:
size in interface Set<String>- Overrides:
size in class SesameProperty<String>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<String>- Specified by:
toArray in interface Set<String>- Overrides:
toArray in class SesameProperty<String>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<String>- Specified by:
toArray in interface Set<String>- Overrides:
toArray in class SesameProperty<String>
getValue
protected Value getValue(Object instance)
Copyright © 2004-2008 Aduna. All Rights Reserved.