org.apache.jackrabbit.core.virtual
Class VirtualPropertyState

java.lang.Object
  extended byorg.apache.jackrabbit.core.state.ItemState
      extended byorg.apache.jackrabbit.core.state.PropertyState
          extended byorg.apache.jackrabbit.core.virtual.VirtualPropertyState
All Implemented Interfaces:
ItemStateListener, Serializable

public class VirtualPropertyState
extends PropertyState

This Class implements a virtual property state

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.state.ItemState
overlayedState, status, STATUS_EXISTING, STATUS_EXISTING_MODIFIED, STATUS_EXISTING_REMOVED, STATUS_NEW, STATUS_STALE_DESTROYED, STATUS_STALE_MODIFIED, STATUS_UNDEFINED
 
Constructor Summary
VirtualPropertyState(PropertyId id)
          Creates a new virtual property state
 
Method Summary
 VirtualValueProvider getValueProvider()
          Returns the virtual value provider, if registered.
 InternalValue[] getValues()
          Returns the value of this state evt.
 void setValueProvider(VirtualValueProvider valueProvider)
          Sets a virtual value provider for this property
 
Methods inherited from class org.apache.jackrabbit.core.state.PropertyState
copy, getDefinitionId, getId, getName, getParentId, getPropertyId, getType, isMultiValued, isNode, setDefinitionId, setMultiValued, setType, setValues
 
Methods inherited from class org.apache.jackrabbit.core.state.ItemState
addListener, connect, discard, disconnect, getModCount, getOverlayedState, getStatus, hasOverlayedState, isStale, isTransient, notifyStateCreated, notifyStateDestroyed, notifyStateDiscarded, notifyStateUpdated, reconnect, removeListener, setModCount, setStatus, stateCreated, stateDestroyed, stateDiscarded, stateModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualPropertyState

public VirtualPropertyState(PropertyId id)
Creates a new virtual property state

Parameters:
id -
Method Detail

getValueProvider

public VirtualValueProvider getValueProvider()
Returns the virtual value provider, if registered.

Returns:
the virtual value provider

setValueProvider

public void setValueProvider(VirtualValueProvider valueProvider)
Sets a virtual value provider for this property

Parameters:
valueProvider -

getValues

public InternalValue[] getValues()
Returns the value of this state evt. by using the registered virtual value provider.

Overrides:
getValues in class PropertyState
Returns:
the values


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.