001 /*
002 =================== DO NOT EDIT THIS FILE ====================
003 Generated by Modello 1.4.1 on 2013-02-24 03:31:02,
004 any modifications will be overwritten.
005 ==============================================================
006 */
007
008 package org.apache.maven.model;
009
010 /**
011 * Class InputSource.
012 *
013 * @version $Revision$ $Date$
014 */
015 @SuppressWarnings( "all" )
016 public class InputSource
017 implements java.io.Serializable, java.lang.Cloneable
018 {
019
020 //--------------------------/
021 //- Class/Member Variables -/
022 //--------------------------/
023
024 /**
025 *
026 *
027 * The identifier of the POM in the format {@code
028 * <groupId>:<artifactId>:<version>}.
029 *
030 *
031 */
032 private String modelId;
033
034 /**
035 *
036 *
037 * The path/URL of the POM or {@code null} if
038 * unknown.
039 *
040 *
041 */
042 private String location;
043
044
045 //-----------/
046 //- Methods -/
047 //-----------/
048
049 /**
050 * Method clone.
051 *
052 * @return InputSource
053 */
054 public InputSource clone()
055 {
056 try
057 {
058 InputSource copy = (InputSource) super.clone();
059
060 return copy;
061 }
062 catch ( java.lang.Exception ex )
063 {
064 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
065 + " does not support clone()" ).initCause( ex );
066 }
067 } //-- InputSource clone()
068
069 /**
070 * Get the path/URL of the POM or {@code null} if unknown.
071 *
072 * @return String
073 */
074 public String getLocation()
075 {
076 return this.location;
077 } //-- String getLocation()
078
079 /**
080 * Get the identifier of the POM in the format {@code
081 * <groupId>:<artifactId>:<version>}.
082 *
083 * @return String
084 */
085 public String getModelId()
086 {
087 return this.modelId;
088 } //-- String getModelId()
089
090 /**
091 * Set the path/URL of the POM or {@code null} if unknown.
092 *
093 * @param location
094 */
095 public void setLocation( String location )
096 {
097 this.location = location;
098 } //-- void setLocation( String )
099
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 }