1 /* 2 * Licensed under the Apache License, Version 2.0 (the "License"); 3 * you may not use this file except in compliance with the License. 4 * You may obtain a copy of the License at 5 * 6 * http://www.apache.org/licenses/LICENSE-2.0 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, 10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 * See the License for the specific language governing permissions and 12 * limitations under the License. 13 */ 14 /* 15 * This file has been modified by Chris Pheby in accordance with Section 4.2 16 * of the Apache Software License 17 */ 18 package org.jadira.dependencynavigator.assembler; 19 20 import org.apache.maven.model.Model; 21 22 /** 23 * Type safe wrapper. ensures that raw models cannot be used where assembled ones are required 24 */ 25 public class AssembledModel { 26 private Model assembledModel; 27 28 /** 29 * This class should <b>only</b> be instantiated by the <code>org.jadira.dependencynavigator.Assembler</code> 30 * class 31 */ 32 AssembledModel(Model assembledModel) { 33 this.assembledModel = assembledModel; 34 } 35 36 public Model getAssembledModel() { 37 return this.assembledModel; 38 } 39 40 }