package votorola.a.position; // Copyright 2011, 2013, Michael Allan. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Votorola Software"), to deal in the Votorola Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Votorola Software, and to permit persons to whom the Votorola Software is furnished to do so, subject to the following conditions: The preceding copyright notice and this permission notice shall be included in all copies or substantial portions of the Votorola Software. THE VOTOROLA SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE VOTOROLA SOFTWARE OR THE USE OR OTHER DEALINGS IN THE VOTOROLA SOFTWARE. import votorola.a.voter.*; import votorola.g.lang.*; /** A particular revision of a remote draft page. */ public @ThreadSafe final class RemoteDraftRevision extends PageRevision1 implements DraftRevision { /** Constructs a RemoteDraftRevision. * * @param p a pointer that points to the draft. */ public RemoteDraftRevision( final PointerRevision p, int _pageID, final String _pageName, int _rev, int _revLatest ) { super( p.remoteWikiScriptURI(), _pageID, _pageName, _rev, _revLatest, p.remoteWikiURI().toASCIIString(), p.remoteWikiURI_maybeUgly() ); person = p.person(); pollName = p.pollName(); } // - O b j e c t ------------------------------------------------------------------ /** Returns the {@linkplain #revURI() revURI} of this remote draft revision. */ public @Override String toString() { return revURI().toASCIIString(); } // - P o s i t i o n a l - R e v i s i o n -------------------------------------------- public IDPair person() { return person; } private final IDPair person; public String pollName() { return pollName; } private final String pollName; }