Examples of EList


Examples of org.eclipse.emf.common.util.EList

//                <xs:element name="name2" personType="xs:string"/>
//            </xs:sequence>
//        </xs:complexType>
        XSDTypeDefinition personType = _xsd4YAWLBuilder.getTypeDefinition("PersonType");
        XSDComplexTypeDefinition complexPersonType = (XSDComplexTypeDefinition) personType;
        EList attributes = complexPersonType.getAttributeContents();
        for (int i = 0; i < attributes.size(); i++) {
            XSDAttributeUse attribute = (XSDAttributeUse) attributes.get(i);

            XSDAttributeDeclaration attDecl = attribute.getAttributeDeclaration();
            String attName = attDecl.getName();
            assertTrue(attName.equals("maritalStatus") || attName.equals("isParent"));
            XSDSimpleTypeDefinition attType = attDecl.getTypeDefinition();
            assertTrue("Attname(): " + attType.getName(),
                    attType.getName().equals("MaritalStatusType") ||
                    attType.getName().equals("boolean"));
        }
        XSDComplexTypeContent content = complexPersonType.getContent();
        XSDParticleImpl particle1 = (XSDParticleImpl) content;
        EList contents = particle1.eContents();
        XSDParticleContent particleContent = particle1.getContent();
        assertNotNull(particleContent);
        for (int i = 0; i < contents.size(); i++) {
            XSDModelGroupImpl modelGroup = (XSDModelGroupImpl) contents.get(i);
            EList elements = modelGroup.getContents();
            XSDCompositor compositor = modelGroup.getCompositor();
            assertNotNull(compositor);
            for (int j = 0; j < elements.size(); j++) {
                XSDParticle particle = (XSDParticle) elements.get(j);
                EList contents2 = particle.eContents();
                for (int k = 0; k < contents2.size(); k++) {
                    Object o = contents2.get(k);
                    assertNotNull(o);
                }
                XSDParticleContent pContent = particle.getContent();
                if (pContent instanceof XSDElementDeclaration) {
                    XSDElementDeclaration elementDecl = (XSDElementDeclaration) pContent;
View Full Code Here

Examples of org.eclipse.emf.common.util.EList



    public void testGlobalAttributeDetermination(){
        XSDSchema schema = _xsd4YAWLBuilder.getOriginalSchema();
        EList listAtts = schema.getAttributeDeclarations();
        for (int i = 0; i < listAtts.size(); i++) {
            XSDAttributeDeclaration attribute = (XSDAttributeDeclaration) listAtts.get(i);
            assertTrue(_xsd4YAWLBuilder.isGlobalAttributeDeclaration(attribute));
        }
    }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

                break;

            case FeatureDiff.UPDATED:

                final UpdateElementType update = WfsFactory.eINSTANCE.createUpdateElementType();
                final EList properties = update.getProperty();

                SimpleFeature f = diff.getFeature();

                for (Iterator it = diff.getChangedAttributes().iterator(); it.hasNext();) {
                    final PropertyType property = WfsFactory.eINSTANCE.createPropertyType();
                    String name = (String) it.next();
                    property.setName(new QName(name));
                    property.setValue(f.getAttribute(name));
                    properties.add(property);
                }

                FeatureId featureId = filterFactory.featureId(diff.getID());
                final Filter filter = filterFactory.id(Collections.singleton(featureId));
                update.setFilter(filter);
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void addSOAPHeaderFault(javax.wsdl.extensions.soap.SOAPHeaderFault soapHeaderFault)
  {
    EList headerFaults = getHeaderFaults();
    headerFaults.add(soapHeaderFault);
  }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

        if (WSDLConstants.isMatchingNamespace(namespace, targetNamespace))
        {
          list.add(schema);
        }

        EList schemaContents = schema.getContents();
        Iterator schemaContentsIterator = schemaContents.iterator();

        while (schemaContentsIterator.hasNext())
        {
          Object component = schemaContentsIterator.next();
          if (component instanceof XSDImport)
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

   @param namespace the namespace to match
   *  @param list all imported schemas that match the namespace will be added to this list.
   */
  protected void collectImportedSchemas(String namespace, List list)
  {
    EList imports = getEImports();
    Iterator importsIterator = imports.iterator();
    while (importsIterator.hasNext())
    {
      Import theImport = (Import)importsIterator.next();
      String importNamespaceURI = theImport.getNamespaceURI();

View Full Code Here

Examples of org.eclipse.emf.common.util.EList

   @param namespace the namespace to match
   *  @param list all inlined schemas of imported definitions that match the namespace will be added to this list.
   */
  protected void collectInlinedSchemasOfImportedDefinitions(String namespace, List list)
  {
    EList imports = getEImports();
    Iterator importsIterator = imports.iterator();
    while (importsIterator.hasNext())
    {
      Import theImport = (Import)importsIterator.next();
      DefinitionImpl importedDefinition = (DefinitionImpl)theImport.getEDefinition();
      if (importedDefinition != null)
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

  /**
   * Propagates the change in the target namespace to all the top level named components.
   */
  private void patchTargetNamespace()
  {
    EList messages = getEMessages();
    patchTargetNamespace(messages, WSDLConstants.MESSAGE);

    EList portTypes = getEPortTypes();
    patchTargetNamespace(portTypes, WSDLConstants.PORT_TYPE);

    EList bindings = getEBindings();
    patchTargetNamespace(bindings, WSDLConstants.BINDING);

    EList services = getEServices();
    patchTargetNamespace(services, WSDLConstants.SERVICE);
  }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

      monitor.beginTask("", 1);

      IVirtualComponent component = ComponentCore.createComponent(compilationUnit.getJavaProject().getProject());
      WebArtifactEdit artifactEdit = WebArtifactEdit.getWebArtifactEditForWrite(component);
      WebApp webApp = (WebApp) artifactEdit.getContentModelRoot();
      EList servlets = webApp.getServlets();
      for (Iterator i = servlets.iterator(); i.hasNext();) {
        Servlet servlet = (Servlet) i.next();
        WebType webType = servlet.getWebType();
        if (webType instanceof ServletType && ((ServletType) webType).getClassName().endsWith(getRemoteInterfaceName().concat("Impl"))) {
          ServletMapping servletMapping = webApp.getServletMapping(servlet);
          servlets.remove(servlet);
          webApp.getServletMappings().remove(servletMapping);
          break;
        }
      }
View Full Code Here

Examples of org.eclipse.emf.common.util.EList

    IDTInfo dtInfo = dtManager.getDTInfo(element);
    if (dtInfo != null) {
      TagConvertInfo tcInfo = dtInfo.getTagConvertInfo();
      if (tcInfo != null) {
        transformer = new DefaultTransformer(tagConverterContext);
        EList operations = tcInfo.getOperations();
        if (!appendOperationsToTransformer(transformer, operations, dtInfo)) {
          transformer = null;
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.