| 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.pull; |
| 9 | |
| 10 | /** |
| 11 | * This class is used to represent unparsed entities in the PullProvider interface |
| 12 | */ |
| 13 | |
| 14 | public class UnparsedEntity { |
| 15 | |
| 16 | private String name; |
| 17 | private String systemId; |
| 18 | private String publicId; |
| 19 | private String baseURI; |
| 20 | |
| 21 | /** |
| 22 | * Get the name of the unparsed entity |
| 23 | * |
| 24 | * @return the name of the unparsed entity |
| 25 | */ |
| 26 | |
| 27 | public String getName() { |
| 28 | return name; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Set the name of the unparsed entity |
| 33 | * |
| 34 | * @param name the name of the unparsed entity |
| 35 | */ |
| 36 | |
| 37 | public void setName(String name) { |
| 38 | this.name = name; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Get the system identifier of the unparsed entity |
| 43 | * |
| 44 | * @return the system identifier of the unparsed entity |
| 45 | */ |
| 46 | |
| 47 | public String getSystemId() { |
| 48 | return systemId; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Set the system identifier of the unparsed entity |
| 53 | * |
| 54 | * @param systemId the system identifier of the unparsed entity |
| 55 | */ |
| 56 | |
| 57 | public void setSystemId(String systemId) { |
| 58 | this.systemId = systemId; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Get the public identifier of the unparsed entity |
| 63 | * |
| 64 | * @return the public identifier of the unparsed entity |
| 65 | */ |
| 66 | |
| 67 | public String getPublicId() { |
| 68 | return publicId; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Set the public identifier of the unparsed entity |
| 73 | * |
| 74 | * @param publicId the public identifier of the unparsed entity |
| 75 | */ |
| 76 | |
| 77 | public void setPublicId(String publicId) { |
| 78 | this.publicId = publicId; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Get the base URI of the unparsed entity |
| 83 | * |
| 84 | * @return the base URI of the unparsed entity |
| 85 | */ |
| 86 | |
| 87 | public String getBaseURI() { |
| 88 | return baseURI; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Set the base URI of the unparsed entity |
| 93 | * |
| 94 | * @param baseURI the base URI of the unparsed entity |
| 95 | */ |
| 96 | |
| 97 | public void setBaseURI(String baseURI) { |
| 98 | this.baseURI = baseURI; |
| 99 | } |
| 100 | |
| 101 | |
| 102 | } |