1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 2.4.0, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.model; 7 8 /** 9 * Class InputSource. 10 * 11 * @version $Revision$ $Date$ 12 */ 13 @SuppressWarnings( "all" ) 14 public class InputSource 15 implements java.io.Serializable, java.lang.Cloneable 16 { 17 18 //--------------------------/ 19 //- Class/Member Variables -/ 20 //--------------------------/ 21 22 /** 23 * 24 * 25 * The identifier of the POM in the format {@code 26 * <groupId>:<artifactId>:<version>}. 27 * 28 * 29 */ 30 private String modelId; 31 32 /** 33 * 34 * 35 * The path/URL of the POM or {@code null} if 36 * unknown. 37 * 38 * 39 */ 40 private String location; 41 42 43 //-----------/ 44 //- Methods -/ 45 //-----------/ 46 47 /** 48 * Method clone. 49 * 50 * @return InputSource 51 */ 52 public InputSource clone() 53 { 54 try 55 { 56 InputSource copy = (InputSource) super.clone(); 57 58 return copy; 59 } 60 catch ( java.lang.Exception ex ) 61 { 62 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 63 + " does not support clone()" ).initCause( ex ); 64 } 65 } //-- InputSource clone() 66 67 /** 68 * Get the path/URL of the POM or {@code null} if unknown. 69 * 70 * @return String 71 */ 72 public String getLocation() 73 { 74 return this.location; 75 } //-- String getLocation() 76 77 /** 78 * Get the identifier of the POM in the format {@code 79 * <groupId>:<artifactId>:<version>}. 80 * 81 * @return String 82 */ 83 public String getModelId() 84 { 85 return this.modelId; 86 } //-- String getModelId() 87 88 /** 89 * Set the path/URL of the POM or {@code null} if unknown. 90 * 91 * @param location a location object. 92 */ 93 public void setLocation( String location ) 94 { 95 this.location = location; 96 } //-- void setLocation( String ) 97 98 /** 99 * Set the identifier of the POM in the format {@code 100 * <groupId>:<artifactId>:<version>}. 101 * 102 * @param modelId a modelId object. 103 */ 104 public void setModelId( String modelId ) 105 { 106 this.modelId = modelId; 107 } //-- void setModelId( String ) 108 109 110 111 @Override 112 public String toString() 113 { 114 return getModelId() + " " + getLocation(); 115 } 116 117 118 }