de.smartics.maven.util.report.link
Class ReportId

Package class diagram package ReportId
java.lang.Object
  extended by de.smartics.maven.util.report.link.ReportId
All Implemented Interfaces:
Serializable

public class ReportId
     
     
extends Object
implements Serializable

Identifies a specific report of a project to reference to.

See Also:
Serialized Form
To Do:
check serial tampering

Field Summary
static String NORMAL_REPORT
          Defines the type for normal reports.
static String TEST_REPORT
          Defines the type for test reports.
 
Constructor Summary
ReportId(String reportArtifactId, String reportType)
          Default constructor.
 
Method Summary
 boolean equals(Object object)
          Returns true if the given object is semantically equal to the given object, false otherwise.
 String getReportArtifactId()
          Returns the report artifact ID this strategy is constructed for.
 String getReportType()
          Returns the type of report generated by the getReportArtifactId() to reference.
 int hashCode()
          Returns the hash code of the object.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL_REPORT

public static final String NORMAL_REPORT
Defines the type for normal reports.

The value of this constant is "normal".

Constant Field Value:
"normal"

TEST_REPORT

public static final String TEST_REPORT
Defines the type for test reports.

The value of this constant is "test".

Constant Field Value:
"test"
Constructor Detail

ReportId

public ReportId(String reportArtifactId,
                String reportType)
Default constructor.

Parameters:
reportArtifactId - the report artifact ID this strategy is constructed for.
reportType - the type of report generated by the getReportArtifactId() to reference.
Method Detail

getReportArtifactId

public String getReportArtifactId()
Returns the report artifact ID this strategy is constructed for.

Returns:
the report artifact ID this strategy is constructed for.

getReportType

public String getReportType()
Returns the type of report generated by the getReportArtifactId() to reference. Typically there can be two kinds of reports: one on the production and one on the test code.

Returns:
the type of report generated by the getReportArtifactId() to reference.

hashCode

public int hashCode()
Returns the hash code of the object.

Overrides:
hashCode in class Object
Returns:
the hash code.

equals

public boolean equals(Object object)
Returns true if the given object is semantically equal to the given object, false otherwise.

Overrides:
equals in class Object
Parameters:
object - the instance to compare to.
Returns:
true if the given object is semantically equal to the given object, false otherwise.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


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