Skip to content

Instantly share code, notes, and snippets.

@harplife
Created December 24, 2020 00:51
Show Gist options
  • Save harplife/ce0b9c3624fc97d4beda9a3b7861dbc9 to your computer and use it in GitHub Desktop.
Save harplife/ce0b9c3624fc97d4beda9a3b7861dbc9 to your computer and use it in GitHub Desktop.
dtds for aicrm
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2009-2016 the original author or authors.
Licensed 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.
-->
<!ELEMENT configuration (properties?, settings?, typeAliases?, typeHandlers?, objectFactory?, objectWrapperFactory?, reflectorFactory?, plugins?, environments?, databaseIdProvider?, mappers?)>
<!ELEMENT databaseIdProvider (property*)>
<!ATTLIST databaseIdProvider
type CDATA #REQUIRED
>
<!ELEMENT properties (property*)>
<!ATTLIST properties
resource CDATA #IMPLIED
url CDATA #IMPLIED
>
<!ELEMENT property EMPTY>
<!ATTLIST property
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT settings (setting+)>
<!ELEMENT setting EMPTY>
<!ATTLIST setting
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT typeAliases (typeAlias*,package*)>
<!ELEMENT typeAlias EMPTY>
<!ATTLIST typeAlias
type CDATA #REQUIRED
alias CDATA #IMPLIED
>
<!ELEMENT typeHandlers (typeHandler*,package*)>
<!ELEMENT typeHandler EMPTY>
<!ATTLIST typeHandler
javaType CDATA #IMPLIED
jdbcType CDATA #IMPLIED
handler CDATA #REQUIRED
>
<!ELEMENT objectFactory (property*)>
<!ATTLIST objectFactory
type CDATA #REQUIRED
>
<!ELEMENT objectWrapperFactory EMPTY>
<!ATTLIST objectWrapperFactory
type CDATA #REQUIRED
>
<!ELEMENT reflectorFactory EMPTY>
<!ATTLIST reflectorFactory
type CDATA #REQUIRED
>
<!ELEMENT plugins (plugin+)>
<!ELEMENT plugin (property*)>
<!ATTLIST plugin
interceptor CDATA #REQUIRED
>
<!ELEMENT environments (environment+)>
<!ATTLIST environments
default CDATA #REQUIRED
>
<!ELEMENT environment (transactionManager,dataSource)>
<!ATTLIST environment
id CDATA #REQUIRED
>
<!ELEMENT transactionManager (property*)>
<!ATTLIST transactionManager
type CDATA #REQUIRED
>
<!ELEMENT dataSource (property*)>
<!ATTLIST dataSource
type CDATA #REQUIRED
>
<!ELEMENT mappers (mapper*,package*)>
<!ELEMENT mapper EMPTY>
<!ATTLIST mapper
resource CDATA #IMPLIED
url CDATA #IMPLIED
class CDATA #IMPLIED
>
<!ELEMENT package EMPTY>
<!ATTLIST package
name CDATA #REQUIRED
>
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2009-2017 the original author or authors.
Licensed 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.
-->
<!ELEMENT mapper (cache-ref | cache | resultMap* | parameterMap* | sql* | insert* | update* | delete* | select* )+>
<!ATTLIST mapper
namespace CDATA #IMPLIED
>
<!ELEMENT cache-ref EMPTY>
<!ATTLIST cache-ref
namespace CDATA #REQUIRED
>
<!ELEMENT cache (property*)>
<!ATTLIST cache
type CDATA #IMPLIED
eviction CDATA #IMPLIED
flushInterval CDATA #IMPLIED
size CDATA #IMPLIED
readOnly CDATA #IMPLIED
blocking CDATA #IMPLIED
>
<!ELEMENT parameterMap (parameter+)?>
<!ATTLIST parameterMap
id CDATA #REQUIRED
type CDATA #REQUIRED
>
<!ELEMENT parameter EMPTY>
<!ATTLIST parameter
property CDATA #REQUIRED
javaType CDATA #IMPLIED
jdbcType CDATA #IMPLIED
mode (IN | OUT | INOUT) #IMPLIED
resultMap CDATA #IMPLIED
scale CDATA #IMPLIED
typeHandler CDATA #IMPLIED
>
<!ELEMENT resultMap (constructor?,id*,result*,association*,collection*, discriminator?)>
<!ATTLIST resultMap
id CDATA #REQUIRED
type CDATA #REQUIRED
extends CDATA #IMPLIED
autoMapping (true|false) #IMPLIED
>
<!ELEMENT constructor (idArg*,arg*)>
<!ELEMENT id EMPTY>
<!ATTLIST id
property CDATA #IMPLIED
javaType CDATA #IMPLIED
column CDATA #IMPLIED
jdbcType CDATA #IMPLIED
typeHandler CDATA #IMPLIED
>
<!ELEMENT result EMPTY>
<!ATTLIST result
property CDATA #IMPLIED
javaType CDATA #IMPLIED
column CDATA #IMPLIED
jdbcType CDATA #IMPLIED
typeHandler CDATA #IMPLIED
>
<!ELEMENT idArg EMPTY>
<!ATTLIST idArg
javaType CDATA #IMPLIED
column CDATA #IMPLIED
jdbcType CDATA #IMPLIED
typeHandler CDATA #IMPLIED
select CDATA #IMPLIED
resultMap CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT arg EMPTY>
<!ATTLIST arg
javaType CDATA #IMPLIED
column CDATA #IMPLIED
jdbcType CDATA #IMPLIED
typeHandler CDATA #IMPLIED
select CDATA #IMPLIED
resultMap CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT collection (constructor?,id*,result*,association*,collection*, discriminator?)>
<!ATTLIST collection
property CDATA #REQUIRED
column CDATA #IMPLIED
javaType CDATA #IMPLIED
ofType CDATA #IMPLIED
jdbcType CDATA #IMPLIED
select CDATA #IMPLIED
resultMap CDATA #IMPLIED
typeHandler CDATA #IMPLIED
notNullColumn CDATA #IMPLIED
columnPrefix CDATA #IMPLIED
resultSet CDATA #IMPLIED
foreignColumn CDATA #IMPLIED
autoMapping (true|false) #IMPLIED
fetchType (lazy|eager) #IMPLIED
>
<!ELEMENT association (constructor?,id*,result*,association*,collection*, discriminator?)>
<!ATTLIST association
property CDATA #REQUIRED
column CDATA #IMPLIED
javaType CDATA #IMPLIED
jdbcType CDATA #IMPLIED
select CDATA #IMPLIED
resultMap CDATA #IMPLIED
typeHandler CDATA #IMPLIED
notNullColumn CDATA #IMPLIED
columnPrefix CDATA #IMPLIED
resultSet CDATA #IMPLIED
foreignColumn CDATA #IMPLIED
autoMapping (true|false) #IMPLIED
fetchType (lazy|eager) #IMPLIED
>
<!ELEMENT discriminator (case+)>
<!ATTLIST discriminator
column CDATA #IMPLIED
javaType CDATA #REQUIRED
jdbcType CDATA #IMPLIED
typeHandler CDATA #IMPLIED
>
<!ELEMENT case (constructor?,id*,result*,association*,collection*, discriminator?)>
<!ATTLIST case
value CDATA #REQUIRED
resultMap CDATA #IMPLIED
resultType CDATA #IMPLIED
>
<!ELEMENT property EMPTY>
<!ATTLIST property
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT typeAlias EMPTY>
<!ATTLIST typeAlias
alias CDATA #REQUIRED
type CDATA #REQUIRED
>
<!ELEMENT select (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST select
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterType CDATA #IMPLIED
resultMap CDATA #IMPLIED
resultType CDATA #IMPLIED
resultSetType (FORWARD_ONLY | SCROLL_INSENSITIVE | SCROLL_SENSITIVE) #IMPLIED
statementType (STATEMENT|PREPARED|CALLABLE) #IMPLIED
fetchSize CDATA #IMPLIED
timeout CDATA #IMPLIED
flushCache (true|false) #IMPLIED
useCache (true|false) #IMPLIED
databaseId CDATA #IMPLIED
lang CDATA #IMPLIED
resultOrdered (true|false) #IMPLIED
resultSets CDATA #IMPLIED
>
<!ELEMENT insert (#PCDATA | selectKey | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST insert
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterType CDATA #IMPLIED
timeout CDATA #IMPLIED
flushCache (true|false) #IMPLIED
statementType (STATEMENT|PREPARED|CALLABLE) #IMPLIED
keyProperty CDATA #IMPLIED
useGeneratedKeys (true|false) #IMPLIED
keyColumn CDATA #IMPLIED
databaseId CDATA #IMPLIED
lang CDATA #IMPLIED
>
<!ELEMENT selectKey (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST selectKey
resultType CDATA #IMPLIED
statementType (STATEMENT|PREPARED|CALLABLE) #IMPLIED
keyProperty CDATA #IMPLIED
keyColumn CDATA #IMPLIED
order (BEFORE|AFTER) #IMPLIED
databaseId CDATA #IMPLIED
>
<!ELEMENT update (#PCDATA | selectKey | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST update
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterType CDATA #IMPLIED
timeout CDATA #IMPLIED
flushCache (true|false) #IMPLIED
statementType (STATEMENT|PREPARED|CALLABLE) #IMPLIED
keyProperty CDATA #IMPLIED
useGeneratedKeys (true|false) #IMPLIED
keyColumn CDATA #IMPLIED
databaseId CDATA #IMPLIED
lang CDATA #IMPLIED
>
<!ELEMENT delete (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST delete
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterType CDATA #IMPLIED
timeout CDATA #IMPLIED
flushCache (true|false) #IMPLIED
statementType (STATEMENT|PREPARED|CALLABLE) #IMPLIED
databaseId CDATA #IMPLIED
lang CDATA #IMPLIED
>
<!-- Dynamic -->
<!ELEMENT include (property+)?>
<!ATTLIST include
refid CDATA #REQUIRED
>
<!ELEMENT bind EMPTY>
<!ATTLIST bind
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT sql (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST sql
id CDATA #REQUIRED
lang CDATA #IMPLIED
databaseId CDATA #IMPLIED
>
<!ELEMENT trim (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST trim
prefix CDATA #IMPLIED
prefixOverrides CDATA #IMPLIED
suffix CDATA #IMPLIED
suffixOverrides CDATA #IMPLIED
>
<!ELEMENT where (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ELEMENT set (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ELEMENT foreach (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST foreach
collection CDATA #REQUIRED
item CDATA #IMPLIED
index CDATA #IMPLIED
open CDATA #IMPLIED
close CDATA #IMPLIED
separator CDATA #IMPLIED
>
<!ELEMENT choose (when* , otherwise?)>
<!ELEMENT when (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST when
test CDATA #REQUIRED
>
<!ELEMENT otherwise (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ELEMENT if (#PCDATA | include | trim | where | set | foreach | choose | if | bind)*>
<!ATTLIST if
test CDATA #REQUIRED
>
<!--
Spring XML Beans DTD, version 1.2
Authors: Rod Johnson, Juergen Hoeller, Alef Arendsen, Colin Sampaleanu, Rob Harrop
This defines a simple and consistent way of creating a namespace
of JavaBeans objects, managed by a Spring BeanFactory, read by
XmlBeanDefinitionReader (with DefaultBeanDefinitionDocumentReader).
This document type is used by most Spring functionality, including
web application contexts, which are based on bean factories.
Each "bean" element in this document defines a JavaBean.
Typically the bean class is specified, along with JavaBean properties
and/or constructor arguments.
Bean instances can be "singletons" (shared instances) or "prototypes"
(independent instances). Further scopes are supposed to be built on top
of the core BeanFactory infrastructure and are therefore not part of it.
References among beans are supported, that is, setting a JavaBean property
or a constructor argument to refer to another bean in the same factory
(or an ancestor factory).
As alternative to bean references, "inner bean definitions" can be used.
Singleton flags of such inner bean definitions are effectively ignored:
Inner beans are typically anonymous prototypes.
There is also support for lists, sets, maps, and java.util.Properties
as bean property types or constructor argument types.
For simple purposes, this DTD is sufficient. As of Spring 2.0,
XSD-based bean definitions are supported as more powerful alternative.
XML documents that conform to this DTD should declare the following doctype:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
-->
<!--
The document root. A document can contain bean definitions only,
imports only, or a mixture of both (typically with imports first).
-->
<!ELEMENT beans (
description?,
(import | alias | bean)*
)>
<!--
Default values for all bean definitions. Can be overridden at
the "bean" level. See those attribute definitions for details.
-->
<!ATTLIST beans default-lazy-init (true | false) "false">
<!ATTLIST beans default-autowire (no | byName | byType | constructor | autodetect) "no">
<!ATTLIST beans default-dependency-check (none | objects | simple | all) "none">
<!ATTLIST beans default-init-method CDATA #IMPLIED>
<!ATTLIST beans default-destroy-method CDATA #IMPLIED>
<!--
Element containing informative text describing the purpose of the enclosing
element. Always optional.
Used primarily for user documentation of XML bean definition documents.
-->
<!ELEMENT description (#PCDATA)>
<!--
Specifies an XML bean definition resource to import.
-->
<!ELEMENT import EMPTY>
<!--
The relative resource location of the XML bean definition file to import,
for example "myImport.xml" or "includes/myImport.xml" or "../myImport.xml".
-->
<!ATTLIST import resource CDATA #REQUIRED>
<!--
Defines an alias for a bean, which can reside in a different definition file.
-->
<!ELEMENT alias EMPTY>
<!--
The name of the bean to define an alias for.
-->
<!ATTLIST alias name CDATA #REQUIRED>
<!--
The alias name to define for the bean.
-->
<!ATTLIST alias alias CDATA #REQUIRED>
<!--
Defines a single (usually named) bean.
A bean definition may contain nested tags for constructor arguments,
property values, lookup methods, and replaced methods. Mixing constructor
injection and setter injection on the same bean is explicitly supported.
-->
<!ELEMENT bean (
description?,
(constructor-arg | property | lookup-method | replaced-method)*
)>
<!--
Beans can be identified by an id, to enable reference checking.
There are constraints on a valid XML id: if you want to reference your bean
in Java code using a name that's illegal as an XML id, use the optional
"name" attribute. If neither is given, the bean class name is used as id
(with an appended counter like "#2" if there is already a bean with that name).
-->
<!ATTLIST bean id ID #IMPLIED>
<!--
Optional. Can be used to create one or more aliases illegal in an id.
Multiple aliases can be separated by any number of spaces, commas, or
semi-colons (or indeed any mixture of the three).
-->
<!ATTLIST bean name CDATA #IMPLIED>
<!--
Each bean definition must specify the fully qualified name of the class,
except if it pure serves as parent for child bean definitions.
-->
<!ATTLIST bean class CDATA #IMPLIED>
<!--
Optionally specify a parent bean definition.
Will use the bean class of the parent if none specified, but can
also override it. In the latter case, the child bean class must be
compatible with the parent, i.e. accept the parent's property values
and constructor argument values, if any.
A child bean definition will inherit constructor argument values,
property values and method overrides from the parent, with the option
to add new values. If init method, destroy method, factory bean and/or factory
method are specified, they will override the corresponding parent settings.
The remaining settings will always be taken from the child definition:
depends on, autowire mode, dependency check, singleton, lazy init.
-->
<!ATTLIST bean parent CDATA #IMPLIED>
<!--
Is this bean "abstract", i.e. not meant to be instantiated itself but
rather just serving as parent for concrete child bean definitions.
Default is "false". Specify "true" to tell the bean factory to not try to
instantiate that particular bean in any case.
Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition.
-->
<!ATTLIST bean abstract (true | false) #IMPLIED>
<!--
Is this bean a "singleton" (one shared instance, which will
be returned by all calls to getBean() with the id),
or a "prototype" (independent instance resulting from each call to
getBean(). Default is singleton.
Singletons are most commonly used, and are ideal for multi-threaded
service objects.
Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition.
-->
<!ATTLIST bean singleton (true | false) #IMPLIED>
<!--
If this bean should be lazily initialized.
If false, it will get instantiated on startup by bean factories
that perform eager initialization of singletons.
Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition.
-->
<!ATTLIST bean lazy-init (true | false | default) "default">
<!--
Optional attribute controlling whether to "autowire" bean properties.
This is an automagical process in which bean references don't need to be coded
explicitly in the XML bean definition file, but Spring works out dependencies.
There are 5 modes:
1. "no"
The traditional Spring default. No automagical wiring. Bean references
must be defined in the XML file via the <ref> element. We recommend this
in most cases as it makes documentation more explicit.
2. "byName"
Autowiring by property name. If a bean of class Cat exposes a dog property,
Spring will try to set this to the value of the bean "dog" in the current factory.
If there is no matching bean by name, nothing special happens;
use dependency-check="objects" to raise an error in that case.
3. "byType"
Autowiring if there is exactly one bean of the property type in the bean factory.
If there is more than one, a fatal error is raised, and you can't use byType
autowiring for that bean. If there is none, nothing special happens;
use dependency-check="objects" to raise an error in that case.
4. "constructor"
Analogous to "byType" for constructor arguments. If there isn't exactly one bean
of the constructor argument type in the bean factory, a fatal error is raised.
5. "autodetect"
Chooses "constructor" or "byType" through introspection of the bean class.
If a default constructor is found, "byType" gets applied.
The latter two are similar to PicoContainer and make bean factories simple to
configure for small namespaces, but doesn't work as well as standard Spring
behaviour for bigger applications.
Note that explicit dependencies, i.e. "property" and "constructor-arg" elements,
always override autowiring. Autowire behavior can be combined with dependency
checking, which will be performed after all autowiring has been completed.
Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition.
-->
<!ATTLIST bean autowire (no | byName | byType | constructor | autodetect | default) "default">
<!--
Optional attribute controlling whether to check whether all this
beans dependencies, expressed in its properties, are satisfied.
Default is no dependency checking.
"simple" type dependency checking includes primitives and String
"object" includes collaborators (other beans in the factory)
"all" includes both types of dependency checking
Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition.
-->
<!ATTLIST bean dependency-check (none | objects | simple | all | default) "default">
<!--
The names of the beans that this bean depends on being initialized.
The bean factory will guarantee that these beans get initialized before.
Note that dependencies are normally expressed through bean properties or
constructor arguments. This property should just be necessary for other kinds
of dependencies like statics (*ugh*) or database preparation on startup.
Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition.
-->
<!ATTLIST bean depends-on CDATA #IMPLIED>
<!--
Optional attribute for the name of the custom initialization method
to invoke after setting bean properties. The method must have no arguments,
but may throw any exception.
-->
<!ATTLIST bean init-method CDATA #IMPLIED>
<!--
Optional attribute for the name of the custom destroy method to invoke
on bean factory shutdown. The method must have no arguments,
but may throw any exception. Note: Only invoked on singleton beans!
-->
<!ATTLIST bean destroy-method CDATA #IMPLIED>
<!--
Optional attribute specifying the name of a factory method to use to
create this object. Use constructor-arg elements to specify arguments
to the factory method, if it takes arguments. Autowiring does not apply
to factory methods.
If the "class" attribute is present, the factory method will be a static
method on the class specified by the "class" attribute on this bean
definition. Often this will be the same class as that of the constructed
object - for example, when the factory method is used as an alternative
to a constructor. However, it may be on a different class. In that case,
the created object will *not* be of the class specified in the "class"
attribute. This is analogous to FactoryBean behavior.
If the "factory-bean" attribute is present, the "class" attribute is not
used, and the factory method will be an instance method on the object
returned from a getBean call with the specified bean name. The factory
bean may be defined as a singleton or a prototype.
The factory method can have any number of arguments. Autowiring is not
supported. Use indexed constructor-arg elements in conjunction with the
factory-method attribute.
Setter Injection can be used in conjunction with a factory method.
Method Injection cannot, as the factory method returns an instance,
which will be used when the container creates the bean.
-->
<!ATTLIST bean factory-method CDATA #IMPLIED>
<!--
Alternative to class attribute for factory-method usage.
If this is specified, no class attribute should be used.
This should be set to the name of a bean in the current or
ancestor factories that contains the relevant factory method.
This allows the factory itself to be configured using Dependency
Injection, and an instance (rather than static) method to be used.
-->
<!ATTLIST bean factory-bean CDATA #IMPLIED>
<!--
Bean definitions can specify zero or more constructor arguments.
This is an alternative to "autowire constructor".
Arguments correspond to either a specific index of the constructor argument
list or are supposed to be matched generically by type.
Note: A single generic argument value will just be used once, rather than
potentially matched multiple times (as of Spring 1.1).
constructor-arg elements are also used in conjunction with the factory-method
element to construct beans using static or instance factory methods.
-->
<!ELEMENT constructor-arg (
description?,
(bean | ref | idref | value | null | list | set | map | props)?
)>
<!--
The constructor-arg tag can have an optional index attribute,
to specify the exact index in the constructor argument list. Only needed
to avoid ambiguities, e.g. in case of 2 arguments of the same type.
-->
<!ATTLIST constructor-arg index CDATA #IMPLIED>
<!--
The constructor-arg tag can have an optional type attribute,
to specify the exact type of the constructor argument. Only needed
to avoid ambiguities, e.g. in case of 2 single argument constructors
that can both be converted from a String.
-->
<!ATTLIST constructor-arg type CDATA #IMPLIED>
<!--
A short-cut alternative to a child element "ref bean=".
-->
<!ATTLIST constructor-arg ref CDATA #IMPLIED>
<!--
A short-cut alternative to a child element "value".
-->
<!ATTLIST constructor-arg value CDATA #IMPLIED>
<!--
Bean definitions can have zero or more properties.
Property elements correspond to JavaBean setter methods exposed
by the bean classes. Spring supports primitives, references to other
beans in the same or related factories, lists, maps and properties.
-->
<!ELEMENT property (
description?,
(bean | ref | idref | value | null | list | set | map | props)?
)>
<!--
The property name attribute is the name of the JavaBean property.
This follows JavaBean conventions: a name of "age" would correspond
to setAge()/optional getAge() methods.
-->
<!ATTLIST property name CDATA #REQUIRED>
<!--
A short-cut alternative to a child element "ref bean=".
-->
<!ATTLIST property ref CDATA #IMPLIED>
<!--
A short-cut alternative to a child element "value".
-->
<!ATTLIST property value CDATA #IMPLIED>
<!--
A lookup method causes the IoC container to override the given method and return
the bean with the name given in the bean attribute. This is a form of Method Injection.
It's particularly useful as an alternative to implementing the BeanFactoryAware
interface, in order to be able to make getBean() calls for non-singleton instances
at runtime. In this case, Method Injection is a less invasive alternative.
-->
<!ELEMENT lookup-method EMPTY>
<!--
Name of a lookup method. This method should take no arguments.
-->
<!ATTLIST lookup-method name CDATA #IMPLIED>
<!--
Name of the bean in the current or ancestor factories that the lookup method
should resolve to. Often this bean will be a prototype, in which case the
lookup method will return a distinct instance on every invocation. This
is useful for single-threaded objects.
-->
<!ATTLIST lookup-method bean CDATA #IMPLIED>
<!--
Similar to the lookup method mechanism, the replaced-method element is used to control
IoC container method overriding: Method Injection. This mechanism allows the overriding
of a method with arbitrary code.
-->
<!ELEMENT replaced-method (
(arg-type)*
)>
<!--
Name of the method whose implementation should be replaced by the IoC container.
If this method is not overloaded, there's no need to use arg-type subelements.
If this method is overloaded, arg-type subelements must be used for all
override definitions for the method.
-->
<!ATTLIST replaced-method name CDATA #IMPLIED>
<!--
Bean name of an implementation of the MethodReplacer interface
in the current or ancestor factories. This may be a singleton or prototype
bean. If it's a prototype, a new instance will be used for each method replacement.
Singleton usage is the norm.
-->
<!ATTLIST replaced-method replacer CDATA #IMPLIED>
<!--
Subelement of replaced-method identifying an argument for a replaced method
in the event of method overloading.
-->
<!ELEMENT arg-type (#PCDATA)>
<!--
Specification of the type of an overloaded method argument as a String.
For convenience, this may be a substring of the FQN. E.g. all the
following would match "java.lang.String":
- java.lang.String
- String
- Str
As the number of arguments will be checked also, this convenience can often
be used to save typing.
-->
<!ATTLIST arg-type match CDATA #IMPLIED>
<!--
Defines a reference to another bean in this factory or an external
factory (parent or included factory).
-->
<!ELEMENT ref EMPTY>
<!--
References must specify a name of the target bean.
The "bean" attribute can reference any name from any bean in the context,
to be checked at runtime.
Local references, using the "local" attribute, have to use bean ids;
they can be checked by this DTD, thus should be preferred for references
within the same bean factory XML file.
-->
<!ATTLIST ref bean CDATA #IMPLIED>
<!ATTLIST ref local IDREF #IMPLIED>
<!ATTLIST ref parent CDATA #IMPLIED>
<!--
Defines a string property value, which must also be the id of another
bean in this factory or an external factory (parent or included factory).
While a regular 'value' element could instead be used for the same effect,
using idref in this case allows validation of local bean ids by the xml
parser, and name completion by helper tools.
-->
<!ELEMENT idref EMPTY>
<!--
ID refs must specify a name of the target bean.
The "bean" attribute can reference any name from any bean in the context,
potentially to be checked at runtime by bean factory implementations.
Local references, using the "local" attribute, have to use bean ids;
they can be checked by this DTD, thus should be preferred for references
within the same bean factory XML file.
-->
<!ATTLIST idref bean CDATA #IMPLIED>
<!ATTLIST idref local IDREF #IMPLIED>
<!--
Contains a string representation of a property value.
The property may be a string, or may be converted to the
required type using the JavaBeans PropertyEditor
machinery. This makes it possible for application developers
to write custom PropertyEditor implementations that can
convert strings to objects.
Note that this is recommended for simple objects only.
Configure more complex objects by populating JavaBean
properties with references to other beans.
-->
<!ELEMENT value (#PCDATA)>
<!--
The value tag can have an optional type attribute, to specify the
exact type that the value should be converted to. Only needed
if the type of the target property or constructor argument is
too generic: for example, in case of a collection element.
-->
<!ATTLIST value type CDATA #IMPLIED>
<!--
Denotes a Java null value. Necessary because an empty "value" tag
will resolve to an empty String, which will not be resolved to a
null value unless a special PropertyEditor does so.
-->
<!ELEMENT null (#PCDATA)>
<!--
A list can contain multiple inner bean, ref, collection, or value elements.
Java lists are untyped, pending generics support in Java 1.5,
although references will be strongly typed.
A list can also map to an array type. The necessary conversion
is automatically performed by the BeanFactory.
-->
<!ELEMENT list (
(bean | ref | idref | value | null | list | set | map | props)*
)>
<!--
A set can contain multiple inner bean, ref, collection, or value elements.
Java sets are untyped, pending generics support in Java 1.5,
although references will be strongly typed.
-->
<!ELEMENT set (
(bean | ref | idref | value | null | list | set | map | props)*
)>
<!--
A Spring map is a mapping from a string key to object.
Maps may be empty.
-->
<!ELEMENT map (
(entry)*
)>
<!--
A map entry can be an inner bean, ref, value, or collection.
The key of the entry is given by the "key" attribute or child element.
-->
<!ELEMENT entry (
key?,
(bean | ref | idref | value | null | list | set | map | props)?
)>
<!--
Each map element must specify its key as attribute or as child element.
A key attribute is always a String value.
-->
<!ATTLIST entry key CDATA #IMPLIED>
<!--
A short-cut alternative to a "key" element with a "ref bean=" child element.
-->
<!ATTLIST entry key-ref CDATA #IMPLIED>
<!--
A short-cut alternative to a child element "value".
-->
<!ATTLIST entry value CDATA #IMPLIED>
<!--
A short-cut alternative to a child element "ref bean=".
-->
<!ATTLIST entry value-ref CDATA #IMPLIED>
<!--
A key element can contain an inner bean, ref, value, or collection.
-->
<!ELEMENT key (
(bean | ref | idref | value | null | list | set | map | props)
)>
<!--
Props elements differ from map elements in that values must be strings.
Props may be empty.
-->
<!ELEMENT props (
(prop)*
)>
<!--
Element content is the string value of the property.
Note that whitespace is trimmed off to avoid unwanted whitespace
caused by typical XML formatting.
-->
<!ELEMENT prop (#PCDATA)>
<!--
Each property element must specify its key.
-->
<!ATTLIST prop key CDATA #REQUIRED>
<!-- saved from url=(0048)http://commons.apache.org/dtds/validator_1_1.dtd -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body><div class="line-gutter-backdrop"></div><table><tbody><tr><td class="line-number" value="1"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="2"></td><td class="line-content"><span class="html-comment"> Licensed to the Apache Software Foundation (ASF) under one or more</span></td></tr><tr><td class="line-number" value="3"></td><td class="line-content"><span class="html-comment"> contributor license agreements. See the NOTICE file distributed with</span></td></tr><tr><td class="line-number" value="4"></td><td class="line-content"><span class="html-comment"> this work for additional information regarding copyright ownership.</span></td></tr><tr><td class="line-number" value="5"></td><td class="line-content"><span class="html-comment"> The ASF licenses this file to You under the Apache License, Version 2.0</span></td></tr><tr><td class="line-number" value="6"></td><td class="line-content"><span class="html-comment"> (the "License"); you may not use this file except in compliance with</span></td></tr><tr><td class="line-number" value="7"></td><td class="line-content"><span class="html-comment"> the License. You may obtain a copy of the License at</span></td></tr><tr><td class="line-number" value="8"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="9"></td><td class="line-content"><span class="html-comment"> http://www.apache.org/licenses/LICENSE-2.0</span></td></tr><tr><td class="line-number" value="10"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="11"></td><td class="line-content"><span class="html-comment"> Unless required by applicable law or agreed to in writing, software</span></td></tr><tr><td class="line-number" value="12"></td><td class="line-content"><span class="html-comment"> distributed under the License is distributed on an "AS IS" BASIS,</span></td></tr><tr><td class="line-number" value="13"></td><td class="line-content"><span class="html-comment"> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></td></tr><tr><td class="line-number" value="14"></td><td class="line-content"><span class="html-comment"> See the License for the specific language governing permissions and</span></td></tr><tr><td class="line-number" value="15"></td><td class="line-content"><span class="html-comment"> limitations under the License.</span></td></tr><tr><td class="line-number" value="16"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="17"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="18"></td><td class="line-content"><span class="html-comment"> DTD for the Validator Rules Configuration File, Version 1.1</span></td></tr><tr><td class="line-number" value="19"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="20"></td><td class="line-content"><span class="html-comment"> To allow for XML validation of your rules configuration</span></td></tr><tr><td class="line-number" value="21"></td><td class="line-content"><span class="html-comment"> file, include the following DOCTYPE element at the beginning (after</span></td></tr><tr><td class="line-number" value="22"></td><td class="line-content"><span class="html-comment"> the "xml" declaration):</span></td></tr><tr><td class="line-number" value="23"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="24"></td><td class="line-content"><span class="html-comment"> &lt;!DOCTYPE form-validation PUBLIC</span></td></tr><tr><td class="line-number" value="25"></td><td class="line-content"><span class="html-comment"> "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"</span></td></tr><tr><td class="line-number" value="26"></td><td class="line-content"><span class="html-comment"> "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd"&gt;</span></td></tr><tr><td class="line-number" value="27"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="28"></td><td class="line-content"><span class="html-comment"> $Id: validator_1_1.dtd 1452077 2013-03-03 18:02:08Z olamy $</span></td></tr><tr><td class="line-number" value="29"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="30"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="31"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="32"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="33"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="34"></td><td class="line-content"><span class="html-comment"> The "form-validation" element is the root of the configuration file</span></td></tr><tr><td class="line-number" value="35"></td><td class="line-content"><span class="html-comment"> hierarchy, and contains nested elements for all of the other</span></td></tr><tr><td class="line-number" value="36"></td><td class="line-content"><span class="html-comment"> configuration settings.</span></td></tr><tr><td class="line-number" value="37"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="38"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT form-validation (global*, formset*)&gt;</span></td></tr><tr><td class="line-number" value="39"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="40"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="41"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="42"></td><td class="line-content"><span class="html-comment"> The elements defined here are all global and must be nested within a</span></td></tr><tr><td class="line-number" value="43"></td><td class="line-content"><span class="html-comment"> "global" element.</span></td></tr><tr><td class="line-number" value="44"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="45"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT global (validator*, constant*)&gt;</span></td></tr><tr><td class="line-number" value="46"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="47"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="48"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="49"></td><td class="line-content"><span class="html-comment"> The "validator" element defines what validator objects can be used with</span></td></tr><tr><td class="line-number" value="50"></td><td class="line-content"><span class="html-comment"> the fields referenced by the formset elements.</span></td></tr><tr><td class="line-number" value="51"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="52"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT validator (javascript?)&gt;</span></td></tr><tr><td class="line-number" value="53"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator name CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="54"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator classname CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="55"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator method CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="56"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator methodParams CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="57"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator msg CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="58"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator depends CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="59"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator jsFunctionName CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="60"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST validator jsFunction CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="61"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="62"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="63"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="64"></td><td class="line-content"><span class="html-comment"> The "javascript" element defines a JavaScript that can be used to perform</span></td></tr><tr><td class="line-number" value="65"></td><td class="line-content"><span class="html-comment"> client-side validators.</span></td></tr><tr><td class="line-number" value="66"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="67"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT javascript (#PCDATA)&gt;</span></td></tr><tr><td class="line-number" value="68"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="69"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="70"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="71"></td><td class="line-content"><span class="html-comment"> The "constant" element defines a static value that can be used as</span></td></tr><tr><td class="line-number" value="72"></td><td class="line-content"><span class="html-comment"> replacement parameters within "field" elements. The "constant-name" and</span></td></tr><tr><td class="line-number" value="73"></td><td class="line-content"><span class="html-comment"> "constant-value" elements define the constant's reference id and replacement</span></td></tr><tr><td class="line-number" value="74"></td><td class="line-content"><span class="html-comment"> value.</span></td></tr><tr><td class="line-number" value="75"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="76"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT constant (constant-name, constant-value)&gt;</span></td></tr><tr><td class="line-number" value="77"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT constant-name (#PCDATA)&gt;</span></td></tr><tr><td class="line-number" value="78"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT constant-value (#PCDATA)&gt;</span></td></tr><tr><td class="line-number" value="79"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="80"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="81"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="82"></td><td class="line-content"><span class="html-comment"> The "formset" element defines a set of forms for a locale. Formsets for</span></td></tr><tr><td class="line-number" value="83"></td><td class="line-content"><span class="html-comment"> specific locales can override only those fields that change. The</span></td></tr><tr><td class="line-number" value="84"></td><td class="line-content"><span class="html-comment"> localization is properly scoped, so that a formset can override just the</span></td></tr><tr><td class="line-number" value="85"></td><td class="line-content"><span class="html-comment"> language, or just the country, or both.</span></td></tr><tr><td class="line-number" value="86"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="87"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT formset (constant*, form+)&gt;</span></td></tr><tr><td class="line-number" value="88"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST formset language CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="89"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST formset country CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="90"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST formset variant CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="91"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="92"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="93"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="94"></td><td class="line-content"><span class="html-comment"> The "form" element defines a set of fields to be validated. The name</span></td></tr><tr><td class="line-number" value="95"></td><td class="line-content"><span class="html-comment"> corresponds to the identifer the application assigns to the form. </span></td></tr><tr><td class="line-number" value="96"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="97"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT form (field+)&gt;</span></td></tr><tr><td class="line-number" value="98"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST form name CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="99"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="100"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="101"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="102"></td><td class="line-content"><span class="html-comment"> The "field" element defines the properties to be validated. In a</span></td></tr><tr><td class="line-number" value="103"></td><td class="line-content"><span class="html-comment"> web application, a field would also correspond to a control on</span></td></tr><tr><td class="line-number" value="104"></td><td class="line-content"><span class="html-comment"> a HTML form. To validate the properties, the validator works through</span></td></tr><tr><td class="line-number" value="105"></td><td class="line-content"><span class="html-comment"> a JavaBean representation. The field element accepts these </span></td></tr><tr><td class="line-number" value="106"></td><td class="line-content"><span class="html-comment"> attributes:</span></td></tr><tr><td class="line-number" value="107"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="108"></td><td class="line-content"><span class="html-comment"> property The property on the JavaBean corresponding to this</span></td></tr><tr><td class="line-number" value="109"></td><td class="line-content"><span class="html-comment"> field element.</span></td></tr><tr><td class="line-number" value="110"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="111"></td><td class="line-content"><span class="html-comment"> depends The comma-delimited list of validators to apply against</span></td></tr><tr><td class="line-number" value="112"></td><td class="line-content"><span class="html-comment"> this field. For the field to succeed, all the</span></td></tr><tr><td class="line-number" value="113"></td><td class="line-content"><span class="html-comment"> validators must succeed.</span></td></tr><tr><td class="line-number" value="114"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="115"></td><td class="line-content"><span class="html-comment"> page The JavaBean corresponding to this form may include</span></td></tr><tr><td class="line-number" value="116"></td><td class="line-content"><span class="html-comment"> a page property. Only fields with a "page" attribute</span></td></tr><tr><td class="line-number" value="117"></td><td class="line-content"><span class="html-comment"> value that is equal to or less than the page property</span></td></tr><tr><td class="line-number" value="118"></td><td class="line-content"><span class="html-comment"> on the form JavaBean are processed. This is useful when</span></td></tr><tr><td class="line-number" value="119"></td><td class="line-content"><span class="html-comment"> using a "wizard" approach to completing a large form,</span></td></tr><tr><td class="line-number" value="120"></td><td class="line-content"><span class="html-comment"> to ensure that a page is not skipped.</span></td></tr><tr><td class="line-number" value="121"></td><td class="line-content"><span class="html-comment"> [0]</span></td></tr><tr><td class="line-number" value="122"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="123"></td><td class="line-content"><span class="html-comment"> indexedListProperty</span></td></tr><tr><td class="line-number" value="124"></td><td class="line-content"><span class="html-comment"> The "indexedListProperty" is the method name that will</span></td></tr><tr><td class="line-number" value="125"></td><td class="line-content"><span class="html-comment"> return an array or a Collection used to retrieve the</span></td></tr><tr><td class="line-number" value="126"></td><td class="line-content"><span class="html-comment"> list and then loop through the list performing the</span></td></tr><tr><td class="line-number" value="127"></td><td class="line-content"><span class="html-comment"> validations for this field.</span></td></tr><tr><td class="line-number" value="128"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="129"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="130"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT field (msg|arg|arg0|arg1|arg2|arg3|var)*&gt;</span></td></tr><tr><td class="line-number" value="131"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST field property CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="132"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST field depends CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="133"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST field page CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="134"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST field indexedListProperty CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="135"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="136"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="137"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="138"></td><td class="line-content"><span class="html-comment"> The "msg" element defines a custom message key to use when one of the</span></td></tr><tr><td class="line-number" value="139"></td><td class="line-content"><span class="html-comment"> validators for this field fails. Each validator has a default message</span></td></tr><tr><td class="line-number" value="140"></td><td class="line-content"><span class="html-comment"> property that is used when a corresonding field msg is not specified.</span></td></tr><tr><td class="line-number" value="141"></td><td class="line-content"><span class="html-comment"> Each validator applied to a field may have its own msg element.</span></td></tr><tr><td class="line-number" value="142"></td><td class="line-content"><span class="html-comment"> The msg element accepts these attributes.</span></td></tr><tr><td class="line-number" value="143"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="144"></td><td class="line-content"><span class="html-comment"> name The name of the validator corresponding to this msg.</span></td></tr><tr><td class="line-number" value="145"></td><td class="line-content"><span class="html-comment"> </span></td></tr><tr><td class="line-number" value="146"></td><td class="line-content"><span class="html-comment"> bundle The resource bundle name that the key should be resolved in.</span></td></tr><tr><td class="line-number" value="147"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="148"></td><td class="line-content"><span class="html-comment"> key The key that will return the message template from a</span></td></tr><tr><td class="line-number" value="149"></td><td class="line-content"><span class="html-comment"> resource bundle.</span></td></tr><tr><td class="line-number" value="150"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="151"></td><td class="line-content"><span class="html-comment"> resource If set to "false", the key is taken to be a literal</span></td></tr><tr><td class="line-number" value="152"></td><td class="line-content"><span class="html-comment"> value rather than a bundle key.</span></td></tr><tr><td class="line-number" value="153"></td><td class="line-content"><span class="html-comment"> [true]</span></td></tr><tr><td class="line-number" value="154"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="155"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT msg EMPTY&gt;</span></td></tr><tr><td class="line-number" value="156"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST msg key CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="157"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST msg name CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="158"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST msg bundle CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="159"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST msg resource CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="160"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="161"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="162"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="163"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="164"></td><td class="line-content"><span class="html-comment"> The "arg" element defines a replacement value to use with the</span></td></tr><tr><td class="line-number" value="165"></td><td class="line-content"><span class="html-comment"> message template for this validator or this field.</span></td></tr><tr><td class="line-number" value="166"></td><td class="line-content"><span class="html-comment"> The arg element accepts these attributes.</span></td></tr><tr><td class="line-number" value="167"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="168"></td><td class="line-content"><span class="html-comment"> name The name of the validator corresponding to this msg.</span></td></tr><tr><td class="line-number" value="169"></td><td class="line-content"><span class="html-comment"> If not supplied, this argument will be used in the given </span></td></tr><tr><td class="line-number" value="170"></td><td class="line-content"><span class="html-comment"> position for every validator.</span></td></tr><tr><td class="line-number" value="171"></td><td class="line-content"><span class="html-comment"> </span></td></tr><tr><td class="line-number" value="172"></td><td class="line-content"><span class="html-comment"> bundle The resource bundle name that the key should be resolved in. </span></td></tr><tr><td class="line-number" value="173"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="174"></td><td class="line-content"><span class="html-comment"> key The key that will return the message template from a</span></td></tr><tr><td class="line-number" value="175"></td><td class="line-content"><span class="html-comment"> resource bundle.</span></td></tr><tr><td class="line-number" value="176"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="177"></td><td class="line-content"><span class="html-comment"> resource If set to "false", the key is taken to be a literal</span></td></tr><tr><td class="line-number" value="178"></td><td class="line-content"><span class="html-comment"> value rather than a bundle key.</span></td></tr><tr><td class="line-number" value="179"></td><td class="line-content"><span class="html-comment"> [true]</span></td></tr><tr><td class="line-number" value="180"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="181"></td><td class="line-content"><span class="html-comment"> position The position of this replacement parameter in the message.</span></td></tr><tr><td class="line-number" value="182"></td><td class="line-content"><span class="html-comment"> For example, position="0" will set the first argument.</span></td></tr><tr><td class="line-number" value="183"></td><td class="line-content"><span class="html-comment"> [0]</span></td></tr><tr><td class="line-number" value="184"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="185"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT arg EMPTY&gt;</span></td></tr><tr><td class="line-number" value="186"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg key CDATA #REQUIRED&gt;</span></td></tr><tr><td class="line-number" value="187"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg bundle CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="188"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg name CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="189"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg resource CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="190"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg position CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="191"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="192"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="193"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="194"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="195"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="196"></td><td class="line-content"><span class="html-comment"> DEPRECATED Use &lt;arg position="0"/&gt; instead.</span></td></tr><tr><td class="line-number" value="197"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="198"></td><td class="line-content"><span class="html-comment"> The "arg0" element defines the first replacement value to use with the</span></td></tr><tr><td class="line-number" value="199"></td><td class="line-content"><span class="html-comment"> message template for this validator or this field.</span></td></tr><tr><td class="line-number" value="200"></td><td class="line-content"><span class="html-comment"> The arg0 element accepts these attributes.</span></td></tr><tr><td class="line-number" value="201"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="202"></td><td class="line-content"><span class="html-comment"> name The name of the validator corresponding to this msg.</span></td></tr><tr><td class="line-number" value="203"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="204"></td><td class="line-content"><span class="html-comment"> key The key that will return the message template from a</span></td></tr><tr><td class="line-number" value="205"></td><td class="line-content"><span class="html-comment"> resource bundle.</span></td></tr><tr><td class="line-number" value="206"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="207"></td><td class="line-content"><span class="html-comment"> resource If set to "false", the key is taken to be a literal</span></td></tr><tr><td class="line-number" value="208"></td><td class="line-content"><span class="html-comment"> value rather than a bundle key.</span></td></tr><tr><td class="line-number" value="209"></td><td class="line-content"><span class="html-comment"> [true]</span></td></tr><tr><td class="line-number" value="210"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="211"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT arg0 EMPTY&gt;</span></td></tr><tr><td class="line-number" value="212"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg0 name CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="213"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg0 key CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="214"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg0 resource CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="215"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="216"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="217"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="218"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="219"></td><td class="line-content"><span class="html-comment"> DEPRECATED Use &lt;arg position="1"/&gt; instead.</span></td></tr><tr><td class="line-number" value="220"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="221"></td><td class="line-content"><span class="html-comment"> The "arg1" element defines the second replacement value to use with the</span></td></tr><tr><td class="line-number" value="222"></td><td class="line-content"><span class="html-comment"> message template for this validator or this field.</span></td></tr><tr><td class="line-number" value="223"></td><td class="line-content"><span class="html-comment"> The arg1 element accepts these attributes.</span></td></tr><tr><td class="line-number" value="224"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="225"></td><td class="line-content"><span class="html-comment"> name The name of the validator corresponding to this msg.</span></td></tr><tr><td class="line-number" value="226"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="227"></td><td class="line-content"><span class="html-comment"> key The key that will return the message template from a</span></td></tr><tr><td class="line-number" value="228"></td><td class="line-content"><span class="html-comment"> resource bundle.</span></td></tr><tr><td class="line-number" value="229"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="230"></td><td class="line-content"><span class="html-comment"> resource If set to "false", the key is taken to be a literal</span></td></tr><tr><td class="line-number" value="231"></td><td class="line-content"><span class="html-comment"> value rather than a bundle key.</span></td></tr><tr><td class="line-number" value="232"></td><td class="line-content"><span class="html-comment"> [true]</span></td></tr><tr><td class="line-number" value="233"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="234"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT arg1 EMPTY&gt;</span></td></tr><tr><td class="line-number" value="235"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg1 name CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="236"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg1 key CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="237"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg1 resource CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="238"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="239"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="240"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="241"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="242"></td><td class="line-content"><span class="html-comment"> DEPRECATED Use &lt;arg position="2"/&gt; instead.</span></td></tr><tr><td class="line-number" value="243"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="244"></td><td class="line-content"><span class="html-comment"> The "arg2" element defines the third replacement value to use with the</span></td></tr><tr><td class="line-number" value="245"></td><td class="line-content"><span class="html-comment"> message template for this validator or this field.</span></td></tr><tr><td class="line-number" value="246"></td><td class="line-content"><span class="html-comment"> The arg2 element accepts these attributes.</span></td></tr><tr><td class="line-number" value="247"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="248"></td><td class="line-content"><span class="html-comment"> name The name of the validator corresponding to this msg.</span></td></tr><tr><td class="line-number" value="249"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="250"></td><td class="line-content"><span class="html-comment"> key The key that will return the message template from a</span></td></tr><tr><td class="line-number" value="251"></td><td class="line-content"><span class="html-comment"> resource bundle.</span></td></tr><tr><td class="line-number" value="252"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="253"></td><td class="line-content"><span class="html-comment"> resource If set to "false", the key is taken to be a literal</span></td></tr><tr><td class="line-number" value="254"></td><td class="line-content"><span class="html-comment"> value rather than a bundle key.</span></td></tr><tr><td class="line-number" value="255"></td><td class="line-content"><span class="html-comment"> [true]</span></td></tr><tr><td class="line-number" value="256"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="257"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT arg2 EMPTY&gt;</span></td></tr><tr><td class="line-number" value="258"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg2 name CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="259"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg2 key CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="260"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg2 resource CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="261"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="262"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="263"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="264"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="265"></td><td class="line-content"><span class="html-comment"> DEPRECATED Use &lt;arg position="3"/&gt; instead.</span></td></tr><tr><td class="line-number" value="266"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="267"></td><td class="line-content"><span class="html-comment"> The "arg3" element defines the fourth replacement value to use with the</span></td></tr><tr><td class="line-number" value="268"></td><td class="line-content"><span class="html-comment"> message template for this validator or this field.</span></td></tr><tr><td class="line-number" value="269"></td><td class="line-content"><span class="html-comment"> The arg0 element accepts these attributes.</span></td></tr><tr><td class="line-number" value="270"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="271"></td><td class="line-content"><span class="html-comment"> name The name of the validator corresponding to this msg.</span></td></tr><tr><td class="line-number" value="272"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="273"></td><td class="line-content"><span class="html-comment"> key The key that will return the message template from a</span></td></tr><tr><td class="line-number" value="274"></td><td class="line-content"><span class="html-comment"> resource bundle.</span></td></tr><tr><td class="line-number" value="275"></td><td class="line-content"><span class="html-comment"><br></span></td></tr><tr><td class="line-number" value="276"></td><td class="line-content"><span class="html-comment"> resource If set to "false", the key is taken to be a literal</span></td></tr><tr><td class="line-number" value="277"></td><td class="line-content"><span class="html-comment"> value rather than a bundle key.</span></td></tr><tr><td class="line-number" value="278"></td><td class="line-content"><span class="html-comment"> [true]</span></td></tr><tr><td class="line-number" value="279"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="280"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT arg3 EMPTY&gt;</span></td></tr><tr><td class="line-number" value="281"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg3 name CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="282"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg3 key CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="283"></td><td class="line-content"><span class="html-comment">&lt;!ATTLIST arg3 resource CDATA #IMPLIED&gt;</span></td></tr><tr><td class="line-number" value="284"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="285"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="286"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="287"></td><td class="line-content"><span class="html-comment"> The "var" element can set parameters that a field may need to pass to</span></td></tr><tr><td class="line-number" value="288"></td><td class="line-content"><span class="html-comment"> one of its validators, such as the minimum and maximum values in a</span></td></tr><tr><td class="line-number" value="289"></td><td class="line-content"><span class="html-comment"> range validation. These parameters may also be referenced by one of the</span></td></tr><tr><td class="line-number" value="290"></td><td class="line-content"><span class="html-comment"> arg? elements using a shell syntax: ${var:var-name}.</span></td></tr><tr><td class="line-number" value="291"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="292"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT var (var-name, var-value)&gt;</span></td></tr><tr><td class="line-number" value="293"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="294"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="295"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="296"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="297"></td><td class="line-content"><span class="html-comment"> The name of the var parameter to provide to a field's validators.</span></td></tr><tr><td class="line-number" value="298"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="299"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT var-name (#PCDATA)&gt;</span></td></tr><tr><td class="line-number" value="300"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="301"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="302"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="303"></td><td class="line-content"><span class="html-comment">&lt;!--</span></td></tr><tr><td class="line-number" value="304"></td><td class="line-content"><span class="html-comment"> The value of the var parameter to provide to a field's validators.</span></td></tr><tr><td class="line-number" value="305"></td><td class="line-content"><span class="html-comment">--&gt;</span></td></tr><tr><td class="line-number" value="306"></td><td class="line-content"><span class="html-comment">&lt;!ELEMENT var-value (#PCDATA)&gt;</span></td></tr><tr><td class="line-number" value="307"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="308"></td><td class="line-content"><br></td></tr><tr><td class="line-number" value="309"></td><td class="line-content"><span class="html-end-of-file"></span></td></tr></tbody></table></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment