@ThreadSafe public final class ComponentPipeRevisionL extends ComponentPipeRevision
ComponentPipeRevision.MalformedContent
CoreRevision.U
TEMPLATE_CALL_PATTERN
Constructor and Description |
---|
ComponentPipeRevisionL(PollwikiVS wiki,
int _pageID,
String _pageName,
int _rev,
int _revLatest,
String _nomineeName,
String _personName,
String pollName)
|
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 |
candidateVariant()
The core of the position this pipe is voting for as resolved from the candidate
variant name, or null if no candidate variant name was set during construction.
|
String |
candidateVariantName()
The page name of the candidate's position core including the namespace, or null if
this information is unknown or not required.
|
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.
|
void |
init1(PollwikiVS wiki,
String contextPersonName,
CountSource countSource)
Continues the construction of this ComponentPipeRevisionL by setting the
candidate variant name if it is not already
set and the proposed pairing appears to require it.
|
static List<Throwable> |
init2(List<ComponentPipeRevisionL> components,
PollwikiVS wiki,
List<Throwable> userXList,
boolean toContinue)
Finishes the construction of the specifed component pipe revisions and sets
isFullyConstructed true for each.
|
boolean |
isFullyConstructed()
Answers whether the construction of this CoreRevision is complete.
|
CoreRevision |
wildVariant()
The wild variant indicated by this component pipe.
|
String |
wildVariantName()
The page name of the wild variant including the namespace.
|
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
ComponentPipeRevisionL(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(PollwikiVS wiki, String contextPersonName, CountSource countSource) throws IOException
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.IOException
@ThreadRestricted(value="constructor") public void init1(PollwikiVS wiki, String contextPersonName, CountSource countSource) throws IOException
contextPersonName
- the name of a person from whose viewpoint this
revision will eventually be viewed.countSource
- for possible use during this call.IOException
@ThreadRestricted(value="constructor") public static List<Throwable> init2(List<ComponentPipeRevisionL> components, PollwikiVS wiki, List<Throwable> userXList, boolean toContinue) throws IOException
components
- the list of partially constructed component pipe revisions.userXList
- a pre-constructed list to which any user actionable
exceptions are to be appended, or null if none was pre-constructed. Provide
ENLIST_NONE to instead force the
immediate throwing of such exceptions.toContinue
- whether to continue in the event of a missing wild variant
and to leave the incompletely constructed component pipe revision as is
(true), or to throw a NoSuchPage exception (false).IllegalStateException
- if called a second time for a given component
pipe revision.MediaWiki.NoSuchPage
- if toContinue is false and a wild variant is
missing.IOException
public CoreRevision candidateVariant()
public String candidateVariantName()
init1(PollwikiVS,String,CountSource)
public CoreRevision wildVariant()
public String wildVariantName()
public List<Integer> addDraftRevisionPath(List<Integer> path)
CoreRevision
public CoreRevision contextView(String contextPersonName)
CoreRevision
public DraftRevision draft()
CoreRevision
public boolean isFullyConstructed()
CoreRevision