Examples of IncompatibleTypeException


Examples of ceylon.language.meta.model.IncompatibleTypeException

        return Util.apply(function, arguments);
    }
   
    public static ceylon.language.meta.model.Model bind(ceylon.language.meta.model.Member<?,?> member, ProducedType containerType, Object container){
        if(container == null)
            throw new IncompatibleTypeException("Invalid container "+container+", expected type "+containerType+" but got ceylon.language::Null");
        ProducedType argumentType = Metamodel.getProducedType(container);
        if(!argumentType.isSubtypeOf(containerType))
            throw new IncompatibleTypeException("Invalid container "+container+", expected type "+containerType+" but got "+argumentType);
        return member.$call$(container);
    }
View Full Code Here

Examples of net.imglib2.exception.IncompatibleTypeException

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new CellImgFactory( defaultCellDimensions );
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

Examples of net.imglib2.exception.IncompatibleTypeException

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new PlanarImgFactory();
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

Examples of net.imglib2.exception.IncompatibleTypeException

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new NtreeImgFactory();
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

Examples of net.imglib2.exception.IncompatibleTypeException

  @Override
  public < S > ImgFactory< S > imgFactory( final S type ) throws IncompatibleTypeException
  {
    if ( NativeType.class.isInstance( type ) )
      return new ArrayImgFactory();
    throw new IncompatibleTypeException( this, type.getClass().getCanonicalName() + " does not implement NativeType." );
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.model.IncompatibleTypeException

    Set<Statement> set = r.listProperties(RDF.type).toSet();

    if (set.size() > 0) {
      Resource type = set.iterator().next().getResource();
      if (!type.equals(FOAF.Document)) {
        throw new IncompatibleTypeException("Expected resource " + r
            + " to be of type " + FOAF.Document + " but is of type " + type);
      }
    } else {
      Statement s = model.createStatement(r, RDF.type, FOAF.Document);
      model.add(s);
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.