IsRequired returns true if the given string matches the name of a required attribute, false otherwise. This method only applies to attributes of type Object.
(attName string)
| 445 | // attribute, false otherwise. This method only applies to attributes of type |
| 446 | // Object. |
| 447 | func (a *AttributeExpr) IsRequired(attName string) bool { |
| 448 | return slices.Contains(a.AllRequired(), attName) |
| 449 | } |
| 450 | |
| 451 | // IsRequiredNoDefault returns true if the given string matches the name of a |
| 452 | // required attribute and the attribute has no default value, false otherwise. |