1

Topic: How to define a constant in xsd?

Whether the Lord experts XSD It is possible to define somehow a constant in XSD that generating Java a class it would turn out: public MyClass {static final String myConstant = "some constant value";...}

2

Re: How to define a constant in xsd?

Hello, , you wrote: > Hello, Antei, you wrote: whether A>> the Lord experts XSD A>> It is possible to define somehow a constant in XSD that generating Java a class it would turn out: A>> public MyClass {A>> static final String myConstant = "some constant value"; A>>... A>>} > it is possible, works restriction from simple type, type as here Thanks, I found already something similar here Looks very ugly

3

Re: How to define a constant in xsd?

Hello, Antei, you wrote: whether A> It is possible to define somehow a constant in XSD that generating Java a class it would turn out and if to use jaxb "inheritance extension (namespace http://jaxb2-commons.dev.java.net/basic/inheritance)? Then in the java-class it is possible to define the necessary constants with the necessary values, and a generated class  from the