60473fb8c47371209c884fceaef556222fa0f144
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / onap / so / apihandler / common / LSInputImpl.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.apihandler.common;
22
23
24 import java.io.InputStream;
25 import java.io.Reader;
26
27 import org.w3c.dom.ls.LSInput;
28
29 public class LSInputImpl implements LSInput {
30
31     protected String fPublicId;
32     protected String fSystemId;
33     protected String fBaseSystemId;
34     protected InputStream fByteStream;
35     protected Reader fCharStream;
36     protected String fData;
37     protected String fEncoding;
38     protected boolean fCertifiedText;
39
40     @Override
41     public InputStream getByteStream () {
42         return fByteStream;
43     }
44
45     @Override
46     public void setByteStream (InputStream byteStream) {
47         fByteStream = byteStream;
48     }
49
50     @Override
51     public Reader getCharacterStream () {
52         return fCharStream;
53     }
54
55     @Override
56     public void setCharacterStream (Reader characterStream) {
57         fCharStream = characterStream;
58     }
59
60     @Override
61     public String getStringData () {
62         return fData;
63     }
64
65     @Override
66     public void setStringData (String stringData) {
67         fData = stringData;
68     }
69
70     @Override
71     public String getEncoding () {
72         return fEncoding;
73     }
74
75     @Override
76     public void setEncoding (String encoding) {
77         fEncoding = encoding;
78     }
79
80     @Override
81     public String getPublicId () {
82         return fPublicId;
83     }
84
85     @Override
86     public void setPublicId (String publicId) {
87         fPublicId = publicId;
88     }
89
90     @Override
91     public String getSystemId () {
92         return fSystemId;
93     }
94
95     @Override
96     public void setSystemId (String systemId) {
97         fSystemId = systemId;
98     }
99
100     @Override
101     public String getBaseURI () {
102         return fBaseSystemId;
103     }
104
105     @Override
106     public void setBaseURI (String baseURI) {
107         fBaseSystemId = baseURI;
108     }
109
110     @Override
111     public boolean getCertifiedText () {
112         return fCertifiedText;
113     }
114
115     @Override
116     public void setCertifiedText (boolean certifiedText) {
117         fCertifiedText = certifiedText;
118     }
119 }