@ThreadSafe public final class LocalDraftRevision extends PageRevision1 implements DraftRevision, CoreRevision
DraftRevision.U
CoreRevision.U
MAX_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, wikiScriptURI
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLatestRevision, pageID, pageName, pageURI, rev, revLatest, revURI, wikiScriptURI
LocalDraftRevision(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.IOException
PageRevision1.pageID()
,
PageRevision1.rev()
,
PageRevision1.revLatest()
public void init(PollwikiVS _wiki, String _contextPersonName, CountSource _countSource)
CoreRevision
init
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)
CoreRevision
addDraftRevisionPath
in interface CoreRevision
public CoreRevision contextView(String _contextPersonName)
CoreRevision
contextView
in interface CoreRevision
public DraftRevision draft()
CoreRevision
draft
in interface CoreRevision
public boolean isFullyConstructed()
CoreRevision
isFullyConstructed
in interface CoreRevision
CoreRevision.init(PollwikiVS,String,CountSource)
public IDPair person()
PositionalRevision
person
in interface PositionalRevision
public String pollName()
PositionalRevision
pollName
in interface PositionalRevision
Poll.name()