ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: XDocs Proposal
Date Wed, 27 Feb 2002 15:33:50 GMT
On Wed, 27 Feb 2002, Curt Arnold <carnold@houston.rr.com> wrote:

> All I've seen in the Ant code base for "enumerations" are set
> methods with string arguments.

see org.apache.tools.ant.types.EnumeratedAttribute and the various
setters in FixCrLf for usage examples.

> Is there some support for the type-safe enum construct in Ant?  For
> example, could you do something like:

Not exactly that way, but the EnumeratedAttribute mechanism gets close
as it catches errors while setting the attributes.

> The most general would be a @minOccurs and @maxOccurs tag,

For nested elements, I agree.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message