View Javadoc

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