Change the header to SO
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / openecomp / mso / 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.openecomp.mso.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     public LSInputImpl () {
41     }
42
43     @Override
44     public InputStream getByteStream () {
45         return fByteStream;
46     }
47
48     @Override
49     public void setByteStream (InputStream byteStream) {
50         fByteStream = byteStream;
51     }
52
53     @Override
54     public Reader getCharacterStream () {
55         return fCharStream;
56     }
57
58     @Override
59     public void setCharacterStream (Reader characterStream) {
60         fCharStream = characterStream;
61     }
62
63     @Override
64     public String getStringData () {
65         return fData;
66     }
67
68     @Override
69     public void setStringData (String stringData) {
70         fData = stringData;
71     }
72
73     @Override
74     public String getEncoding () {
75         return fEncoding;
76     }
77
78     @Override
79     public void setEncoding (String encoding) {
80         fEncoding = encoding;
81     }
82
83     @Override
84     public String getPublicId () {
85         return fPublicId;
86     }
87
88     @Override
89     public void setPublicId (String publicId) {
90         fPublicId = publicId;
91     }
92
93     @Override
94     public String getSystemId () {
95         return fSystemId;
96     }
97
98     @Override
99     public void setSystemId (String systemId) {
100         fSystemId = systemId;
101     }
102
103     @Override
104     public String getBaseURI () {
105         return fBaseSystemId;
106     }
107
108     @Override
109     public void setBaseURI (String baseURI) {
110         fBaseSystemId = baseURI;
111     }
112
113     @Override
114     public boolean getCertifiedText () {
115         return fCertifiedText;
116     }
117
118     @Override
119     public void setCertifiedText (boolean certifiedText) {
120         fCertifiedText = certifiedText;
121     }
122 }