@ThreadSafe public class Model extends Object implements Serializable
| Constructor and Description |
|---|
Model() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLicense(License license)
Adds a new license to the list of licenses.
|
String |
getArtifactId()
Get the value of artifactId.
|
String |
getDescription()
Get the value of description.
|
String |
getGroupId()
Get the value of groupId.
|
List<License> |
getLicenses()
Returns the list of licenses.
|
String |
getName()
Get the value of name.
|
String |
getOrganization()
Get the value of organization.
|
String |
getOrganizationUrl()
Get the value of organizationUrl.
|
String |
getParentArtifactId()
Get the value of parentArtifactId.
|
String |
getParentGroupId()
Get the value of parentGroupId.
|
String |
getParentVersion()
Get the value of parentVersion.
|
String |
getProjectURL()
Get the value of projectURL.
|
String |
getVersion()
Get the value of version.
|
static String |
interpolateString(String text,
Properties properties)
A utility function that will interpolate strings based on values given in
the properties file.
|
void |
processProperties(Properties properties)
Process the Maven properties file and interpolate all properties.
|
void |
setArtifactId(String artifactId)
Set the value of artifactId.
|
void |
setDescription(String description)
Set the value of description.
|
void |
setGroupId(String groupId)
Set the value of groupId.
|
void |
setName(String name)
Set the value of name.
|
void |
setOrganization(String organization)
Set the value of organization.
|
void |
setOrganizationUrl(String organizationUrl)
Set the value of organizationUrl.
|
void |
setParentArtifactId(String parentArtifactId)
Set the value of parentArtifactId.
|
void |
setParentGroupId(String parentGroupId)
Set the value of parentGroupId.
|
void |
setParentVersion(String parentVersion)
Set the value of parentVersion.
|
void |
setProjectURL(String projectURL)
Set the value of projectURL.
|
void |
setVersion(String version)
Set the value of version.
|
public String getName()
public void setName(String name)
name - new value of namepublic String getOrganization()
public void setOrganization(String organization)
organization - new value of organizationpublic String getOrganizationUrl()
public void setOrganizationUrl(String organizationUrl)
organizationUrl - new value of organizationUrlpublic String getDescription()
public void setDescription(String description)
description - new value of descriptionpublic String getGroupId()
public void setGroupId(String groupId)
groupId - new value of groupIdpublic String getArtifactId()
public void setArtifactId(String artifactId)
artifactId - new value of artifactIdpublic String getVersion()
public void setVersion(String version)
version - new value of versionpublic String getParentGroupId()
public void setParentGroupId(String parentGroupId)
parentGroupId - new value of parentGroupIdpublic String getParentArtifactId()
public void setParentArtifactId(String parentArtifactId)
parentArtifactId - new value of parentArtifactIdpublic String getParentVersion()
public void setParentVersion(String parentVersion)
parentVersion - new value of parentVersionpublic List<License> getLicenses()
public void addLicense(License license)
license - the license to addpublic String getProjectURL()
public void setProjectURL(String projectURL)
projectURL - new value of projectURLpublic void processProperties(Properties properties)
properties - new value of propertiespublic static String interpolateString(String text, Properties properties)
A utility function that will interpolate strings based on values given in the properties file. It will also interpolate the strings contained within the properties file so that properties can reference other properties.
Note: if there is no property found the reference will be removed. In other words, if the interpolated string will be replaced with an empty string.
Example:
Properties p = new Properties();
p.setProperty("key", "value");
String s = interpolateString("'${key}' and '${nothing}'", p);
System.out.println(s);
Will result in:
'value' and ''
text - the string that contains references to properties.properties - a collection of properties that may be referenced
within the text.Copyright © 2012–2020 OWASP. All rights reserved.