@ThreadSafe public final class ComponentPipeRevision1 extends ComponentPipeRevision
ComponentPipeRevision.MalformedContentCoreRevision.UTEMPLATE_CALL_PATTERN| Constructor and Description |
|---|
ComponentPipeRevision1(PollwikiVS wiki,
int _pageID,
String _pageName,
int _rev,
int _revLatest,
String _nomineeName,
String _personName,
String pollName)
Partially constructs a ComponentPipeRevision1 for init to finish.
|
| 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(CoreRevision _variant)
Finishes the construction of this ComponentPipeRevision1 and sets isFullyConstructed true.
|
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.
|
CoreRevision |
variant()
The variant indicated by this component pipe, being either the candidate variant
or the wild variant depending on the specific revision path for which this pipe
was constructed.
|
nominee, person, pollNameequals, isLatestRevision, pageID, pageName, pageURI, readPageRevision, rev, revLatest, revURI, toString, wikiScriptURIclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisLatestRevision, pageID, pageName, pageURI, rev, revLatest, revURI, wikiScriptURIComponentPipeRevision1(PollwikiVS wiki, int _pageID, String _pageName, int _rev, int _revLatest, String _nomineeName, String _personName, String pollName) throws ComponentPipeRevision.MalformedContent
_pageName - will be normalized for the pageName.ComponentPipeRevision.MalformedContentPageRevision1.pageID(),
PageRevision1.rev(),
PageRevision1.revLatest(),
ComponentPipeRevision.nominee(),
ComponentPipeRevision.person(),
ComponentPipeRevision.pollName()@ThreadRestricted(value="constructor") public void init(CoreRevision _variant)
IllegalStateException - if called a second time.variant()public void init(PollwikiVS _wiki, String _contextPersonName, CountSource _countSource)
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.UnsupportedOperationExceptionpublic CoreRevision variant()
public List<Integer> addDraftRevisionPath(List<Integer> path)
CoreRevisionpublic CoreRevision contextView(String _contextPersonName)
CoreRevisionpublic DraftRevision draft()
CoreRevisionpublic boolean isFullyConstructed()
CoreRevisioninit(CoreRevision)