Package com.aaspring

Examples of com.aaspring.InvalidStateException


  protected States state = States.MODIFIABLE;

  public void addFile(final FileAccessorProperties fap)
      throws InvalidStateException {
    if (state != States.MODIFIABLE)
      throw new InvalidStateException("Cannot add a new file"
          + " from list when it is not in modifiable state");
    fapSet.add(fap);
  }
View Full Code Here


    fapSet.add(fap);
  }

  public void closeAndSetStatus2Modifiable() throws InvalidStateException {
    if (state == States.MODIFIABLE)
      throw new InvalidStateException("Cannot close in modifiable state");
    closeImpl();
    state = States.MODIFIABLE;
    inputStreamMap = null;
    outputStreamMap = null;
  }
View Full Code Here

   * @see com.fit.util.lang.FileAccessor#addFile(com.fit.util.lang.FileAccessorProperties)
   */
  public void addFile(final FileAccessorProperties props)
      throws InvalidStateException {
    if (!modifiable)
      throw new InvalidStateException("Cannot add a file in"
          + "unmodifiable state");
    AbstractFileAccessor af = getFileAccessor(props.getType());
    af.addFile(props);
  }
View Full Code Here

TOP

Related Classes of com.aaspring.InvalidStateException

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.