1 /* 2 Licensed to the Apache Software Foundation (ASF) under one 3 or more contributor license agreements. See the NOTICE file 4 distributed with this work for additional information 5 regarding copyright ownership. The ASF licenses this file 6 to you under the Apache License, Version 2.0 (the 7 "License"); you may not use this file except in compliance 8 with the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, 13 software distributed under the License is distributed on an 14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 KIND, either express or implied. See the License for the 16 specific language governing permissions and limitations 17 under the License. 18 =================== DO NOT EDIT THIS FILE ==================== 19 Generated by Modello 2.4.0, 20 any modifications will be overwritten. 21 ============================================================== 22 */ 23 24 package org.apache.maven.model; 25 26 /** 27 * Class InputSource. 28 * 29 * @version $Revision$ $Date$ 30 */ 31 @SuppressWarnings( "all" ) 32 public class InputSource 33 implements java.io.Serializable, java.lang.Cloneable 34 { 35 36 //--------------------------/ 37 //- Class/Member Variables -/ 38 //--------------------------/ 39 40 /** 41 * 42 * 43 * The identifier of the POM in the format {@code 44 * <groupId>:<artifactId>:<version>}. 45 * 46 * 47 */ 48 private String modelId; 49 50 /** 51 * 52 * 53 * The path/URL of the POM or {@code null} if 54 * unknown. 55 * 56 * 57 */ 58 private String location; 59 60 61 //-----------/ 62 //- Methods -/ 63 //-----------/ 64 65 /** 66 * Method clone. 67 * 68 * @return InputSource 69 */ 70 public InputSource clone() 71 { 72 try 73 { 74 InputSource copy = (InputSource) super.clone(); 75 76 return copy; 77 } 78 catch ( java.lang.Exception ex ) 79 { 80 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 81 + " does not support clone()" ).initCause( ex ); 82 } 83 } //-- InputSource clone() 84 85 /** 86 * Get the path/URL of the POM or {@code null} if unknown. 87 * 88 * @return String 89 */ 90 public String getLocation() 91 { 92 return this.location; 93 } //-- String getLocation() 94 95 /** 96 * Get the identifier of the POM in the format {@code 97 * <groupId>:<artifactId>:<version>}. 98 * 99 * @return String 100 */ 101 public String getModelId() 102 { 103 return this.modelId; 104 } //-- String getModelId() 105 106 /** 107 * Set the path/URL of the POM or {@code null} if unknown. 108 * 109 * @param location a location object. 110 */ 111 public void setLocation( String location ) 112 { 113 this.location = location; 114 } //-- void setLocation( String ) 115 116 /** 117 * Set the identifier of the POM in the format {@code 118 * <groupId>:<artifactId>:<version>}. 119 * 120 * @param modelId a modelId object. 121 */ 122 public void setModelId( String modelId ) 123 { 124 this.modelId = modelId; 125 } //-- void setModelId( String ) 126 127 128 129 @Override 130 public String toString() 131 { 132 return getModelId() + " " + getLocation(); 133 } 134 135 136 }