public class CPage extends Named
Constructor and Description |
---|
CPage(java.lang.String name)
creates a blank page with the given name
|
CPage(java.lang.String name,
MessageReader reader,
java.lang.String module,
java.lang.String action,
PageBuffer pagebuffer)
creates and parses a page, and its associated data
|
Modifier and Type | Method and Description |
---|---|
CPageData |
getAllInputData() |
long |
getBufferedDataUsed() |
DataElt |
getInputData(int index) |
int |
getInputDataSize() |
CPageNode |
getNode() |
CPageNode |
getNodeAtSignificantPath(java.lang.String path) |
java.lang.String |
getPagedescription() |
CPageSignifPath |
getRootPath() |
void |
processInlineAction(java.lang.String module,
java.lang.String name,
CPageData newdata) |
void |
setPageNode(CPageNode pagenode) |
changeName, cleanName, equals, getName
public CPage(java.lang.String name, MessageReader reader, java.lang.String module, java.lang.String action, PageBuffer pagebuffer) throws OLcRemoteException, java.io.IOException
name
- name of the pagereader
- Message reader that will be used to parse the page info
from the Content tabmodule
- module of the action calling the pageaction
- name of the action calling the pagepagebuffer
- the local page buffer from which the page content will be
got from, in case the page is already in local buffer (in
that case, the server sends characteristics (size,
checksum) of the page to useOLcRemoteException
- if anything bad happened on the server when
sending the pagejava.io.IOException
- if nayhting bad happens during the transmissionpublic CPage(java.lang.String name)
name
- unique name of the page in the modulepublic java.lang.String getPagedescription()
public long getBufferedDataUsed()
public void setPageNode(CPageNode pagenode)
pagenode
- sets the root node of the pagepublic CPageNode getNode()
public CPageData getAllInputData()
public int getInputDataSize()
public DataElt getInputData(int index)
index
- index of the data element to getpublic CPageSignifPath getRootPath()
public CPageNode getNodeAtSignificantPath(java.lang.String path)
path
- a pathpublic void processInlineAction(java.lang.String module, java.lang.String name, CPageData newdata)
module
- module of the actionname
- name of the actionnewdata
- new data to add to the page