- /**
- * Sets the name of this field. The name must not be {@code null} and
- * must not match any other fields in this profile but my match the name
- * of this field.
- *
- * @param name
- * The new name of this field
- * @return This field
- */
- public Field setName(String name) {
- checkNotNull(name, "name must not be null");
- checkArgument(getFieldByName(name) == null, "name must be unique");
- this.name = name;
- return this;
- }
-
- /**
- * Returns the value of this field.
- *
- * @return The value of this field
- */