org.openrdf.repository.object.composition.helpers
Interface PropertySet

Type Parameters:
E - property type
All Superinterfaces:
Refreshable
All Known Implementing Classes:
CachedPropertySet, LocalizedPropertySet, RemotePropertySet, UnmodifiableProperty

public interface PropertySet
extends Refreshable

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

Author:
James Leigh

Field Summary
static String ADD_ALL
           
static String ADD_SINGLE
           
static String GET_ALL
           
static String GET_SINGLE
           
static String SET_ALL
           
static String SET_SINGLE
           
 
Method Summary
 boolean add(Object single)
          Append values with this value
 boolean addAll(Collection<?> all)
          Append all values with the values given.
 Set<Object> getAll()
          Get all values for property.
 Object getSingle()
          Assumes there is zero or one value and return null or the value.
 void setAll(Set<?> all)
          Replaces all values with the values given.
 void setSingle(Object single)
          Replace all values with this value
 
Methods inherited from interface org.openrdf.repository.object.traits.Refreshable
refresh
 

Field Detail

GET_ALL

static final String GET_ALL
See Also:
Constant Field Values

GET_SINGLE

static final String GET_SINGLE
See Also:
Constant Field Values

SET_ALL

static final String SET_ALL
See Also:
Constant Field Values

SET_SINGLE

static final String SET_SINGLE
See Also:
Constant Field Values

ADD_ALL

static final String ADD_ALL
See Also:
Constant Field Values

ADD_SINGLE

static final String ADD_SINGLE
See Also:
Constant Field Values
Method Detail

getAll

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

Returns:
set of all values

setAll

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

Parameters:
all -

getSingle

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

Returns:
null or the single value

setSingle

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

Parameters:
single -

addAll

boolean addAll(Collection<?> all)
Append all values with the values given.

Parameters:
all -

add

boolean add(Object single)
Append values with this value

Parameters:
single -


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