org.kuali.kfs.sys.document.validation.impl
Class AccountingLineBranchingValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.BranchingValidation
          extended by org.kuali.kfs.sys.document.validation.impl.AccountingLineBranchingValidation
All Implemented Interfaces:
Validation

public class AccountingLineBranchingValidation
extends BranchingValidation


Field Summary
protected  AccountingLine accountingLineForValidation
           
static String IS_NEW_LINE
           
static String IS_OLD_LINE
           
 
Fields inherited from class org.kuali.kfs.sys.document.validation.BranchingValidation
branchMap, parameterProperties, shouldQuitOnFail
 
Constructor Summary
AccountingLineBranchingValidation()
           
 
Method Summary
protected  String determineBranch(AttributedDocumentEvent event)
          Determines which branch, if any, within the branchMap should be used as the validation to take.
 AccountingLine getAccountingLineForValidation()
          Gets the accountingLineForValidation attribute.
 void setAccountingLineForValidation(AccountingLine accountingLine)
          Sets the accountingLineForValidation attribute value.
 
Methods inherited from class org.kuali.kfs.sys.document.validation.BranchingValidation
getBranchMap, getParameterProperties, setBranchMap, setParameterProperties, setShouldQuitOnFail, shouldQuitOnFail, stageValidation, validate
 
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation
populateParameterFromEvent, populateParametersFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_NEW_LINE

public static final String IS_NEW_LINE
See Also:
Constant Field Values

IS_OLD_LINE

public static final String IS_OLD_LINE
See Also:
Constant Field Values

accountingLineForValidation

protected AccountingLine accountingLineForValidation
Constructor Detail

AccountingLineBranchingValidation

public AccountingLineBranchingValidation()
Method Detail

determineBranch

protected String determineBranch(AttributedDocumentEvent event)
Description copied from class: BranchingValidation
Determines which branch, if any, within the branchMap should be used as the validation to take.

Specified by:
determineBranch in class BranchingValidation
Parameters:
event - the event which triggered this validation
Returns:
the name of the branch to take, or a null or empty string to not take any branch and simply pass validation as true

getAccountingLineForValidation

public AccountingLine getAccountingLineForValidation()
Gets the accountingLineForValidation attribute.

Returns:
Returns the accountingLineForValidation.

setAccountingLineForValidation

public void setAccountingLineForValidation(AccountingLine accountingLine)
Sets the accountingLineForValidation attribute value.

Parameters:
accountingLineForValidation - The accountingLineForValidation to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.