Package com.cedarsoft

Examples of com.cedarsoft.NotFoundException


  @NotNull
  private static TypeMirror getFirstTypeParam( @NotNull DeclaredType type ) throws NotFoundException {
    Collection<TypeMirror> typeArguments = type.getActualTypeArguments();
    if ( typeArguments.isEmpty() ) {
      throw new NotFoundException( "No typeArguments found for <" + type + ">" );
    }

    return typeArguments.iterator().next();
  }
View Full Code Here


    JDefinedClass resolved = model._getClass( qualifiedName );
    if ( resolved != null ) {
      return resolved;
    }

    throw new NotFoundException();
  }
View Full Code Here

  @Override
  @NotNull
  public T findStoredObject( @NotNull @NonNls Matcher<T> matcher, @NotNull @NonNls String notFoundMessage ) throws NotFoundException {
    T found = findStoredObject( matcher );
    if ( found == null ) {
      throw new NotFoundException( notFoundMessage );
    }

    return found;
  }
View Full Code Here

  @Override
  public void remove( @NotNull T object, @NotNull String removeMessage ) throws NotFoundException {
    try {
      lock.writeLock().lock();
      if ( !storedObjects.remove( object ) ) {
        throw new NotFoundException( removeMessage );
      }
      for ( Listener<T> listener : new ArrayList<Listener<T>>( listeners ) ) {
        listener.objectRemoved( object );
      }
    } finally {
View Full Code Here

  @NotNull
  public T findStoredObject( @NotNull @NonNls Matcher<T> matcher, @NotNull @NonNls String notFoundMessage ) throws NotFoundException {
    T found = findStoredObject( matcher );
    if ( found == null ) {
      throw new NotFoundException( notFoundMessage );
    }

    return found;
  }
View Full Code Here

  @NotNull
  private JClass resolve( @NotNull @NonNls String qualifiedName ) throws NotFoundException {
    JClass ref = refs.get( qualifiedName );
    if ( ref == null ) {
      throw new NotFoundException();
    }
    return ref;
  }
View Full Code Here

   */
  @NotNull
  public T findStoredObject( @NotNull @NonNls Matcher<T> matcher, @NotNull @NonNls String notFoundMessage ) throws NotFoundException {
    T found = findStoredObject( matcher );
    if ( found == null ) {
      throw new NotFoundException( notFoundMessage );
    }

    return found;
  }
View Full Code Here

  @Nonnull
  private static TypeMirror getFirstTypeParam( @Nonnull DeclaredType type ) throws NotFoundException {
    Collection<TypeMirror> typeArguments = type.getActualTypeArguments();
    if ( typeArguments.isEmpty() ) {
      throw new NotFoundException( "No typeArguments found for <" + type + ">" );
    }

    return typeArguments.iterator().next();
  }
View Full Code Here

    JDefinedClass resolved = model._getClass( qualifiedName );
    if ( resolved != null ) {
      return resolved;
    }

    throw new NotFoundException();
  }
View Full Code Here

      if ( strategy.getId().equals( type ) ) {
        return ( S ) strategy;
      }
    }

    throw new NotFoundException();
  }
View Full Code Here

TOP

Related Classes of com.cedarsoft.NotFoundException

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.