public abstract class

CollectionProp

extends Prop
java.lang.Object
   ↳ edu.stanford.junction.api.activity.JunctionExtra
     ↳ edu.stanford.junction.props2.Prop
       ↳ edu.stanford.junction.props2.sample.CollectionProp
Known Direct Subclasses

Summary

[Expand]
Inherited Constants
From class edu.stanford.junction.props2.Prop
[Expand]
Inherited Fields
From class edu.stanford.junction.props2.Prop
Public Constructors
CollectionProp(String propName, String propReplicaName, IPropState state, long seqNum)
CollectionProp(String propName, String propReplicaName, IPropState state)
Public Methods
void add(JSONObject item)
void clear()
void delete(JSONObject item)
void doRandom()
Collection<JSONObject> items()
void replace(JSONObject item1, JSONObject item2)
Protected Methods
JSONObject newAddOp(JSONObject item)
JSONObject newClearOp()
JSONObject newDeleteOp(JSONObject item)
JSONObject newReplaceOp(JSONObject item1, JSONObject item2)
IPropState newState()
IPropState newStateWith(Collection<JSONObject> items)
IPropState reifyState(JSONObject obj)
[Expand]
Inherited Methods
From class edu.stanford.junction.props2.Prop
From class edu.stanford.junction.api.activity.JunctionExtra
From class java.lang.Object
From interface edu.stanford.junction.props2.IProp

Public Constructors

public CollectionProp (String propName, String propReplicaName, IPropState state, long seqNum)

public CollectionProp (String propName, String propReplicaName, IPropState state)

Public Methods

public void add (JSONObject item)

public void clear ()

public void delete (JSONObject item)

public void doRandom ()

public Collection<JSONObject> items ()

public void replace (JSONObject item1, JSONObject item2)

Protected Methods

protected JSONObject newAddOp (JSONObject item)

protected JSONObject newClearOp ()

protected JSONObject newDeleteOp (JSONObject item)

protected JSONObject newReplaceOp (JSONObject item1, JSONObject item2)

protected IPropState newState ()

protected IPropState newStateWith (Collection<JSONObject> items)

protected IPropState reifyState (JSONObject obj)