home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / SpecialMapping.java < prev    next >
Text File  |  1998-09-22  |  3KB  |  77 lines

  1. /*
  2.  * @(#)SpecialMapping.java    1.2 97/10/28
  3.  *
  4.  * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
  5.  * (C) Copyright IBM Corp. 1996 - All Rights Reserved
  6.  *
  7.  * Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  8.  *
  9.  *   The original version of this source code and documentation is copyrighted
  10.  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  11.  * materials are provided under terms of a License Agreement between Taligent
  12.  * and Sun. This technology is protected by multiple US and International
  13.  * patents. This notice and attribution to Taligent may not be removed.
  14.  *   Taligent is a registered trademark of Taligent, Inc.
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software
  17.  * and its documentation for NON-COMMERCIAL purposes and without
  18.  * fee is hereby granted provided that this copyright notice
  19.  * appears in all copies. Please refer to the file "copyright.html"
  20.  * for further important copyright and licensing information.
  21.  *
  22.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  23.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  24.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  25.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  26.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  27.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  28.  *
  29.  */
  30.  
  31. package java.text;
  32.  
  33. /**
  34.  * This class represents exceptions to the normal unicode category
  35.  * mapping provided by Character. It is internal only.  It represents
  36.  * a range of characters that don't follow the category mapping.
  37.  */
  38. final class SpecialMapping
  39. {
  40.     /**
  41.      * The first character in exception range
  42.      */
  43.     public char startChar;
  44.     /**
  45.      * The last character in the exception range
  46.      */
  47.     public char endChar;
  48.     /**
  49.      * The category for characters in the range
  50.      */
  51.     public int newValue;
  52.  
  53.     /**
  54.      * Construct a mapping for a single character
  55.      * @param ch the character
  56.      * @param newValue the new category for the character
  57.      */
  58.     public SpecialMapping(char ch, int newValue)
  59.     {
  60.         this(ch, ch, newValue);
  61.     }
  62.  
  63.     /**
  64.      * Construct a mapping for a range of characters
  65.      * @param startChar the first character in the range
  66.      * @param endChar the last character in the range
  67.      * @param newValue the category for the range
  68.      */
  69.     public SpecialMapping(char startChar, char endChar, int newValue)
  70.     {
  71.         this.startChar = startChar;
  72.         this.endChar = endChar;
  73.         this.newValue = newValue;
  74.     }
  75. }
  76.  
  77.