[EMAIL PROTECTED] wrote:
>
> what is the jakarta-regexp package used for if not for regular expressions?
>
Of course it's used for regular expressions, just not for the match
attribute.
It's used for the pattern facet in the XML Schema.
> what is the behaviour of *?
> will * match any xml tag that does not already match some other field or
> class in the mapping.xsd?
It matches any field that does not already have a field descriptor that
directly
matches the name (or bind-xml name) of the field.
>
> for example what will the following produce?
>
> <x>
> <a>atext</a>
> <b><b1>field1</b1></b>
> <bb><b1>field1</b1><b2>field2</b2></bb>
> <bbb><b1>field1</b1><b3>field3</b3></bbb>
> <x>
>
> and
>
> <mapping>
> <class name="x">
> <map-to xml="x"/>
> <field name="a" type="string">
> <bind-xml name="version" node="element"/>
> </field>
> <field name="b" type="b" collection="collection">
> <bind-xml name="b" matches="*" node="element"/>
> </field>
> </class>
> <class name="b">
> <map-to xml="b"/>
> <field name="b1" type="string">
> <bind-xml name="b1" node="element"/>
> </field>
> </class>
> <class name="bb" extends="b">
> <map-to xml="bb"/>
> <field name="b2" type="string">
> <bind-xml name="b2" node="element"/>
> </field>
> </class>
> <class name="bbb" extends="b">
> <map-to xml="TodoActivity"/>
> <field name="b3" type="string">
> <bind-xml name="b3" node="element"/>
> </field>
> </class>
> </mapping>
>
Since you are not using auto-complete and bb, bbb do not have fields
specified
in the class mapping for x, both bb and bbb will be matched by the field
mapping for b
since you have specified '*'.
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev