| 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.trans; |
| 9 | |
| 10 | /** |
| 11 | * Enumeration class giving the different visibility levels defined for components in XSLT 3.0 |
| 12 | */ |
| 13 | |
| 14 | public enum Visibility { |
| 15 | PUBLIC("public"), |
| 16 | PRIVATE("private"), |
| 17 | FINAL("final"), |
| 18 | ABSTRACT("abstract"), |
| 19 | HIDDEN("hidden") |
| 20 | ; |
| 21 | |
| 22 | public String visibilityStr; |
| 23 | |
| 24 | Visibility(String v) { |
| 25 | visibilityStr = v; |
| 26 | } |
| 27 | |
| 28 | public String show() { |
| 29 | return visibilityStr; |
| 30 | } |
| 31 | |
| 32 | } |