ccc.domain
Class PageWorkingCopy

java.lang.Object
  extended by ccc.domain.Entity
      extended by ccc.domain.WorkingCopy<Page>
          extended by ccc.domain.PageWorkingCopy
All Implemented Interfaces:
Jsonable, java.io.Serializable

public class PageWorkingCopy
extends WorkingCopy<Page>

A working copy for a page.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
protected PageWorkingCopy()
          Constructor: for persistence only.
  PageWorkingCopy(Page content)
          Constructor.
 
Method Summary
protected  Page delta()
          Retrieve the working copy's state.
 void delta(Page snapshot)
          Update this working copy.
 Paragraph getParagraph(java.lang.String name)
          
 java.util.Set<Paragraph> getParagraphs()
          
 
Methods inherited from class ccc.domain.Entity
equals, getId, getVersion, hashCode, setId, toJson, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageWorkingCopy

protected PageWorkingCopy()
Constructor: for persistence only.


PageWorkingCopy

public PageWorkingCopy(Page content)
Constructor.

Parameters:
content - The contents of this working copy.
Method Detail

delta

protected Page delta()
Retrieve the working copy's state.

Specified by:
delta in class WorkingCopy<Page>
Returns:
A delta describing this working copy's state.

delta

public void delta(Page snapshot)
Update this working copy.

Specified by:
delta in class WorkingCopy<Page>
Parameters:
snapshot - The delta describing this working copy's state.

getParagraphs

public java.util.Set<Paragraph> getParagraphs()


getParagraph

public Paragraph getParagraph(java.lang.String name)



Copyright © 2010. All Rights Reserved.