commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1067660 - /commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/
Date Sun, 06 Feb 2011 13:28:22 GMT
Author: simonetripodi
Date: Sun Feb  6 13:28:21 2011
New Revision: 1067660

URL: http://svn.apache.org/viewvc?rev=1067660&view=rev
Log:
imported the xmlrules test resources, a tidy version of the propers on /trunk

Added:
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
  (with props)
    commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
  (with props)

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="root">
+        <pattern value="foo">
+            <call-method-rule 
+                  methodname="triple" 
+                  paramcount="3" 
+                  paramtypes="java.lang.String,java.lang.String,java.lang.String"/>
+            <call-param-rule 
+                  paramnumber='0'
+                  attrname='attr'/>
+
+            <pattern value='bar'>
+                <call-param-rule paramnumber='1' from-stack='false'/>
+            </pattern>
+
+            <pattern value='foobar'>
+                <object-create-rule classname="java.lang.String"/>
+
+                <pattern value='ping'>
+                    <call-param-rule paramnumber='2' from-stack='true'/>
+                </pattern>
+            </pattern>
+        </pattern>
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-call-param-rules.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   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.
+-->
+<!-- Input data to test the DigesterLoader -->
+<root>
+    <foo1>
+        <bar1>bar1-value</bar1>
+    </foo1>
+</root>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules-input.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="root/foo1">
+        <node-create-rule />
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test-node-create-rules.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   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.
+-->
+<root>
+    <foo value="foo1">
+        <baz  value="baz1" />
+        <bar>
+            <foo value="foo2" />
+        </bar>
+        <call-method-rule-tests value="cmr1">
+            <longValue>555</longValue>
+            <defaultParamType>somestringvalue</defaultParamType>
+            <pushIt />
+            <mapValue name="test1">foo</mapValue>
+            <mapValue name="test2">bar</mapValue>
+        </call-method-rule-tests>
+        <property>I am a property!</property>
+    </foo>
+
+    <baz value="baz2" />
+
+    <foo value="foo3">
+        <bar>
+            <baz value="baz3" />
+            <foo value="foo4" />
+        </bar>
+        <property>I am a property!</property>
+    </foo>
+</root>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/test.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   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.
+-->
+<!-- Rules to test the DigesterLoader's circular include detection. 
+     Attempting to create a digester with these rules should result
+     in an exception. -->
+<digester-rules>
+    <pattern value="root/foo">
+        <object-create-rule classname="org.apache.commons.digester.xmlrules.ObjectTestImpl"
/>
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+        <set-properties-rule/>
+        <include path="org/apache/commons/digester3/xmlrules/testCircularRules.xml" />
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testCircularRules.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="toplevel/one">
+        <object-create-rule classname="org.apache.commons.digester3.Address" />
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+        <set-properties-rule />
+    </pattern>
+
+    <pattern value="toplevel/two">
+        <object-create-rule classname="org.apache.commons.digester.Address" />
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+        <set-properties-rule>
+            <alias attr-name="alt-street" prop-name="street" />
+            <alias attr-name="alt-city" prop-name="city" />
+            <alias attr-name="alt-state" prop-name="state" />
+        </set-properties-rule>
+    </pattern>
+
+    <pattern value="toplevel/three">
+        <object-create-rule classname="org.apache.commons.digester.Address" />
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+        <set-properties-rule>
+            <alias attr-name="aCity" prop-name="city" />
+            <alias attr-name="state" />
+        </set-properties-rule>
+    </pattern>
+
+    <pattern value="toplevel/four">
+        <object-create-rule classname="org.apache.commons.digester.Address" />
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+        <set-properties-rule>
+            <alias attr-name="alt-city" prop-name="city" />
+        </set-properties-rule>
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testPropertyAliasRules.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="root">
+        <factory-create-rule
+            classname="org.apache.commons.digester3.ObjectCreationFactoryTestImpl"
+            ignore-exceptions="true" />
+        <set-next-rule methodname="add" />
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactory.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="root">
+        <factory-create-rule
+            classname="org.apache.commons.digester.xmlrules.ThrowExceptionCreationFactory"
+            ignore-exceptions="true" />
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactoryignore.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="root">
+        <factory-create-rule classname="org.apache.commons.digester3.xmlrules.ThrowExceptionCreationFactory"
/>
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testfactorynoignore.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="root/foo">
+        <object-create-rule classname="org.apache.commons.digester3.xmlrules.ObjectTestImpl"
/>
+        <set-next-rule methodname="add" paramtype="java.lang.Object" />
+        <set-properties-rule />
+
+        <include path="org/apache/commons/digester3/xmlrules/testrulesinclude.xml" />
+        <include class="org.apache.commons.digester3.xmlrules.DigesterRulesSourceTestImpl"
/>
+
+        <pattern value="call-method-rule-tests">
+            <call-method-rule pattern="longValue" methodname="setLongValue" paramcount="0"
paramtypes="java.lang.Long" />
+            <call-method-rule pattern="defaultParamType" methodname="setStringValue" paramcount="0"
/>
+            <call-method-rule pattern="pushIt" methodname="push" />
+            <call-method-rule pattern="mapValue" methodname="setMapValue" paramcount="2"
paramtypes="java.lang.String, java.lang.String" />
+            <call-param-rule pattern="mapValue" attrname="name" paramnumber="0" />
+            <call-param-rule pattern="mapValue" paramnumber="1" />
+        </pattern>
+
+        <bean-property-setter-rule pattern="property" name="property"/>
+
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrules.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml?rev=1067660&view=auto
==============================================================================
--- commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
(added)
+++ commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
Sun Feb  6 13:28:21 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
"http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<!--
+   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.
+-->
+<digester-rules>
+    <pattern value="bar">
+        <pattern value="foo">
+            <object-create-rule classname="org.apache.commons.digester3.xmlrules.ObjectTestImpl"
/>
+            <set-next-rule methodname="add" paramtype="java.lang.Object" />
+            <set-properties-rule />
+        </pattern>
+    </pattern>
+</digester-rules>

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: commons/sandbox/digester3/trunk/src/test/resources/org/apache/commons/digester3/xmlrules/testrulesinclude.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message