use person object for blame author informations

This commit is contained in:
Sebastian Sdorra
2011-09-15 10:44:00 +02:00
parent f4367f2684
commit 220dce25f0
4 changed files with 194 additions and 95 deletions

View File

@@ -56,18 +56,17 @@ public class BlameLine
* Constructs ...
*
*
* @param emailAddress
* @param name
*
* @param author
* @param when
* @param revision
* @param code
* @param lineNumber
*/
public BlameLine(String emailAddress, String name, Date when,
String revision, String code, int lineNumber)
public BlameLine(Person author, Date when, String revision, String code,
int lineNumber)
{
this.emailAddress = emailAddress;
this.name = name;
this.author = author;
this.when = when;
this.revision = revision;
this.code = code;
@@ -76,6 +75,17 @@ public class BlameLine
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
*
* @return
*/
public Person getAuthor()
{
return author;
}
/**
* Method description
*
@@ -87,17 +97,6 @@ public class BlameLine
return code;
}
/**
* Method description
*
*
* @return
*/
public String getEmailAddress()
{
return emailAddress;
}
/**
* Method description
*
@@ -109,17 +108,6 @@ public class BlameLine
return lineNumber;
}
/**
* Method description
*
*
* @return
*/
public String getName()
{
return name;
}
/**
* Method description
*
@@ -144,6 +132,17 @@ public class BlameLine
//~--- set methods ----------------------------------------------------------
/**
* Method description
*
*
* @param author
*/
public void setAuthor(Person author)
{
this.author = author;
}
/**
* Method description
*
@@ -155,17 +154,6 @@ public class BlameLine
this.code = code;
}
/**
* Method description
*
*
* @param emailAddress
*/
public void setEmailAddress(String emailAddress)
{
this.emailAddress = emailAddress;
}
/**
* Method description
*
@@ -177,17 +165,6 @@ public class BlameLine
this.lineNumber = lineNumber;
}
/**
* Method description
*
*
* @param name
*/
public void setName(String name)
{
this.name = name;
}
/**
* Method description
*
@@ -212,18 +189,15 @@ public class BlameLine
//~--- fields ---------------------------------------------------------------
/** Field description */
private Person author;
/** Field description */
private String code;
/** Field description */
private String emailAddress;
/** Field description */
private int lineNumber;
/** Field description */
private String name;
/** Field description */
private String revision;