本文整理了Java中org.eclipse.uml2.uml.Operation.getClass_()
方法的一些代码示例,展示了Operation.getClass_()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.getClass_()
方法的具体详情如下:
包路径:org.eclipse.uml2.uml.Operation
类名称:Operation
方法名:getClass_
[英]Returns the value of the 'Class' container reference. It is bidirectional and its opposite is ' org.eclipse.uml2.uml.Class#getOwnedOperations'.
This feature subsets the following features:
The class that owns the operation.
[中]返回“Class”容器引用的值。它是双向的,它的对立面是“组织”。日食uml2。uml。类#getOwnedOperations。
此功能是以下功能的子集:
*“组织。日食uml2。uml。RedefinableElement#getRedefinitionContexts()'
*“组织。日食uml2。uml。NamedElement#getNamespace()'
*“组织。日食uml2。uml。功能#GetFeatureingClassifiers()'
拥有该操作的类。
代码示例来源:origin: org.umlg/java-generation-util
public static String asOclSignature(Operation oper) {
StringBuilder sb = new StringBuilder();
if (oper.getClass_() != null) {
sb.append(oper.getClass_().getName());
} else if (oper.getDatatype() != null) {
sb.append(oper.getDatatype().getName());
代码示例来源:origin: org.andromda.bootstrap.metafacades/andromda-metafacades-emf-uml22
/**
* @see org.andromda.metafacades.uml.OperationFacade#getOwner()
*/
@Override
protected Object handleGetOwner()
{
Object obj = null;
// Fix from UML2, no longer calls getOwner to get the owning Class
if (this.metaObject.getInterface()!=null)
{
obj = this.metaObject.getInterface();
}
else if (this.metaObject.getDatatype()!=null)
{
obj = this.metaObject.getDatatype();
}
else
{
obj = this.metaObject.getClass_();
}
return obj;
}
代码示例来源:origin: org.andromda.metafacades/andromda-metafacades-emf-uml22
/**
* @see org.andromda.metafacades.uml.OperationFacade#getOwner()
*/
@Override
protected Object handleGetOwner()
{
Object obj = null;
// Fix from UML2, no longer calls getOwner to get the owning Class
if (this.metaObject.getInterface()!=null)
{
obj = this.metaObject.getInterface();
}
else if (this.metaObject.getDatatype()!=null)
{
obj = this.metaObject.getDatatype();
}
else
{
obj = this.metaObject.getClass_();
}
return obj;
}
内容来源于网络,如有侵权,请联系作者删除!