
org.codehaus.mevenide.netbeans.execute.model.NetbeansActionMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nb-project Show documentation
Show all versions of nb-project Show documentation
Implementation of a Netbeans project backed by Maven2 POM files.
The newest version!
/*
* $Id$
*/
package org.codehaus.mevenide.netbeans.execute.model;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import java.util.Date;
/**
* null
*
* @version $Revision$ $Date$
*/
public class NetbeansActionMapping implements java.io.Serializable {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field actionName
*/
private String actionName;
/**
* Field displayName
*/
private String displayName;
/**
* Field recursive
*/
private boolean recursive = true;
/**
* Field packagings
*/
private java.util.List packagings;
/**
* Field goals
*/
private java.util.List goals;
/**
* Field properties
*/
private java.util.Properties properties;
/**
* Field activatedProfiles
*/
private java.util.List activatedProfiles;
//-----------/
//- Methods -/
//-----------/
/**
* Method addActivatedProfile
*
* @param string
*/
public void addActivatedProfile(String string)
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "NetbeansActionMapping.addActivatedProfiles(string) parameter must be instanceof " + String.class.getName() );
}
getActivatedProfiles().add( string );
} //-- void addActivatedProfile(String)
/**
* Method addGoal
*
* @param string
*/
public void addGoal(String string)
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "NetbeansActionMapping.addGoals(string) parameter must be instanceof " + String.class.getName() );
}
getGoals().add( string );
} //-- void addGoal(String)
/**
* Method addPackaging
*
* @param string
*/
public void addPackaging(String string)
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "NetbeansActionMapping.addPackagings(string) parameter must be instanceof " + String.class.getName() );
}
getPackagings().add( string );
} //-- void addPackaging(String)
/**
* Method addProperty
*
* @param key
* @param value
*/
public void addProperty(String key, String value)
{
getProperties().put( key, value );
} //-- void addProperty(String, String)
/**
* Get null
*/
public String getActionName()
{
return this.actionName;
} //-- String getActionName()
/**
* Method getActivatedProfiles
*/
public java.util.List getActivatedProfiles()
{
if ( this.activatedProfiles == null )
{
this.activatedProfiles = new java.util.ArrayList();
}
return this.activatedProfiles;
} //-- java.util.List getActivatedProfiles()
/**
* Get null
*/
public String getDisplayName()
{
return this.displayName;
} //-- String getDisplayName()
/**
* Method getGoals
*/
public java.util.List getGoals()
{
if ( this.goals == null )
{
this.goals = new java.util.ArrayList();
}
return this.goals;
} //-- java.util.List getGoals()
/**
* Method getPackagings
*/
public java.util.List getPackagings()
{
if ( this.packagings == null )
{
this.packagings = new java.util.ArrayList();
}
return this.packagings;
} //-- java.util.List getPackagings()
/**
* Method getProperties
*/
public java.util.Properties getProperties()
{
if ( this.properties == null )
{
this.properties = new java.util.Properties();
}
return this.properties;
} //-- java.util.Properties getProperties()
/**
* Get null
*/
public boolean isRecursive()
{
return this.recursive;
} //-- boolean isRecursive()
/**
* Method removeActivatedProfile
*
* @param string
*/
public void removeActivatedProfile(String string)
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "NetbeansActionMapping.removeActivatedProfiles(string) parameter must be instanceof " + String.class.getName() );
}
getActivatedProfiles().remove( string );
} //-- void removeActivatedProfile(String)
/**
* Method removeGoal
*
* @param string
*/
public void removeGoal(String string)
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "NetbeansActionMapping.removeGoals(string) parameter must be instanceof " + String.class.getName() );
}
getGoals().remove( string );
} //-- void removeGoal(String)
/**
* Method removePackaging
*
* @param string
*/
public void removePackaging(String string)
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "NetbeansActionMapping.removePackagings(string) parameter must be instanceof " + String.class.getName() );
}
getPackagings().remove( string );
} //-- void removePackaging(String)
/**
* Set null
*
* @param actionName
*/
public void setActionName(String actionName)
{
this.actionName = actionName;
} //-- void setActionName(String)
/**
* Set null
*
* @param activatedProfiles
*/
public void setActivatedProfiles(java.util.List activatedProfiles)
{
this.activatedProfiles = activatedProfiles;
} //-- void setActivatedProfiles(java.util.List)
/**
* Set null
*
* @param displayName
*/
public void setDisplayName(String displayName)
{
this.displayName = displayName;
} //-- void setDisplayName(String)
/**
* Set List of goals and phases to execute, order is important
*
* @param goals
*/
public void setGoals(java.util.List goals)
{
this.goals = goals;
} //-- void setGoals(java.util.List)
/**
* Set Packaging types that this action mapping works for. *
* for any.
*
* @param packagings
*/
public void setPackagings(java.util.List packagings)
{
this.packagings = packagings;
} //-- void setPackagings(java.util.List)
/**
* Set null
*
* @param properties
*/
public void setProperties(java.util.Properties properties)
{
this.properties = properties;
} //-- void setProperties(java.util.Properties)
/**
* Set null
*
* @param recursive
*/
public void setRecursive(boolean recursive)
{
this.recursive = recursive;
} //-- void setRecursive(boolean)
private String modelEncoding = "UTF-8";
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
}
public String getModelEncoding()
{
return modelEncoding;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy