|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.rules.constraint.property.AbstractPropertyConstraint
org.springframework.rules.constraint.property.RequiredIfTrue
org.springframework.rules.constraint.property.RequiredIfOthersPresent
public class RequiredIfOthersPresent
| Constructor Summary | |
|---|---|
RequiredIfOthersPresent(String propertyName,
String otherPropertyNames)
Tests that the property is required if all "other properties" are present. |
|
RequiredIfOthersPresent(String propertyName,
String[] otherPropertyNames)
Tests that the property is required if all "other properties" are present. |
|
RequiredIfOthersPresent(String propertyName,
String[] otherPropertyNames,
LogicalOperator operator)
Tests that the property is required if "other properties" are present. |
|
RequiredIfOthersPresent(String propertyName,
String otherPropertyNames,
LogicalOperator operator)
Tests that the property is required if all or any of the "other properties" are present. |
|
| Method Summary | |
|---|---|
boolean |
isCompoundRule()
Does this property constraint effect more than one property? |
boolean |
isDependentOn(String propertyName)
Determine if this rule is dependent on the given property name. |
| Methods inherited from class org.springframework.rules.constraint.property.RequiredIfTrue |
|---|
getConstraint, setConstraint, test, toString |
| Methods inherited from class org.springframework.rules.constraint.property.AbstractPropertyConstraint |
|---|
getPropertyName, setPropertyName, test |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RequiredIfOthersPresent(String propertyName,
String[] otherPropertyNames)
otherPropertyNames - to test
public RequiredIfOthersPresent(String propertyName,
String[] otherPropertyNames,
LogicalOperator operator)
otherPropertyNames - to testoperator - Either AND or OR.
public RequiredIfOthersPresent(String propertyName,
String otherPropertyNames)
otherPropertyNames - one or more other properties, delimited by commas.
public RequiredIfOthersPresent(String propertyName,
String otherPropertyNames,
LogicalOperator operator)
otherPropertyNames - one or more other properties, delimited by commas.operator - the logical operator, either AND or OR.| Method Detail |
|---|
public boolean isDependentOn(String propertyName)
RequiredIfTrue
isDependentOn in interface PropertyConstraintisDependentOn in class RequiredIfTruepublic boolean isCompoundRule()
PropertyConstraint
isCompoundRule in interface PropertyConstraintisCompoundRule in class AbstractPropertyConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||