home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Commons Digester example source code file (testrules.xml)

This example Commons Digester source code file (testrules.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Commons Digester tags/keywords

apache, apache, asf, asf, is, jakarta, license, license, of, public, see, version, you, you

The Commons Digester testrules.xml source code

<?xml version="1.0"?>

 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
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 See the License for the specific language governing permissions and
 limitations under the License.

<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN" "http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
    <pattern value="root/foo">
        <object-create-rule classname="org.apache.commons.digester.xmlrules.ObjectTestImpl"/>
        <set-next-rule methodname="add" paramtype="java.lang.Object"/>
        <include path="org/apache/commons/digester/xmlrules/testrulesinclude.xml"/>
        <include class="org.apache.commons.digester.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"/>
                <bean-property-setter-rule pattern="property" name="property"/>

Other Commons Digester examples (source code examples)

Here is a short list of links related to this Commons Digester testrules.xml source code file:

my book on functional programming


new blog posts


Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.