1 /* 2 * Copyright 2005 Ralf Joachim 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5 * in compliance with the License. You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software distributed under the License 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11 * or implied. See the License for the specific language governing permissions and limitations under 12 * the License. 13 */ 14 package org.castor.mapping; 15 16 import org.exolab.castor.util.DTDResolver; 17 import org.xml.sax.InputSource; 18 19 /** 20 * @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a> 21 * @version $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $ 22 */ 23 public final class MappingSource { 24 /** The input source. */ 25 private final InputSource _source; 26 27 /** The type of the mapping source. */ 28 private final String _type; 29 30 /** The entity resolver to use. May be null. */ 31 private final DTDResolver _resolver; 32 33 public MappingSource(final InputSource source, final String type, final DTDResolver resolver) { 34 _source = source; 35 _type = type; 36 _resolver = resolver; 37 } 38 39 public InputSource getSource() { 40 return _source; 41 } 42 43 public String getType() { 44 return _type; 45 } 46 47 public DTDResolver getResolver() { 48 return _resolver; 49 } 50 }