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.PropertyState
defId, multiValued, name, type, values
 
Fields inherited from class org.apache.jackrabbit.core.state.ItemState
id, overlayedState, parentUUID, status, STATUS_EXISTING, STATUS_EXISTING_MODIFIED, STATUS_EXISTING_REMOVED, STATUS_NEW, STATUS_STALE_DESTROYED, STATUS_STALE_MODIFIED, STATUS_UNDEFINED
 
Constructor Summary
VirtualPropertyState(QName name, String parentUUID)
          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, getName, getType, isMultiValued, isNode, setDefinitionId, setMultiValued, setType, setValues
 
Methods inherited from class org.apache.jackrabbit.core.state.ItemState
addListener, connect, discard, disconnect, getId, getOverlayedState, getParentUUID, getStatus, hasOverlayedState, isStale, isTransient, notifyStateCreated, notifyStateDestroyed, notifyStateDiscarded, notifyStateUpdated, reconnect, removeListener, setParentUUID, 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(QName name,
                            String parentUUID)
Creates a new virtual property state

Parameters:
name -
parentUUID -
Method Detail

getValueProvider

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

Returns:

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:


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