Package fr.imag.adele.apam.maven.plugin.validation.property

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


     * 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

       *
       *  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

TOP

Related Classes of fr.imag.adele.apam.maven.plugin.validation.property.CollectionType

Copyright © 2018 www.massapicom. 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.