@ThreadSafe public final class LocalDraftRevision extends PageRevision1 implements DraftRevision, CoreRevision
DraftRevision.UCoreRevision.UMAX_PATH_LENGTH| Constructor and Description |
|---|
LocalDraftRevision(PollwikiVS wiki,
int _pageID,
String _pageName,
int _rev,
int _revLatest,
String _content0)
Constructs a LocalDraftRevision.
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
addDraftRevisionPath(List<Integer> path)
Adds to the list the revision path from this core revision (inclusive) to the
terminal draft (inclusive).
|
CoreRevision |
contextView(String _contextPersonName)
Constructs a view of this core revision suited for viewing in the context of the
specified person, or returns this same (==) core revision if it is already suited.
|
DraftRevision |
draft()
The position draft.
|
void |
init(PollwikiVS _wiki,
String _contextPersonName,
CountSource _countSource)
Finishes the construction of this CoreRevision and sets isFullyConstructed true.
|
boolean |
isFullyConstructed()
Answers whether the construction of this CoreRevision is complete.
|
IDPair |
person()
The identifier of the person who takes the position.
|
String |
pollName()
The name of the poll in which the person takes a position.
|
equals, isLatestRevision, pageID, pageName, pageURI, readPageRevision, rev, revLatest, revURI, toString, wikiScriptURIclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisLatestRevision, pageID, pageName, pageURI, rev, revLatest, revURI, wikiScriptURILocalDraftRevision(PollwikiVS wiki, int _pageID, String _pageName, int _rev, int _revLatest, String _content0) throws IOException
_pageName - it will be normalized._content0 - the wikitext of the revision including at least section 0.IOExceptionPageRevision1.pageID(),
PageRevision1.rev(),
PageRevision1.revLatest()public void init(PollwikiVS _wiki, String _contextPersonName, CountSource _countSource)
CoreRevisioninit in interface CoreRevision_contextPersonName - the name of the person from whose viewpoint the
revision will be viewed (context person), or null if there is no context
person._countSource - for possible use during this call. It is never used if
there is no context person.public List<Integer> addDraftRevisionPath(List<Integer> path)
CoreRevisionaddDraftRevisionPath in interface CoreRevisionpublic CoreRevision contextView(String _contextPersonName)
CoreRevisioncontextView in interface CoreRevisionpublic DraftRevision draft()
CoreRevisiondraft in interface CoreRevisionpublic boolean isFullyConstructed()
CoreRevisionisFullyConstructed in interface CoreRevisionCoreRevision.init(PollwikiVS,String,CountSource)public IDPair person()
PositionalRevisionperson in interface PositionalRevisionpublic String pollName()
PositionalRevisionpollName in interface PositionalRevisionPoll.name()