| 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 | import net.sf.saxon.om.StructuredQName; |
| 11 | import net.sf.saxon.style.ComponentDeclaration; |
| 12 | import net.sf.saxon.type.ItemType; |
| 13 | |
| 14 | import java.util.List; |
| 15 | |
| 16 | /** |
| 17 | * Manager for saxon:type-alias declarations in a stylesheet. |
| 18 | * |
| 19 | * Saxon extension introduced in Saxon 9.8 |
| 20 | * |
| 21 | * This is a dummy version for Saxon-HE: the feature requires Saxon-PE or higher |
| 22 | */ |
| 23 | public class TypeAliasManager { |
| 24 | |
| 25 | public TypeAliasManager() { |
| 26 | } |
| 27 | |
| 28 | public void registerTypeAlias(StructuredQName name, ItemType type) { |
| 29 | throw new UnsupportedOperationException(); |
| 30 | } |
| 31 | |
| 32 | public void processDeclaration(ComponentDeclaration declaration) throws XPathException { |
| 33 | throw new UnsupportedOperationException(); |
| 34 | } |
| 35 | |
| 36 | public void processAllDeclarations(List<ComponentDeclaration> topLevel) throws XPathException { |
| 37 | // No action |
| 38 | } |
| 39 | |
| 40 | public ItemType getItemType(StructuredQName alias) { |
| 41 | return null; |
| 42 | } |
| 43 | } |
| 44 |