public class CreditSplitValidator extends Object implements Traceable<CreditSplitValidator>
ProposalPerson and/or ProposalPersonUnit by
traversing the tree of ProposalPerson ProposalPersonUnit instances.| Constructor and Description |
|---|
CreditSplitValidator() |
| Modifier and Type | Method and Description |
|---|---|
static CreditSplitValidator |
getInstance() |
CreditSplitValidator |
getProxy(CreditSplitValidator archetype)
Rely on the class to know how to build its own proxy for trace logging
|
protected boolean |
isCreditSplitValid(org.kuali.rice.core.api.util.type.KualiDecimal value)
Determine if the value of the credit split is valid.
|
boolean |
validate(Collection<ProposalPerson> investigators,
InvestigatorCreditType creditType)
Validates credit splits of all investigators in a
. |
boolean |
validate(ProposalDevelopmentDocument document)
Validates the credit splits of an entire document by traversing it.
|
boolean |
validateCreditSplit(Iterator<? extends CreditSplit> creditSplit_it,
InvestigatorCreditType creditType,
org.kuali.kra.proposaldevelopment.rules.CreditSplitValidator.DecimalHolder lesserCummulative)
Validates a collection of anything splits.
|
boolean |
validateCreditSplitable(Iterator<? extends CreditSplitable> splitable_it,
InvestigatorCreditType creditType,
org.kuali.kra.proposaldevelopment.rules.CreditSplitValidator.DecimalHolder greaterCummulative)
Validates a collection of anything splitable.
|
public boolean validate(ProposalDevelopmentDocument document)
document - The document to validate the credit splits ofpublic boolean validate(Collection<ProposalPerson> investigators, InvestigatorCreditType creditType)
ProposalDevelopmentDocument. Takes a
Collection of investigators for a given credit type, and validates credit splits
for each investigator as well as iterating and validating credit splits for each unit belonging to an
investigator.investigators - creditTypeCode - public boolean validateCreditSplitable(Iterator<? extends CreditSplitable> splitable_it, InvestigatorCreditType creditType, org.kuali.kra.proposaldevelopment.rules.CreditSplitValidator.DecimalHolder greaterCummulative)
CreditSplit instances.splitable_it - creditType - greaterCummulative - public boolean validateCreditSplit(Iterator<? extends CreditSplit> creditSplit_it, InvestigatorCreditType creditType, org.kuali.kra.proposaldevelopment.rules.CreditSplitValidator.DecimalHolder lesserCummulative)
creditSplit_it - creditType - lesserCummulative - true if it is a valid percentage (falls between 0.00 and 100.00)protected boolean isCreditSplitValid(org.kuali.rice.core.api.util.type.KualiDecimal value)
value - of the credit split to validatefalse if negative or greater than 100.00public static CreditSplitValidator getInstance()
public CreditSplitValidator getProxy(CreditSplitValidator archetype)
TraceablegetProxy in interface Traceable<CreditSplitValidator>archetype - instance applied to the proxy.T with archetype setTraceable.getProxy(java.lang.Object)Copyright © 2013 The Kuali Foundation. All Rights Reserved.