Revision: 1208
Author: jhoskens
Date: 2006-06-21 02:42:27 -0700 (Wed, 21 Jun 2006)
ViewCVS: http://svn.sourceforge.net/spring-rich-c/?rev=1208&view=rev
Log Message:
-----------
Added XOR: patch from issue RCP-370
Modified Paths:
--------------
trunk/spring-richclient/support/src/main/java/org/springframework/rules/factory/Constraints.java
Modified:
trunk/spring-richclient/support/src/main/java/org/springframework/rules/factory/Constraints.java
===================================================================
---
trunk/spring-richclient/support/src/main/java/org/springframework/rules/factory/Constraints.java
2006-06-21 09:08:04 UTC (rev 1207)
+++
trunk/spring-richclient/support/src/main/java/org/springframework/rules/factory/Constraints.java
2006-06-21 09:42:27 UTC (rev 1208)
@@ -41,6 +41,7 @@
import org.springframework.rules.constraint.RelationalOperator;
import org.springframework.rules.constraint.Required;
import org.springframework.rules.constraint.StringLengthConstraint;
+import org.springframework.rules.constraint.XOr;
import org.springframework.rules.constraint.Like.LikeType;
import
org.springframework.rules.constraint.property.CompoundPropertyConstraint;
import org.springframework.rules.constraint.property.NegatedPropertyConstraint;
@@ -470,13 +471,23 @@
* Returns a new, empty disjunction prototype, capable of composing
* individual constraints where 'ANY' must test true.
*
- * @return the UnaryAnd
+ * @return the UnaryOr
*/
public Or disjunction() {
return new Or();
}
/**
+ * Returns a new, empty exclusive disjunction prototype, capable of
composing
+ * individual constraints where only one must test true.
+ *
+ * @return the UnaryXOr
+ */
+ public XOr exclusiveDisjunction() {
+ return new XOr();
+ }
+
+ /**
* Negate the specified constraint.
*
* @param constraint The constraint to negate
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs