xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Vasilik" <eric...@bea.com>
Subject RE: get/set methods for <xsd:any> element
Date Wed, 10 Mar 2004 18:31:38 GMT
I would rather use selectChildren.  It is shorter and feels similar to
selectPath (which it is a convenience for) And XmlCursor has:

    toFirstChild

and similar methods.  Children in this context are assumed to be
elements.

-----Original Message-----
From: David Remy 
Sent: Wednesday, March 10, 2004 10:27 AM
To: xmlbeans-dev@xml.apache.org
Subject: RE: get/set methods for <xsd:any> element

> -----Original Message-----
> From: Eric Vasilik 
> Sent: Wednesday, March 10, 2004 1:31 AM
> To: xmlbeans-dev@xml.apache.org
> Subject: RE: get/set methods for <xsd:any> element
> 
> 
> These methods should not be prefixed with "get".  They can 
> conflict with
> schema generated methods.  I suggest:
> 
>     selectChildren ( ... )
>     selectAttributes ( ... )
>     selectAttribute ( ... )

so selectChildren would be elements.  i think we have talked about this
before in the XmlCursor API but why not selectChildElements?  

> 
> I choose "select" prefix because there is a precedent of the existing
> method on XmlObject already:
> 
>     selectPath( ... )
> 
> These new select methods are convenience methods for the, 
> more powerful,
> selectPath method.

I agree with your reasoning.  +1

</snip> 

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message