geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r902880 - in /geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata: ElementDescriptor.java Scope.java
Date Mon, 25 Jan 2010 17:16:43 GMT
Author: dwoods
Date: Mon Jan 25 17:16:42 2010
New Revision: 902880

URL: http://svn.apache.org/viewvc?rev=902880&view=rev
Log:
GERONIMO-5014 putting the patch back in

Added:
    geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/Scope.java
  (with props)
Modified:
    geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/ElementDescriptor.java

Modified: geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/ElementDescriptor.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/ElementDescriptor.java?rev=902880&r1=902879&r2=902880&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/ElementDescriptor.java
(original)
+++ geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/ElementDescriptor.java
Mon Jan 25 17:16:42 2010
@@ -16,6 +16,7 @@
  */
 package javax.validation.metadata;
 
+import java.lang.annotation.ElementType;
 import java.util.Set;
 
 /**
@@ -29,5 +30,17 @@
 
     Set<ConstraintDescriptor<?>> getConstraintDescriptors();
 
-    Set<ConstraintDescriptor<?>> getUnorderedConstraintDescriptorsMatchingGroups(Class<?>...
groups);
+    ConstraintFinder findConstraints();
+
+	interface ConstraintFinder {
+        ConstraintFinder unorderedAndMatchingGroups(Class<?>... groups);
+
+        ConstraintFinder lookingAt(Scope scope);
+
+        ConstraintFinder declaredOn(ElementType... types);
+
+        Set<ConstraintDescriptor<?>> getConstraintDescriptors();
+
+        boolean hasConstraints();
+    }
 }

Added: geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/Scope.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/Scope.java?rev=902880&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/Scope.java
(added)
+++ geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/Scope.java
Mon Jan 25 17:16:42 2010
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package javax.validation.metadata;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public enum Scope {
+	LOCAL_ELEMENT,
+	HIERARCHY
+}
+

Propchange: geronimo/specs/trunk/geronimo-validation_1.0_spec/src/main/java/javax/validation/metadata/Scope.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message