001package votorola.a.diff; // Copyright 2012-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. 002 003 004/** The parameters for a difference view. 005 */ 006public interface DiffLook 007{ 008 009 010 // - D i f f - L o o k ---------------------------------------------------------------- 011 012 013 /** The {@linkplain DiffKey difference key}. 014 */ 015 public String key(); 016 017 018 019 /** The selectand for the {@linkplain votorola.s.wic.diff.WP_D difference bridge} 's' 020 * parameter, specified as difference ordinal "a" or "b". 021 * 022 * @see <a href='../../../a/diff/DiffKey.html#ord'>Normal ordering</a> 023 */ // per INLDOC 024 public String selectand(); 025 026 027 028 /** Whether to persist this difference along with other staged state. 029 * 030 * @see <a href='Stage.html#persistPage'>Persistence of state in a single page</a> 031 */ // per INLDOC 032 public boolean toPersist(); 033 034 035 036 // - O b j e c t ---------------------------------------------------------------------- 037 038 039 /** Normally answers whether o is a difference look with the same key and selectand. 040 * But do not depend on this behaviour in GWT clients where this look might be a 041 * JavaScriptObject; instead use the DiffLookJS {@linkplain DiffLookJS#EQUATOR 042 * EQUATOR} which works in all cases. 043 */ 044 public @Override boolean equals( final Object o ); 045 046 047}