commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1065047&view=rev
Log:
first checkin of LinkedSetPropertiesBuilder, chained when invoking the setProperties() method

Added:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedSetPropertiesBuilder.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=1065047&r1=1065046&r2=1065047&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:58:04 2011
@@ -131,7 +131,7 @@ public interface LinkedRuleBuilder {
     /**
      * Sets properties on the object at the top of the stack, based on attributes with corresponding
names.
      */
-    void setProperties();
+    LinkedSetPropertiesBuilder setProperties();
 
     /**
      * Sets an individual property on the object at the top of the stack, based on attributes
with specified names.

Added: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedSetPropertiesBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedSetPropertiesBuilder.java?rev=1065047&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedSetPropertiesBuilder.java
(added)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedSetPropertiesBuilder.java
Sat Jan 29 15:58:04 2011
@@ -0,0 +1,46 @@
+/* $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 LinkedSetPropertiesBuilder extends BackToLinkedRuleBuilder {
+
+    /**
+     * Add an additional attribute name to property name mapping.
+     *
+     * @param attributeName The attribute to match
+     * @param propertyName The java bean property to be assigned the value
+     * @return this builder instance
+     */
+    LinkedSetPropertiesBuilder addAlias(String attributeName, String propertyName);
+
+    /**
+     * Sets whether attributes found in the XML without matching properties should be ignored.
+     * 
+     * If set to false, the parsing will throw an {@code NoSuchMethodException}
+     * if an unmatched attribute is found.
+     * This allows to trap misspellings in the XML file.
+     *
+     * @param ignoreMissingProperty false to stop the parsing on unmatched attributes
+     * @return this builder instance
+     */
+    LinkedSetPropertiesBuilder ignoreMissingProperty(boolean ignoreMissingProperty);
+
+}

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

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

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



Mime
View raw message