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