Creates a new attribute object with default parameters. The value of the created attribute is mandatory by default.