de.smartics.ci.config.maven
Class MavenPom

Package class diagram package MavenPom
java.lang.Object
  extended by de.smartics.ci.config.maven.MavenPom

public final class MavenPom
     
     
extends Object

Provides access to information of a Maven POM.


Constructor Summary
MavenPom()
          Default constructor.
 
Method Summary
 String getArtifactId()
          Returns the project's artifact identifier.
 String getDescription()
          Returns the project's description.
 String getGroupId()
          Returns the project's group identifier.
 ScmType getScmType()
          Returns the type of the SCM.
 String getScmUrl()
          Returns the URL to the SCM server of the given type.
 boolean isScmInfoProvided()
          Checks if SCM information is provided.
 void setArtifactId(String artifactId)
          Sets the project's artifact identifier.
 void setDescription(String description)
          Sets the project's description.
 void setGroupId(String groupId)
          Sets the project's group identifier.
 void setScmConnectionString(String connectionString)
          Sets the SCM information to the Maven POM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenPom

public MavenPom()
Default constructor.

Method Detail

getGroupId

public String getGroupId()
Returns the project's group identifier.

Returns:
the project's group identifier.

setGroupId

public void setGroupId(String groupId)
Sets the project's group identifier.

Parameters:
groupId - the project's group identifier.

getArtifactId

public String getArtifactId()
Returns the project's artifact identifier.

Returns:
the project's artifact identifier.

setArtifactId

public void setArtifactId(String artifactId)
Sets the project's artifact identifier.

Parameters:
artifactId - the project's artifact identifier.

getDescription

public String getDescription()
Returns the project's description.

Returns:
the project's description.

setDescription

public void setDescription(String description)
Sets the project's description.

Parameters:
description - the project's description.

getScmType

public ScmType getScmType()
Returns the type of the SCM.

Returns:
the type of the SCM.

getScmUrl

public String getScmUrl()
Returns the URL to the SCM server of the given type.

Returns:
the URL to the SCM server of the given type.

isScmInfoProvided

public boolean isScmInfoProvided()
Checks if SCM information is provided.

Returns:
true if SCM info is provided, false if not.

setScmConnectionString

public void setScmConnectionString(String connectionString)
                            throws de.smartics.util.lang.BlankArgumentException,
                                   IllegalArgumentException
Sets the SCM information to the Maven POM.

Parameters:
connectionString - the connection string of format scm:SCM_TYPE:SCM_URL.
Throws:
de.smartics.util.lang.BlankArgumentException - if connectionString is null.
IllegalArgumentException - if the connectionString does not meet the expected format scm:SCM_TYPE:SCM_URL.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.