Interface CodePage

  • All Known Implementing Classes:
    BasicLatin, DefaultCodePage, Greek, Ipa, LatinExtA, LatinExtB, LatinSupp

    public interface CodePage
    The interface CodePage should be used to represent a range of Unicode characters. This range is defined by the first and the last character in the range, both as integer values. In addition a name has to be assigned to the range.

    An implementation of this interface must at least provide the instance variables firstCharacter, lastCharacter and name for which the get- and set-methods are declared in this interface. All variables should be set in the constructor.

    A default implementation DefaultCodePage is provided in order to facilitate the implementation of further code pages.

    Version:
    $Revision: 1.1 $
    Author:
    Simone Leonardi
    See Also:
    http://www.unicode.org/charts/, DefaultCodePage
    • Method Detail

      • getFirstCharacter

        int getFirstCharacter()
        Get the value of the first character in the range.
        Returns:
        the int value of a character
      • setFirstCharacter

        void setFirstCharacter​(int v)
        Set the value of the first character in the range.
        Parameters:
        v - the int value of a character
      • getLastCharacter

        int getLastCharacter()
        Get the value of the last character in the range.
        Returns:
        the int value of a character
      • setLastCharacter

        void setLastCharacter​(int v)
        Set the value of the last character in the range.
        Parameters:
        v - the int value of a character
      • getName

        java.lang.String getName()
        Get the name of the code page.
        Returns:
        the name as String value
      • setName

        void setName​(java.lang.String v)
        Set the name of the code page.
        Parameters:
        v - the name as String value