On Wed, 27 Feb 2002, Curt Arnold <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
