@ThreadSafe public final class ComponentPipeRevision1 extends ComponentPipeRevision
ComponentPipeRevision.MalformedContent
CoreRevision.U
TEMPLATE_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, pollName
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
ComponentPipeRevision1(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.MalformedContent
PageRevision1.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.UnsupportedOperationException
public CoreRevision variant()
public List<Integer> addDraftRevisionPath(List<Integer> path)
CoreRevision
public CoreRevision contextView(String _contextPersonName)
CoreRevision
public DraftRevision draft()
CoreRevision
public boolean isFullyConstructed()
CoreRevision
init(CoreRevision)