繁体   English   中英

Eclipse ecore / emfatic 中的 val、ref 和 [*] 是什么意思?

[英]What does val, ref, and [*] mean in Eclipse ecore / emfatic?

查看下面的代码,val 和 ref 有什么区别,[*] 是什么意思? 无法使用谷歌找到这个。 指向参考的链接也将非常有帮助。

@namespace(uri="software_distribution", prefix="")
package software_distribution;

class ProductFamily {
    val Bundle[*] bundles;
    val Component[*] components;
    val Jar[*] jars;
}

class Bundle {
    attr String name;
    attr Integer price;
    ref Component[*] components;
}

class Component {
    attr String name;
    ref Component[*] dependencies;
    ref Jar[*] jars;
}

class Jar {
    attr String filename;
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM