Examples of CollectionType


Examples of com.bansheeproject.xmlbuilder.annotations.CollectionType

              if (key.contains(String.valueOf(XMLBuilder.NODE_DELIMITER))) {
                temp = key.substring(key.indexOf(XMLBuilder.NODE_DELIMITER) + 1);
              }
              String oldValue = newValues.remove(key);
              newValues.put(temp, oldValue);
              CollectionType collectionType = invocable.getAnnotation(CollectionType.class);
              if (collectionType == null)
                throw new RuntimeException("Collection mapped with name " + temp + " must contain annotation @CollectionType.");
              WriteNode node = mapObject(newValues, collectionType.value(), masterNamespace);
              col.add(node.getValueObject());
              writeNode.addNode(node);
             
            }
           
View Full Code Here

Examples of com.fasterxml.jackson.databind.type.CollectionType

        }
        if (type != null) {
            clazz = exchange.getContext().getClassResolver().resolveMandatoryClass(type);
        }
        if (collectionType != null) {
            CollectionType collType = objectMapper.getTypeFactory().constructCollectionType(collectionType, clazz);
            return this.objectMapper.readValue(stream, collType);
        } else {
            return this.objectMapper.readValue(stream, clazz);
        }
    }
View Full Code Here

Examples of cross.reputation.model.CollectionType

            resource.getURI()+" is not a resource")) {
          repAlg = null;
          return;
        }
      } else {
        CollectionType collectionType = (CollectionType) getResourceFromCache(
            statement.getObject().asResource(),CollectionType.class);
        if(collectionType == null) {
          collectionType = getCollectionType(statement.getObject().asResource());       
        }
        if(collectionType == null) {
View Full Code Here

Examples of edu.indiana.dde.mylead.agent.xmlbeans.CollectionType

    AgentPortType stub = new ODEClient().createStub(userDN, wsdlLoc);
    CreateExperimentsRequestDocument experimentDoc = CreateExperimentsRequestDocument.Factory
        .newInstance();
    CreateCollectionsRequestType createCollectionReq = CreateCollectionsRequestType.Factory
        .newInstance();
    CollectionType collectionInfo = createCollectionReq
        .addNewCollectionInfo();

    MinimalLEADMetadata minimalLEADMetadata = new MinimalLEADMetadata(
        userDN, experimentName, experimentDescription);

    LEADResourceType leadResource = minimalLEADMetadata
        .getLeadResourceDoc().getLEADresource();
    ThemeType theme = leadResource.addNewData().addNewIdinfo()
        .addNewKeywords().addNewTheme();

    theme.addNewThemekey().setStringValue(instanceID);
    theme.setThemekt("ROOT_WORKFLOW_ID");

    theme = leadResource.addNewData().addNewIdinfo().addNewKeywords()
        .addNewTheme();

    theme.addNewThemekey().setStringValue(templateID);
    theme.setThemekt("ROOT_WORKFLOW_INSTANCE_ID");

    collectionInfo.setLEADresource(leadResource);

    collectionInfo.setAssignNewResourceID(true);

    experimentDoc.setCreateExperimentsRequest(createCollectionReq);

    OperationResponseDocument res = stub.createExperiments(experimentDoc);
    return res;
View Full Code Here

Examples of fr.imag.adele.apam.maven.plugin.validation.property.CollectionType

      /*
       * Operators involving sets perform automatic conversion of the property to a collection
       */
      if (operation == ApamFilter.SUBSET || operation == ApamFilter.SUPERSET) {
        if (propertyType != null && !(propertyType instanceof CollectionType)) {
          propertyType = new CollectionType(propertyType, false);
        }
      }
     
      /*
       * If the property is a collection, the equality operator is overloaded to mean set containment
View Full Code Here

Examples of fr.imag.adele.apam.maven.plugin.validation.property.CollectionType

     * If at least one of the navigates relations is multiple, the result type is a collection, even if the property is
     * not a collection.
     *
     * However, if the property is already a collection the result is the concatenation of all sets
     */
    return hasMultipleNavigation && !(propertyType instanceof CollectionType) ? new CollectionType(propertyType,true) :  propertyType;
  }
View Full Code Here

Examples of fr.imag.adele.apam.maven.plugin.validation.property.CollectionType

       *
       *  TODO modify CodeReflection to perform this validation and get the type of the collection if possible
       *  to be able to accept collections of primitive types
       */
      if ( returnType.equals(Collection.class.getCanonicalName()) || returnType.equals(Set.class.getCanonicalName())) {
        return new CollectionType(PrimitiveType.STRING,true);
      }
     
      error("Invalid substitute value, method "+method+"does not return a value of a valid type "+returnType);
      return null;
     
View Full Code Here

Examples of io.crate.types.CollectionType

                if (tuple == null) {
                    return null;
                }
                String field = tuple.v1().info().ident().columnIdent().fqn();
                Literal literal = tuple.v2();
                CollectionType dataType = ((CollectionType) literal.valueType());
                QueryBuilderHelper builder = QueryBuilderHelper.forType(dataType.innerType());
                BooleanQuery booleanQuery = new BooleanQuery();
                Set values = (Set) literal.value();
                for (Object value : values) {
                    booleanQuery.add(builder.eq(field, value), BooleanClause.Occur.SHOULD);
                }
View Full Code Here

Examples of org.apache.cassandra.db.marshal.CollectionType

                }

                return false;
            }

            CollectionType type = (CollectionType)def.type;
            switch (type.kind)
            {
                case LIST:
                    assert collectionElement != null;
                    return type.valueComparator().compare(data.getColumn(data.getComparator().create(prefix, def, collectionElement)).value(), expr.value) == 0;
                case SET:
                    return data.getColumn(data.getComparator().create(prefix, def, expr.value)) != null;
                case MAP:
                    if (expr.operator == IndexExpression.Operator.CONTAINS_KEY)
                    {
                        return data.getColumn(data.getComparator().create(prefix, def, expr.value)) != null;
                    }
                    else
                    {
                        assert collectionElement != null;
                        return type.valueComparator().compare(data.getColumn(data.getComparator().create(prefix, def, collectionElement)).value(), expr.value) == 0;
                    }
            }
            throw new AssertionError();
        }
View Full Code Here

Examples of org.apache.cxf.aegis.type.collection.CollectionType

        Type type = creator.createType(m, -1);
        tm.register(type);
        assertTrue(type instanceof CollectionType);

        CollectionType colType = (CollectionType)type;
        QName componentName = colType.getSchemaType();

        assertEquals("ArrayOfString", componentName.getLocalPart());
        assertEquals("ArrayOfString", componentName.getLocalPart());

        type = colType.getComponentType();
        assertNotNull(type);
        assertTrue(type.getTypeClass().isAssignableFrom(String.class));
    }
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.