Author: simonetripodi
Date: Sat Jan 29 22:55:39 2011
New Revision: 1065138

URL: http://svn.apache.org/viewvc?rev=1065138&view=rev
Log:
first checkin of SetPropertyBuilder

Added:
    
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
   (with props)
Modified:
    
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedRuleBuilder.java

Modified: 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedRuleBuilder.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedRuleBuilder.java?rev=1065138&r1=1065137&r2=1065138&view=diff
==============================================================================
--- 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedRuleBuilder.java
 (original)
+++ 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedRuleBuilder.java
 Sat Jan 29 22:55:39 2011
@@ -98,10 +98,9 @@ public interface LinkedRuleBuilder {
     /**
      * Sets an individual property on the object at the top of the stack, 
based on attributes with specified names.
      *
-     * @param name Name of the attribute that will contain the name of the 
property to be set
-     * @param value Name of the attribute that will contain the value to which 
the property should be set
+     * @param attributePropertyName Name of the attribute that will contain 
the name of the property to be set
      */
-    BackToLinkedRuleBuilder setProperty(String name, String value);
+    SetPropertyBuilder setProperty(String attributePropertyName);
 
     /**
      * Calls a method on the root object on the stack, passing the top object 
(child) as an argument.

Added: 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java?rev=1065138&view=auto
==============================================================================
--- 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
 (added)
+++ 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
 Sat Jan 29 22:55:39 2011
@@ -0,0 +1,33 @@
+/* $Id$
+ *
+ * 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 org.apache.commons.digester3.rulesbinder;
+
+/**
+ * Builder chained when invoking {@link LinkedRuleBuilder#setProperty(String)}.
+ */
+public interface SetPropertyBuilder extends BackToLinkedRuleBuilder {
+
+    /**
+     * Sets the attribute that will contain the property value.
+     *
+     * @param valueAttributeName The attribute that will contain the property 
value
+     * @return this builder instance
+     */
+    SetPropertyBuilder extractingValueFromAttribute(String valueAttributeName);
+
+}

Propchange: 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: 
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/SetPropertyBuilder.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain


Reply via email to