本文整理汇总了Java中org.eclipse.emf.ecore.util.FeatureMap.Entry.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java Entry.getValue方法的具体用法?Java Entry.getValue怎么用?Java Entry.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.ecore.util.FeatureMap.Entry
的用法示例。
在下文中一共展示了Entry.getValue方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findOwnerIdOfEObj
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private String findOwnerIdOfEObj(AnyType eObjAnyType) {
String ownerId = null;
if (eObjAnyType != null) {
FeatureMap mixed = eObjAnyType.getMixed();
for (Entry entry : mixed) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName != null) {
if (entryName.equals("model")) {
if (entry.getValue() instanceof AnyType) {
AnyType modelAnyType = (AnyType) entry.getValue();
ownerId = getEObjEOwnerIdFromModelAnyType(modelAnyType);
break;
}
}
}
}
}
return ownerId;
}
示例2: findStereoTypeOfEObj
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private String findStereoTypeOfEObj(AnyType eObjAnyType) {
// find parameter and store it in List
String stereoType = null;
if (eObjAnyType != null) {
FeatureMap mixed = eObjAnyType.getMixed();
for (Entry entry : mixed) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName != null) {
if (entryName.equals("properties")) {
if (entry.getValue() instanceof AnyType) {
AnyType propertiesAnyType = (AnyType) entry
.getValue();
stereoType = getEObjStereotypeFromPropertyAnyType(propertiesAnyType);
break;
}
}
}
}
}
return stereoType;
}
示例3: findEObjAllParameterList
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private ArrayList<Parameter> findEObjAllParameterList(AnyType eObjAnyType) {
// find parameter in 'Tag' tag and store it in List
ArrayList<Parameter> paramList = null;
FeatureMap mixed = eObjAnyType.getMixed();
for (Entry entry : mixed) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName != null) {
if (entryName.equals("tags")) {
if (entry.getValue() instanceof AnyType) {
AnyType tagAnyType = (AnyType) entry.getValue();
paramList = findTagsAttrAndAddToParamList(tagAnyType);
}
}
}
}
return paramList;
}
示例4: getEObjStereotypeFromPropertyAnyType
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private String getEObjStereotypeFromPropertyAnyType(
AnyType propertiesAnyType) {
String stereoType = null;
if (propertiesAnyType != null) {
FeatureMap propertiesMap = propertiesAnyType.getAnyAttribute();
for (Entry entry : propertiesMap) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName != null) {
if (entryName.equals("stereotype")) {
stereoType = (String) entry.getValue();
break;
}
}
}
}
return stereoType;
}
示例5: verifyFormIsNull
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
/**
* 判断表单是否空
*
* @param flowElement
*/
private static void verifyFormIsNull(FlowElement flowElement,StringBuffer sb) {
if (flowElement instanceof UserTask) {
UserTask userTask = (UserTask) flowElement;
for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
FeatureMap extensionElements = extensionAttributeValue.getValue();
for (Entry entry : extensionElements) {
if (entry.getValue() instanceof FormUri) {
FormUri formUri = (FormUri) entry.getValue();
if (formUri.getExpression().getValue() != null || !(formUri.getExpression().getValue().equals(""))) {
return;
}
}
}
}
sb.append(userTask.getId() + "节点没有设置表单;" + "");
}
}
示例6: allUserTaskNodeHaveTaskCommand
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
/**
* 验证所有人工节点含有处理命令
*
* @param flowElement
*/
private static void allUserTaskNodeHaveTaskCommand(FlowElement flowElement,StringBuffer sb) {
if (flowElement instanceof UserTask) {
for (ExtensionAttributeValue extensionAttributeValue : ((UserTask) flowElement).getExtensionValues()) {
FeatureMap extensionElements = extensionAttributeValue.getValue();
for (Entry entry : extensionElements) {
if (entry.getValue() instanceof TaskCommand) {
TaskCommand taskCommand = (TaskCommand) entry.getValue();
if (taskCommand != null) {
return;
}
}
}
}
sb.append(((UserTask) flowElement).getId() + "节点没有设置处理命令;" + "");
}
}
示例7: getEObjEOwnerIdFromModelAnyType
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private String getEObjEOwnerIdFromModelAnyType(AnyType modelAnyType) {
String ownerId = null;
FeatureMap eObjAttrs = modelAnyType.getAnyAttribute();
for (Entry entry : eObjAttrs) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName.equals("owner")) {
ownerId = (String) entry.getValue();
break;
}
}
return ownerId;
}
示例8: getEObjectIdRefFromExtensionImpl
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private String getEObjectIdRefFromExtensionImpl(AnyType eObjAnyType) {
String idRef = null;
FeatureMap eObjAttrs = eObjAnyType.getAnyAttribute();
for (Entry entry : eObjAttrs) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName.equals("idref")) {
idRef = (String) entry.getValue();
}
}
return idRef;
}
示例9: findEObjAllConstraintList
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private ArrayList<Constraint> findEObjAllConstraintList(AnyType eObjAnyType) {
ArrayList<Constraint> constraintList = null;
FeatureMap mixed = eObjAnyType.getMixed();
for (Entry entry : mixed) {
String entryName = (entry.getEStructuralFeature()).getName();
if (entryName != null) {
if (entryName.equals("constraints")) {
AnyType cosntraintsAnyType = (AnyType) entry.getValue();
constraintList = findConstraintAttrAndAddToConstraintList(cosntraintsAnyType);
}
}
}
return constraintList;
}
示例10: verifyAll
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
/**
* 验证总方法
*
* @return 通过返回异常信息,""表示通过
*/
public static String verifyAll(Process process) {
StringBuffer sb = new StringBuffer();
List<FlowElement> flowElements = process.getFlowElements();
// 先验证主流程信息
verificationProc(flowElements,sb);
isSubmitNodeHasUserCommand(flowElements,sb);
processDefaultTitleAndDefaultForm(process,sb);
boolean yzForm = true;
if (process.getExtensionValues().size() > 0) {
for (ExtensionAttributeValue extensionAttributeValue : process.getExtensionValues()) {
FeatureMap extensionElements = extensionAttributeValue.getValue();
for (Entry entry : extensionElements) {
if (entry.getValue() instanceof FormUri) {
FormUri formUri = (FormUri) entry.getValue();
if (formUri.getExpression().getValue() == null || formUri.getExpression().getValue().equals("")) {
yzForm = true;
} else {
yzForm = false;
}
break;
}
}
}
}
if (yzForm) {
verifyFormIsNull(flowElements,sb);
}
// 循环主流程所有节点
for (FlowElement flowElement :process.getFlowElements()) {
// 如果发现是子流程则进行递归
if (flowElement instanceof SubProcess) {
getSubProcessElement((SubProcess) flowElement, yzForm,sb);
}
}
if (sb.length() > 0 && !sb.toString().equals("子流程验证信息:")) {
return sb.toString();
}
return "";
}
示例11: processDefaultTitleAndDefaultForm
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private static void processDefaultTitleAndDefaultForm(Process process,StringBuffer sb) {
boolean formUriYZ = false;
boolean taskSubjectYZ = false;
if (process.getExtensionValues().size() > 0) {
for (ExtensionAttributeValue extensionAttributeValue : process.getExtensionValues()) {
FeatureMap extensionElements = extensionAttributeValue.getValue();
for (Entry entry : extensionElements) {
if (entry.getValue() instanceof FormUri) {
FormUri formUri = (FormUri) entry.getValue();
if (formUri.getExpression().getValue() != null && !formUri.getExpression().getValue().equals("")) {
formUriYZ = true;
}
}
if (entry.getValue() instanceof TaskSubject) {
TaskSubject taskSubject = (TaskSubject) entry.getValue();
if (taskSubject.getExpression().getValue() != null && !taskSubject.getExpression().getValue().equals("")) {
taskSubjectYZ = true;
}
}
}
}
}
if (formUriYZ && taskSubjectYZ) {
return;
} else {
if (!formUriYZ) {
sb.append("流程定义上默认表单不能为空;" + "");
}
if (!taskSubjectYZ) {
sb.append("流程定义上默认任务主题不能为空;" + "");
}
}
return;
}
示例12: allUserTaskNodeHaveTaskAssignment
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
/**
* 判断所有人工任务节点都有任务分配
*
* @param flowElements
*/
public static void allUserTaskNodeHaveTaskAssignment(List<FlowElement> flowElements,StringBuffer sb) {
for (FlowElement flowElement : flowElements) {
if (flowElement instanceof UserTask) {
UserTask userTask = (UserTask) flowElement;
if (userTask.getResources().size() < 1) {
sb.append(userTask.getId() + "节点没有设置任务分配;" + "");
}
LoopCharacteristics loopCharacteristics = userTask.getLoopCharacteristics();
if (loopCharacteristics instanceof MultiInstanceLoopCharacteristics) {
for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
FeatureMap extensionElements = extensionAttributeValue.getValue();
for (Entry entry : extensionElements) {
if (entry.getValue() instanceof TaskCommand) {
TaskCommand taskCommand = (TaskCommand) entry.getValue();
if (taskCommand.getCommandType().equals("rollBack")) {
sb.append(((UserTask) flowElement).getId() + " 含有多实例的节点不能做退回处理;" + "");
}
}
}
}
}
}
}
}
示例13: setValue
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
public Object setValue(int index, Object value)
{
Entry entry = (Entry)featureMap.get(getEStructuralFeature(), index, false);
set(index, createEntry(entry.getEStructuralFeature(), value));
return entry.getValue();
}
示例14: getExtensionExpression
import org.eclipse.emf.ecore.util.FeatureMap.Entry; //导入方法依赖的package包/类
private Expression getExtensionExpression(BaseElement baseElement) {
if (baseElement.getExtensionValues().size() > 0) {
for (ExtensionAttributeValue extensionAttributeValue : baseElement.getExtensionValues()) {
FeatureMap extensionElements = extensionAttributeValue.getValue();
for (Entry entry : extensionElements) {
if (entry.getValue() instanceof Expression) {
Expression expression= (Expression) entry.getValue();
return expression;
}
}
}
}
return null;
}