You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/01/28 21:29:18 UTC
svn commit: r1064859 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java
Author: simonetripodi
Date: Fri Jan 28 20:29:18 2011
New Revision: 1064859
URL: http://svn.apache.org/viewvc?rev=1064859&view=rev
Log:
first checkin of BackToLinkedRuleBuilder interface
I'm looking for a rule binder that speaks more fluent English, so a binding like
forPattern("boh").withNamespaceURI("http://ciaociao.com")
.objectCreate("acme.Obj").overriddenByAttribute("")
.callMethod("ciccio").withTargetOffset(2).withParamTypes(String.class)
.setProperties();
becomes hard to read... putting in the users shoe, shall I interpret that's a relationship between objectCreate() and callMethod()?
It's not clear even to me, so
forPattern("boh").withNamespaceURI("http://ciaociao.com")
.objectCreate("acme.Obj").overriddenByAttribute("").then()
.callMethod("ciccio").withTargetOffset(2).withParamTypes(String.class).then()
.setProperties();
would become easier...
Added:
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java (with props)
Added: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java?rev=1064859&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java (added)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java Fri Jan 28 20:29:18 2011
@@ -0,0 +1,27 @@
+/* $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 invoked to back to .
+ */
+interface BackToLinkedRuleBuilder {
+
+ LinkedRuleBuilder then();
+
+}
Propchange: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/BackToLinkedRuleBuilder.java
------------------------------------------------------------------------------
svn:mime-type = text/plain