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 15:28:22 UTC
svn commit: r1064694 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java
Author: simonetripodi
Date: Fri Jan 28 14:28:21 2011
New Revision: 1064694
URL: http://svn.apache.org/viewvc?rev=1064694&view=rev
Log:
first checkin of LinkedCallMethodBuilder class, chained when creating a callMethod() binding
Added:
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java (with props)
Added: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java?rev=1064694&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java (added)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java Fri Jan 28 14:28:21 2011
@@ -0,0 +1,47 @@
+/* $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#objectCreate(String)}.
+ */
+public interface LinkedCallMethodBuilder extends LinkedRuleBuilder {
+
+ /**
+ * Sets the location of the target object.
+ *
+ * Positive numbers are relative to the top of the digester object stack.
+ * Negative numbers are relative to the bottom of the stack. Zero implies the top object on the stack.
+ *
+ * @param targetOffset location of the target object.
+ * @return
+ */
+ LinkedCallMethodBuilder withTargetOffset(int targetOffset);
+
+ /**
+ * Sets the Java classes that represent the parameter types of the method arguments.
+ *
+ * If you wish to use a primitive type, specify the corresonding Java wrapper class instead,
+ * such as {@code java.lang.Boolean.TYPE} for a {@code boolean} parameter.
+ *
+ * @param paramTypes The Java classes that represent the parameter types of the method arguments
+ * @return
+ */
+ LinkedCallMethodBuilder withParamTypes(Class<?>...paramTypes);
+
+}
Propchange: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/LinkedCallMethodBuilder.java
------------------------------------------------------------------------------
svn:mime-type = text/plain