View Javadoc
1   package ca.uhn.fhir.validation;
2   
3   /*
4    * #%L
5    * HAPI FHIR - Core Library
6    * %%
7    * Copyright (C) 2014 - 2018 University Health Network
8    * %%
9    * Licensed under the Apache License, Version 2.0 (the "License");
10   * you may not use this file except in compliance with the License.
11   * You may obtain a copy of the License at
12   * 
13   *      http://www.apache.org/licenses/LICENSE-2.0
14   * 
15   * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   * #L%
21   */
22  
23  import java.io.InputStream;
24  import java.io.Reader;
25  
26  import org.w3c.dom.ls.LSInput;
27  
28  class LSInputImpl implements LSInput {
29  
30  	private Reader myCharacterStream;
31  	private InputStream myByteStream;
32  	private String myStringData;
33  	private String mySystemId;
34  	private String myPublicId;
35  	private String myBaseURI;
36  	private String myEncoding;
37  	private boolean myCertifiedText;
38  
39  	@Override
40  	public Reader getCharacterStream() {
41  		return myCharacterStream;
42  	}
43  
44  	@Override
45  	public void setCharacterStream(Reader theCharacterStream) {
46  		myCharacterStream=theCharacterStream;
47  	}
48  
49  	@Override
50  	public InputStream getByteStream() {
51  		return myByteStream;
52  	}
53  
54  	@Override
55  	public void setByteStream(InputStream theByteStream) {
56  		myByteStream=theByteStream;
57  	}
58  
59  	@Override
60  	public String getStringData() {
61  		return myStringData;
62  	}
63  
64  	@Override
65  	public void setStringData(String theStringData) {
66  		myStringData=theStringData;
67  	}
68  
69  	@Override
70  	public String getSystemId() {
71  		return mySystemId;
72  	}
73  
74  	@Override
75  	public void setSystemId(String theSystemId) {
76  		mySystemId=theSystemId;
77  	}
78  
79  	@Override
80  	public String getPublicId() {
81  		return myPublicId;
82  	}
83  
84  	@Override
85  	public void setPublicId(String thePublicId) {
86  		myPublicId=thePublicId;
87  	}
88  
89  	@Override
90  	public String getBaseURI() {
91  		return myBaseURI;
92  	}
93  
94  	@Override
95  	public void setBaseURI(String theBaseURI) {
96  		myBaseURI=theBaseURI;
97  	}
98  
99  	@Override
100 	public String getEncoding() {
101 		return myEncoding;
102 	}
103 
104 	@Override
105 	public void setEncoding(String theEncoding) {
106 		myEncoding=theEncoding;
107 	}
108 
109 	@Override
110 	public boolean getCertifiedText() {
111 		return myCertifiedText;
112 	}
113 
114 	@Override
115 	public void setCertifiedText(boolean theCertifiedText) {
116 		myCertifiedText=theCertifiedText;
117 	}
118 
119 }