IsRequiredNoDefault returns true if the given string matches the name of a required attribute and the attribute has no default value, false otherwise. This method only applies to attributes of type Object.
(attName string)
| 452 | // required attribute and the attribute has no default value, false otherwise. |
| 453 | // This method only applies to attributes of type Object. |
| 454 | func (a *AttributeExpr) IsRequiredNoDefault(attName string) bool { |
| 455 | for _, name := range a.AllRequired() { |
| 456 | if name == attName { |
| 457 | return a.GetDefault(name) == nil |
| 458 | } |
| 459 | } |
| 460 | return false |
| 461 | } |
| 462 | |
| 463 | // IsPrimitivePointer returns true if the field generated for the given |
| 464 | // attribute should be a pointer to a primitive type. The receiver attribute must |