Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] XmlDiscriminatorValue and Regex

Is it possible to use a regular _expression_ inside the @XmlDiscriminatorValue attribute? For example:

@XmlDiscriminatorValue("^[a-z]*/[a-z]*\+xml$")

This would be a great help to me as I potentially have multiple values that would map over to the same Java class. If this is not possible, is this something that might be considered if I submitted it as a feature request?

Thanks,
Matt Bertolini

Back to the top