Class MahoeAccountStatement
java.lang.Object
de.frankmuenster.mahoe.statements.MahoeAccountStatement
An account statement bean with needed fields
- Author:
- Frank Münster
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty statement objectMahoeAccountStatement
(Date createDate) Creates a new filled statement objectMahoeAccountStatement
(Date createDate, String name1) Creates a new partially filled statement objectMahoeAccountStatement
(Date createDate, String name1, String name2) Creates a new partially filled statement objectMahoeAccountStatement
(Date createDate, String name1, String name2, String name3) Creates a new partially filled statement objectCreates a new filled statement object -
Method Summary
Modifier and TypeMethodDescriptiongetName1()
getName2()
getName3()
Returns the number of the account statement.getYear()
Returns the year of the account statement.boolean
Checks is all mandatory fields are set.void
setComment
(String comment) void
setCreateDate
(Date createDate) void
void
void
void
Sets the number of the account statement.void
Sets the year of the account statement.
-
Constructor Details
-
MahoeAccountStatement
public MahoeAccountStatement()Creates a new empty statement object -
MahoeAccountStatement
Creates a new filled statement object- Parameters:
createDate
-
-
MahoeAccountStatement
Creates a new partially filled statement object- Parameters:
createDate
-name1
-
-
MahoeAccountStatement
Creates a new partially filled statement object- Parameters:
createDate
-name1
-name2
-
-
MahoeAccountStatement
Creates a new partially filled statement object- Parameters:
createDate
-name1
-name2
-name3
-
-
MahoeAccountStatement
public MahoeAccountStatement(Date createDate, String name1, String name2, String name3, String comment) Creates a new filled statement object- Parameters:
createDate
-name1
-name2
-name3
-comment
-
-
-
Method Details
-
getComment
- Returns:
- the comment
-
getCreateDate
- Returns:
- the createDate
-
getName1
- Returns:
- the name1
-
getName2
- Returns:
- the name2
-
getName3
- Returns:
- the name3
-
getNumber
Returns the number of the account statement. If not set explicitly the month of the creation date is used- Returns:
- the number of the account statement
-
getYear
Returns the year of the account statement. If not set explicitly the year of the creation date is used- Returns:
- the year of the account statement
-
isComplete
public boolean isComplete()Checks is all mandatory fields are set. This is actually only the createDate- Returns:
- true if all mandatory fields are set, false else.
-
setComment
- Parameters:
comment
- the comment to set
-
setCreateDate
- Parameters:
createDate
- the createDate to set
-
setName1
- Parameters:
name1
- the name1 to set
-
setName2
- Parameters:
name2
- the name2 to set
-
setName3
- Parameters:
name3
- the name3 to set
-
setNumber
Sets the number of the account statement.- Parameters:
number
-
-
setYear
Sets the year of the account statement.- Parameters:
year
-
-