|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.businessobject.AccountingLineOverride
public class AccountingLineOverride
This class helps implement AccountingLine overrides. It is not persisted itself, but it simplifies working with the persisted codes. Instances break the code into components. Static methods help with the AccountingLine.
Nested Class Summary | |
---|---|
static class |
AccountingLineOverride.CODE
These codes are the way the override is persisted in the AccountingLine. |
static class |
AccountingLineOverride.COMPONENT
These are the somewhat independent components of an override. |
Field Summary | |
---|---|
static List<String> |
REFRESH_FIELDS
The names of the AccountingLine properties that the processForOutput() and determineNeededOverrides() methods use. |
Method Summary | |
---|---|
static AccountingLineOverride |
determineNeededOverrides(AccountingLine line)
Determines what overrides the given line needs. |
String |
getCode()
Gets the code of this override. |
boolean |
hasComponent(Integer component)
Checks whether this override contains the given component. |
static boolean |
isValidCode(String code)
Returns whether the given String is a valid override code. |
static boolean |
isValidComponentSet(Integer[] components)
Returns whether the given Integers are a valid set of components. |
boolean |
isValidMask(AccountingLineOverride mask)
Returns whether this override, when masked by the given override, is valid. |
AccountingLineOverride |
mask(AccountingLineOverride mask)
Returns the AccountingLineOverride that has the components of this AccountingLineOverride minus any components not in the given mask. |
static boolean |
needsExpiredAccountOverride(Account account)
Returns whether the given account needs an expired account override. |
static boolean |
needsNonFringAccountOverride(Account account)
Returns whether the given account needs an expired account override. |
static boolean |
needsObjectBudgetOverride(Account account,
ObjectCode objectCode)
Returns whether the given object code needs an object budget override |
static void |
populateFromInput(AccountingLine line)
On the given AccountingLine, converts override input checkboxes from a Struts Form into a persistable override code. |
static void |
processForOutput(AccountingLine line)
Prepares the given AccountingLine in a Struts Action for display by a JSP. |
String |
toString()
|
static AccountingLineOverride |
valueOf(Integer[] components)
Factory method from components. |
static AccountingLineOverride |
valueOf(Set components)
|
static AccountingLineOverride |
valueOf(String code)
Factory method from code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final List<String> REFRESH_FIELDS
Method Detail |
---|
public boolean hasComponent(Integer component)
component
-
public String getCode()
public String toString()
toString
in class Object
Object.toString()
public AccountingLineOverride mask(AccountingLineOverride mask)
&
(a bit-wise and), if the components were bits.
mask
-
IllegalArgumentException
- if there is no such valid combination of componentspublic boolean isValidMask(AccountingLineOverride mask)
mask
-
public static boolean isValidCode(String code)
code
-
public static boolean isValidComponentSet(Integer[] components)
components
-
public static AccountingLineOverride valueOf(String code)
code
- the override code
IllegalArgumentException
- if the given code is not validpublic static AccountingLineOverride valueOf(Integer[] components)
components
- the override components, treated as a set
IllegalArgumentException
- if the given set of components is not validpublic static AccountingLineOverride valueOf(Set components)
public static void populateFromInput(AccountingLine line)
line
- public static void processForOutput(AccountingLine line)
line
- public static AccountingLineOverride determineNeededOverrides(AccountingLine line)
line
-
public static boolean needsExpiredAccountOverride(Account account)
account
-
public static boolean needsNonFringAccountOverride(Account account)
account
-
public static boolean needsObjectBudgetOverride(Account account, ObjectCode objectCode)
account
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |