Debian Codegraph @

net/sf/saxon/serialize/charcode/CharacterSet.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.serialize.charcode;
9
10
11 /**
12 * This interface defines properties of a character set, built in to the Saxon product.
13 * This is selected in xsl:output using encoding="encoding-name", where
14 * the mapping from an encoding-name to a class is defined in CharacterSetFactory.
15 */
16
17 public interface CharacterSet {
18
19 /**
20 * Determine if a character is present in the character set
21 */
22
23 boolean inCharset(int ch);
24
25 /**
26 * Get the preferred Java name of the character set. Note that Java in many
27 * cases also supports a "historic name".
28 */
29
30 String getCanonicalName();
31
32 }
33