org.eclipse.emf.common.util.EMap Java Examples

The following examples show how to use org.eclipse.emf.common.util.EMap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MultiActionValuesScriptGenerator.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
private static StringBuilder getJSContext( ActionValue values  )
{
	StringBuilder sb = new StringBuilder( );
	if ( values instanceof MultiURLValues )
	{
		MultiURLValues muv = (MultiURLValues) values;
		sb.append( "\n\t var menuInfo = new BirtChartMenuInfo();\n" ); //$NON-NLS-1$

		EMap<String, String> propMap = muv.getPropertiesMap( );
		sb.append( getPropertiesJS( propMap ).toString( ) );
		int i = 0;
		for ( URLValue uv : getValidURLValues( muv ) )
		{
			sb = getURLValueJS( sb, i, uv, HTMLEncoderAdapter.getInstance( ) );
			i++;
		}
	}

	appendInteractivityVariables( sb );

	return sb;
}
 
Example #2
Source File: ServiceMetadataDialog.java    From tesb-studio-se with Apache License 2.0 6 votes vote down vote up
public ServiceMetadataDialog(IShellProvider parentShell, ServiceItem serviceItem, ServiceConnection serviceConnection) {
    super(parentShell);
    this.serviceItem = serviceItem;
    this.serviceConnection = serviceConnection;
    EMap<String, String> props = serviceConnection.getAdditionalInfo();
    if (props != null) {
        useSAM = Boolean.valueOf(props.get(USE_SAM));
        useSL = Boolean.valueOf(props.get(USE_SL));
        securitySAML = Boolean.valueOf(props.get(SECURITY_SAML));
        securityBasic = Boolean.valueOf(props.get(SECURITY_BASIC));
        authorization = Boolean.valueOf(props.get(AUTHORIZATION));
        encryption = Boolean.valueOf(props.get(ENCRYPTION));
        useServiceRegistry = Boolean.valueOf(props.get(USE_SERVICE_REGISTRY));
        logMessages = Boolean.valueOf(props.get(LOG_MESSAGES));
        wsdlSchemaValidation = Boolean.valueOf(props.get(WSDL_SCHEMA_VALIDATION));
        useBusinessCorrelation = Boolean.valueOf(props.get(USE_BUSINESS_CORRELATION));
        for (Map.Entry<String, String> prop : props.entrySet()) {
            if (prop.getKey().startsWith(SL_CUSTOM_PROP_PREFIX)) {
                slCustomProperties.put(prop.getKey().substring(SL_CUSTOM_PROP_PREFIX.length()),
                        prop.getValue());
            }
        }
    }
}
 
