View Javadoc
1   /*
2    * reserved comment block
3    * DO NOT REMOVE OR ALTER!
4    */
5   /*
6    * Licensed to the Apache Software Foundation (ASF) under one or more
7    * contributor license agreements.  See the NOTICE file distributed with
8    * this work for additional information regarding copyright ownership.
9    * The ASF licenses this file to You under the Apache License, Version 2.0
10   * (the "License"); you may not use this file except in compliance with
11   * the License.  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   */
21  
22  package com.sun.org.apache.xerces.internal.impl.xs.util;
23  
24  
25  import com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar;
26  import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
27  import com.sun.org.apache.xerces.internal.xs.XSObject;
28  
29  /**
30   * @xerces.internal
31   *
32   * @version $Id: XSInputSource.java,v 1.2 2010-10-26 23:01:05 joehw Exp $
33   */
34  public final class XSInputSource extends XMLInputSource {
35  
36      private SchemaGrammar[] fGrammars;
37      private XSObject[] fComponents;
38  
39      public XSInputSource(SchemaGrammar[] grammars) {
40          super(null, null, null);
41          fGrammars = grammars;
42          fComponents = null;
43      }
44  
45      public XSInputSource(XSObject[] component) {
46          super(null, null, null);
47          fGrammars = null;
48          fComponents = component;
49      }
50  
51      public SchemaGrammar[] getGrammars() {
52          return fGrammars;
53      }
54  
55      public void setGrammars(SchemaGrammar[] grammars) {
56          fGrammars = grammars;
57      }
58  
59      public XSObject[] getComponents() {
60          return fComponents;
61      }
62  
63      public void setComponents(XSObject[] components) {
64          fComponents = components;
65      }
66  }