commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1065041 - in /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder: LinkedNestedPropertiesBuilder.java LinkedRuleBuilder.java
Date Sat, 29 Jan 2011 15:40:36 GMT
Author: simonetripodi
Date: Sat Jan 29 15:40:36 2011
New Revision: 1065041

URL: http://svn.apache.org/viewvc?rev=1065041&view=rev
Log:
first checkin of LinkedNestedPropertiesBuilder interface, chained when setNestedProperties()
is invoked

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

Added: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedNestedPropertiesBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedNestedPropertiesBuilder.java?rev=1065041&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedNestedPropertiesBuilder.java
(added)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedNestedPropertiesBuilder.java
Sat Jan 29 15:40:36 2011
@@ -0,0 +1,44 @@
+/* $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#setNestedProperties()}.
+ */
+public interface LinkedNestedPropertiesBuilder extends BackToLinkedRuleBuilder {
+
+    /**
+     * Allows element2property mapping to be overridden.
+     *
+     * @param elementName The child xml element to match
+     * @param propertyName The java bean property to be assigned the value
+     * @return this builder instance
+     */
+    LinkedNestedPropertiesBuilder addAlias(String elementName, String propertyName);
+
+    /**
+     * When set to true, any text within child elements will have leading
+     * and trailing whitespace removed before assignment to the target
+     * object.
+     *
+     * @param trimData
+     * @return this builder instance
+     */
+    LinkedNestedPropertiesBuilder trimData(boolean trimData);
+
+}

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

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

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

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=1065041&r1=1065040&r2=1065041&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 15:40:36 2011
@@ -118,7 +118,7 @@ public interface LinkedRuleBuilder {
      * Sets properties on the object at the top of the stack,
      * based on child elements with names matching properties on that  object.
      */
-    void setNestedProperties();
+    LinkedNestedPropertiesBuilder setNestedProperties();
 
     /**
      * Calls a method on the (top-1) (parent) object, passing the top object (child) as an
argument,



Mime
View raw message