Class Resource
- java.lang.Object
-
- org.codehaus.cargo.maven3.configuration.Resource
-
public class Resource extends Object
Holds configuration data for the<resource>
tag used to configure the plugin in thepom.xml
file.
-
-
Constructor Summary
Constructors Constructor Description Resource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
createResource(String containerId, CargoProject project)
Create the resource object.String
getName()
Map<String,String>
getParameters()
String
getType()
void
setName(String name)
void
setParameters(Map<String,String> parameters)
void
setType(String type)
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- Resource name.
-
setName
public void setName(String name)
- Parameters:
name
- Resource name.
-
getType
public String getType()
- Returns:
- Resource type.
-
setType
public void setType(String type)
- Parameters:
type
- Resource type.
-
setParameters
public void setParameters(Map<String,String> parameters)
- Parameters:
parameters
- Resource parameters.
-
createResource
public Resource createResource(String containerId, CargoProject project)
Create the resource object.- Parameters:
containerId
- Container identifier.project
- Cargo project.- Returns:
- Cargo resource object.
-
-