Debian Codegraph @

net/sf/saxon/om/Genre.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.om;
9
10 /**
11 * The Genre of an item is the top-level classification of its item type: one of Atomic, Node, Function,
12 * Map, Array, or External
13 */
14
15 public enum Genre {
16
17 ANY("any item"),
18 ATOMIC("an atomic value"),
19 NODE("a node"),
20 FUNCTION("a function"),
21 MAP("a map"),
22 ARRAY("an array"),
23 EXTERNAL("an external object");
24
25 private String description;
26
27 Genre(String desc) {
28 this.description = desc;
29 }
30
31 public String getDescription() {
32 return description;
33 }
34
35 }
36