fixed

Top  Previous  Next

- fixed [false] ( true | false )

 

Instructs the compiler to use the required example as the immutable value for this { attribute, container, value }. Use fixed="true" when you want to specify a value that will never change. A fixed value must be valid with respects to it's constraints.

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
    <message>
        <messageType fixed="true">ERP</messageType>
        <messageId type="positiveInteger" autoIncremented="true">1</messageId>
        <messageStatus regex="open,closed,pending" default="open">open</messageStatus>
        <messageContent maxLength="4096">content</messageContent>
    </message>
</schema>