David,

please see inline.

Werner

Karr, David wrote:
> How is this related to the "automaticConflictResolution" flag I set in
> my castorbuilder.properties file?

# Specifies whether automatic class name conflict resolution
# should be used or not; defaults to false.
#
org.exolab.castor.builder.automaticConflictResolution=false

In other words, with this property you turn 'automatic conflict
resolution' on and off.

> Can this "ClassNameConflictResolver" property be set in the Ant task or
> the SourceGeneratorMain command line?
Ant: yes.
SGMain: no, not yet (--> Jira issue, please).
> 
> Is this the same as the "name conflict strategy" that I see in the
> SourceGeneratorMain from this latest 1.1.1 snapshot?
No, that's something else. This is the 'strategy' to use when emitting
warnings that a class is about to be overwritten.
> 
> I don't understand the syntax for the "namingXML" element in the
> documentation.  How do you specify a global suffix for all complex types
> using this? 

In a binding file, include ...

        <namingXML>
                <complexTypeName>
                        <suffix>CType</suffix>
                </complexTypeName>
        </namingXML>

and you specify that all Java classes generated for complex types will
have a suffix 'CType' appended.
> 
>> -----Original Message-----
>> From: Werner Guttmann [mailto:[EMAIL PROTECTED] 
>> Sent: Sunday, April 01, 2007 11:04 AM
>> To: [email protected]
>> Subject: Re: [castor-user] Conflict Resolution Strategy: Add 
>> "Type" to type name class?
>>
>> There already is. The SourceGenerator has a new method
>> setClassNameConflictResolver(String) that allows you to set one fo two
>> values: "xpath" or "type" (with xpath being the default).
>>
>> Once you have selected that "type" strategy, in case of a 
>> conflict, the type name of the element being analyzed 
>> currently will be appended to the element name after by a 'By' suffix.
>>
>> Werner
>>
>> PS If your question is about named complex type vs. element 
>> clashes, please use the binding fiel to specify a global 
>> suffix for all e.g.
>> complex types.
>>
>> Karr, David wrote:
>>> Would it be possible to define a Conflict Resolution Strategy which 
>>> would cause a type name class that is the same as an 
>> element name to 
>>> get "Type" appended to the end of the class name?
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to