org.apache.jackrabbit.core.virtual
Class VirtualPropertyState

java.lang.Object
  extended by org.apache.jackrabbit.core.state.ItemState
      extended by org.apache.jackrabbit.core.state.PropertyState
          extended by org.apache.jackrabbit.core.virtual.VirtualPropertyState

public class VirtualPropertyState
extends PropertyState

This Class implements a virtual property state


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_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. by using the registered virtual value provider.
 void setValueProvider(VirtualValueProvider valueProvider)
          Sets a virtual value provider for this property
 
Methods inherited from class org.apache.jackrabbit.core.state.PropertyState
calculateMemoryFootprint, copy, getId, getName, getParentId, getPropertyId, getType, isMultiValued, isNode, setMultiValued, setType, setValues
 
Methods inherited from class org.apache.jackrabbit.core.state.ItemState
connect, discard, disconnect, getContainer, getModCount, getOverlayedState, getStatus, hasOverlayedState, isConnected, isStale, isTransient, notifyStateCreated, notifyStateDestroyed, notifyStateDiscarded, notifyStateUpdated, reconnect, setContainer, setModCount, setStatus
 
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-2010 The Apache Software Foundation. All Rights Reserved.