default

Top  Previous  Next

- default <value>

 

Allows you to set a default value for the container, value or attribute. A default value is different from a fixed value in that a default value can be reset and has a mutator method. The default value must be valid with respect to its constraints.

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
    <message>
        <messageType fixed="ERP">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>