本文整理汇总了Java中org.eclipse.uml2.uml.OutputPin.setUpperValue方法的典型用法代码示例。如果您正苦于以下问题:Java OutputPin.setUpperValue方法的具体用法?Java OutputPin.setUpperValue怎么用?Java OutputPin.setUpperValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.uml2.uml.OutputPin
的用法示例。
在下文中一共展示了OutputPin.setUpperValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: caseAExtentIdentifierExpression
import org.eclipse.uml2.uml.OutputPin; //导入方法依赖的package包/类
@Override
public void caseAExtentIdentifierExpression(AExtentIdentifierExpression node) {
String classifierName = TextUMLCore.getSourceMiner().getQualifiedIdentifier(node.getMinimalTypeIdentifier());
final Classifier classifier = (Classifier) getRepository().findNamedElement(classifierName,
IRepository.PACKAGE.getClassifier(), namespaceTracker.currentPackage());
if (classifier == null) {
problemBuilder.addError("Unknown classifier '" + classifierName + "'", node.getMinimalTypeIdentifier());
throw new AbortedStatementCompilationException();
}
ReadExtentAction action = (ReadExtentAction) builder.createAction(IRepository.PACKAGE.getReadExtentAction());
try {
action.setClassifier(classifier);
final OutputPin result = action.createResult(null, classifier);
result.setUpperValue(MDDUtil.createLiteralUnlimitedNatural(namespaceTracker.currentPackage(),
LiteralUnlimitedNatural.UNLIMITED));
result.setIsUnique(true);
builder.registerOutput(result);
fillDebugInfo(action, node);
} finally {
builder.closeAction();
}
}
示例2: caseAEmptySet
import org.eclipse.uml2.uml.OutputPin; //导入方法依赖的package包/类
@Override
public void caseAEmptySet(AEmptySet node) {
final ValueSpecificationAction action = (ValueSpecificationAction) builder.createAction(IRepository.PACKAGE
.getValueSpecificationAction());
String qualifiedIdentifier = TextUMLCore.getSourceMiner().getQualifiedIdentifier(
node.getMinimalTypeIdentifier());
Classifier classifier = (Classifier) getRepository().findNamedElement(qualifiedIdentifier,
IRepository.PACKAGE.getClassifier(), namespaceTracker.currentPackage());
if (classifier == null) {
problemBuilder.addProblem(new UnknownType(qualifiedIdentifier), node.getMinimalTypeIdentifier());
throw new AbortedStatementCompilationException();
}
try {
action.setValue(MDDUtil.createLiteralNull(namespaceTracker.currentPackage()));
OutputPin result = action.createResult(null, classifier);
result.setUpperValue(MDDUtil.createLiteralUnlimitedNatural(namespaceTracker.currentPackage(),
LiteralUnlimitedNatural.UNLIMITED));
builder.registerOutput(result);
fillDebugInfo(action, node);
} finally {
builder.closeAction();
}
checkIncomings(action, node, getBoundElement());
}
示例3: enhanceAction
import org.eclipse.uml2.uml.OutputPin; //导入方法依赖的package包/类
@Override
public void enhanceAction() {
getProduct().setClassifier(this.<Classifier> findNamedElement(classifierName, Literals.CLASSIFIER));
final OutputPin result = getProduct().createResult(null, getProduct().getClassifier());
result.setUpperValue(MDDUtil.createLiteralUnlimitedNatural(getProduct().getNearestPackage(),
LiteralUnlimitedNatural.UNLIMITED));
result.setIsUnique(true);
}