什么样的 UML 关系在构造函数中接受枚举但不作为对象的属性?

What kind of UML relationship is accepting an enum in the constructor but not as an attribute of the object?

我正在设计一个包,其中一个特定的 class 将接受多个枚举作为构造函数的参数。这些枚举不会成为属性,但它们将用于实例化成为属性的对象。我还没有代码,但这里有一些伪代码来说明我的设计思想:

Enum Type {

    TYPE_A(A::new), TYPE_B(B::new);

    private Supplier supplier;

    private Type(Supplier<X> supplier) {
        this.supplier = supplier;
    }

    public X createInstance() {
        return supplier.get();
    }

}

Class SomeClass {

    Object someObject;

    public SomeClass(Type t) {
        someObject = t.createInstance();
    }
}

以上想法是受到this question的回答启发的。

我如何class证明上面 TypeSomeClass 之间的这种关系?

简单地说,这是从 SomeClassType 的依赖。

Difference between association and dependency?