Example #3
Source File: DocumentRootImpl.java    From fixflow with Apache License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
        NotificationChain msgs) {
    switch (featureID) {
    case DcPackage.DOCUMENT_ROOT__MIXED:
        return ((InternalEList<?>) getMixed()).basicRemove(otherEnd, msgs);
    case DcPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
        return ((InternalEList<?>) ((EMap.InternalMapView<String, String>) getXMLNSPrefixMap())
                .eMap()).basicRemove(otherEnd, msgs);
    case DcPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
        return ((InternalEList<?>) ((EMap.InternalMapView<String, String>) getXSISchemaLocation())
                .eMap()).basicRemove(otherEnd, msgs);
    case DcPackage.DOCUMENT_ROOT__BOUNDS:
        return basicSetBounds(null, msgs);
    case DcPackage.DOCUMENT_ROOT__FONT:
        return basicSetFont(null, msgs);
    case DcPackage.DOCUMENT_ROOT__POINT:
        return basicSetPoint(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
Example #4
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public EMap<String, String> getXSISchemaLocation() {
       if (xSISchemaLocation == null) {
           xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ActorMappingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
       }
       return xSISchemaLocation;
   }
 
Example #5
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   @Override
   public EMap<String, String> getXMLNSPrefixMap() {
	if (xMLNSPrefixMap == null) {
		xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ConnectorDefinitionPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
	}
	return xMLNSPrefixMap;
}
 
Example #6
Source File: DocumentRootImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXMLNSPrefixMap ()
{
    if ( xMLNSPrefixMap == null )
    {
        xMLNSPrefixMap = new EcoreEMap<String, String> ( EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP );
    }
    return xMLNSPrefixMap;
}
 
Example #7
Source File: MultipleActionsImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getPropertiesMap( )
{
	if ( propertiesMap == null )
	{
		propertiesMap = new EcoreEMap<String, String>( AttributePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
				EStringToStringMapEntryImpl.class,
				this,
				DataPackage.MULTIPLE_ACTIONS__PROPERTIES_MAP );
	}
	return propertiesMap;
}
 
Example #8
Source File: ExecutionModelImpl.java    From kieker with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<ComposedKey<DeployedOperation, DeployedOperation>, AggregatedInvocation> getAggregatedInvocations() {
	if (aggregatedInvocations == null) {
		aggregatedInvocations = new EcoreEMap<ComposedKey<DeployedOperation, DeployedOperation>,AggregatedInvocation>(ExecutionPackage.Literals.DEPLOYED_OPERATIONS_PAIR_TO_AGGREGATED_INVOCATION_MAP_ENTRY, DeployedOperationsPairToAggregatedInvocationMapEntryImpl.class, this, ExecutionPackage.EXECUTION_MODEL__AGGREGATED_INVOCATIONS);
	}
	return aggregatedInvocations;
}
 
Example #9
Source File: DocumentRootImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXMLNSPrefixMap ()
{
    if ( xMLNSPrefixMap == null )
    {
        xMLNSPrefixMap = new EcoreEMap<String, String> ( EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP );
    }
    return xMLNSPrefixMap;
}
 
Example #10
Source File: DocumentRootImpl.java    From fixflow with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
    switch (featureID) {
    case BpmnDiPackage.DOCUMENT_ROOT__MIXED:
        ((FeatureMap.Internal) getMixed()).set(newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
        ((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getXMLNSPrefixMap())
                .eMap()).set(newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
        ((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getXSISchemaLocation())
                .eMap()).set(newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_DIAGRAM:
        setBPMNDiagram((BPMNDiagram) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_EDGE:
        setBPMNEdge((BPMNEdge) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL:
        setBPMNLabel((BPMNLabel) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_LABEL_STYLE:
        setBPMNLabelStyle((BPMNLabelStyle) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_PLANE:
        setBPMNPlane((BPMNPlane) newValue);
        return;
    case BpmnDiPackage.DOCUMENT_ROOT__BPMN_SHAPE:
        setBPMNShape((BPMNShape) newValue);
        return;
    }
    super.eSet(featureID, newValue);
}
 
Example #11
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXMLNSPrefixMap() {
	if (xMLNSPrefixMap == null) {
		xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, DiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
	}
	return xMLNSPrefixMap;
}
 
Example #12
Source File: DocumentRootImpl.java    From ADT_Frontend with MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EMap<String, String> getXSISchemaLocation() {
	if (xSISchemaLocation == null) {
		xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IAbapObjectsPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
	}
	return xSISchemaLocation;
}
 
Example #13
Source File: EStringToDataSetMapEntryImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
public EMap<String, DataSet> getEMap( )
{
	EObject container = eContainer( );
	return container == null ? null
			: (EMap<String, DataSet>) container.eGet( eContainmentFeature( ) );
}
 
Example #14
Source File: DocumentRootImpl.java    From ADT_Frontend with MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXMLNSPrefixMap() {
	if (xMLNSPrefixMap == null) {
		xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IAbapgitstagingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
	}
	return xMLNSPrefixMap;
}
 
Example #15
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXSISchemaLocation() {
	if (xSISchemaLocation == null) {
		xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, DiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
	}
	return xSISchemaLocation;
}
 
Example #16
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXMLNSPrefixMap() {
	if (xMLNSPrefixMap == null) {
		xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, jpdl32Package.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
	}
	return xMLNSPrefixMap;
}
 
Example #17
Source File: MDDUtil.java    From textuml with Eclipse Public License 1.0 5 votes vote down vote up
public static void markGenerated(Package package_) {
      if (MDDUtil.isGenerated(package_))
          return;
      final Package root = getRootPackage(package_);
      EAnnotation annotation = root.createEAnnotation(MDDUtil.GENERATED);
EMap<String, String> details = annotation.getDetails();
details.put("dateCreated", new SimpleDateFormat("yyyy/MM/dd hh:mm:ss SSS Z").format(new Date()));
details.put("version", getMetamodelVersion());
  }
 
Example #18
Source File: MultiActionValuesScriptGenerator.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
private static StringBuilder getJSContext( MultipleActions actions,
		ULocale locale )
{
	StringBuilder sb = new StringBuilder( );
	sb.append( "\n\t var menuInfo = new BirtChartMenuInfo();\n" ); //$NON-NLS-1$

	EMap<String, String> propMap = actions.getPropertiesMap( );
	sb.append( getPropertiesJS( propMap ).toString( ) );

	int i = 0;
	for ( Action subAction : getValidActions( actions ) )
	{
		ActionValue av = subAction.getValue( );
		if ( av instanceof URLValue )
		{
			sb = getURLValueJS( sb, i, (URLValue) av, HTMLEncoderAdapter.getInstance( ) );
		}
		else if ( av instanceof ScriptValue )
		{
			sb = getScriptValueJS( sb, i, (ScriptValue) av, locale );
		}
		i++;
	}

	appendInteractivityVariables( sb );
	
	return sb;
}
 
Example #19
Source File: DocumentRootImpl.java    From ADT_Frontend with MIT License 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EMap<String, String> getXSISchemaLocation() {
	if (xSISchemaLocation == null) {
		xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IAbapgitrepositoriesPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
	}
	return xSISchemaLocation;
}
 
Example #20
Source File: ModelObjectImpl.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, ModelProperty> getProperties() {
	if (properties == null) {
		properties = new EcoreEMap<String,ModelProperty>(ModelPackage.Literals.MODEL_PROPERTY_MAP_ENTRY, ModelPropertyMapEntryImpl.class, this, ModelPackage.MODEL_OBJECT__PROPERTIES);
	}
	return properties;
}
 
Example #21
Source File: AssemblyComponentImpl.java    From kieker with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, AssemblyOperation> getAssemblyOperations() {
	if (assemblyOperations == null) {
		assemblyOperations = new EcoreEMap<String,AssemblyOperation>(AssemblyPackage.Literals.ESTRING_TO_ASSEMBLY_OPERATION_MAP_ENTRY, EStringToAssemblyOperationMapEntryImpl.class, this, AssemblyPackage.ASSEMBLY_COMPONENT__ASSEMBLY_OPERATIONS);
	}
	return assemblyOperations;
}
 
Example #22
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXMLNSPrefixMap() {
	if (xMLNSPrefixMap == null) {
		xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, DcPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
	}
	return xMLNSPrefixMap;
}
 
Example #23
Source File: ModelObjectImpl.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, ModelProperty> getProperties() {
	if (properties == null) {
		properties = new EcoreEMap<String,ModelProperty>(ModelPackage.Literals.MODEL_PROPERTY_MAP_ENTRY, ModelPropertyMapEntryImpl.class, this, ModelPackage.MODEL_OBJECT__PROPERTIES);
	}
	return properties;
}
 
Example #24
Source File: FormImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public EMap<String, String> getStringAttributes() {
       if (stringAttributes == null) {
           stringAttributes = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, FormPackage.FORM__STRING_ATTRIBUTES);
       }
       return stringAttributes;
   }
 
Example #25
Source File: BPMNToProcTest.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void shouldNotUpdateXMLNamespace() {
    final DocumentRoot documentRoot = mock(DocumentRoot.class);
    final EMap<String, String> map = mock(EMap.class);
    doReturn(map).when(documentRoot).getXMLNSPrefixMap();
    bpmnToProc.updateXMLNamespaceIfNeeded(documentRoot);
}
 
Example #26
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXSISchemaLocation() {
	if (xSISchemaLocation == null) {
		xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, Xpdl1Package.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
	}
	return xSISchemaLocation;
}
 
Example #27
Source File: DocumentRootImpl.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, String> getXSISchemaLocation() {
	if (xSISchemaLocation == null) {
		xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, BeansPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
	}
	return xSISchemaLocation;
}
 
Example #28
Source File: DocumentRootImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   public EMap<String, String> getXSISchemaLocation() {
	if (xSISchemaLocation == null) {
		xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ConnectorImplementationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
	}
	return xSISchemaLocation;
}
 
Example #29
Source File: DeployedComponentImpl.java    From kieker with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, DeployedOperation> getContainedOperations() {
	if (containedOperations == null) {
		containedOperations = new EcoreEMap<String,DeployedOperation>(DeploymentPackage.Literals.ESTRING_TO_DEPLOYED_OPERATION_MAP_ENTRY, EStringToDeployedOperationMapEntryImpl.class, this, DeploymentPackage.DEPLOYED_COMPONENT__CONTAINED_OPERATIONS);
	}
	return containedOperations;
}
 
Example #30
Source File: DeploymentContextImpl.java    From kieker with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EMap<String, DeployedComponent> getComponents() {
	if (components == null) {
		components = new EcoreEMap<String,DeployedComponent>(DeploymentPackage.Literals.ESTRING_TO_DEPLOYED_COMPONENT_MAP_ENTRY, EStringToDeployedComponentMapEntryImpl.class, this, DeploymentPackage.DEPLOYMENT_CONTEXT__COMPONENTS);
	}
	return components;
}