fr.cnes.genopus.main
Class GPPatriusWithObjects.ArgsChecker
java.lang.Object
fr.cnes.genopus.main.GPPatriusWithObjects.ArgsChecker
- Enclosing interface:
- GPPatriusWithObjects<T>
public static class GPPatriusWithObjects.ArgsChecker
- extends Object
Class to check the number of arguments and their types when calling to getPatriusObject with arguments.
- Author:
- ffsm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPPatriusWithObjects.ArgsChecker
public GPPatriusWithObjects.ArgsChecker(Object[] args,
Class<?>... expectedClasses)
throws fr.cnes.genius.exception.GException
- Constructor. An instance of this class must be created as the first thing inside each
getPatriusObject(Object... args) implementation.
- Parameters:
args - requiered input objects to generate the patrius object.expectedClasses - expected classes for the objects (in the same order)
- Throws:
fr.cnes.genius.exception.GException - if the number of objects is not the expected one or if the objects classes are not the
expected ones.
Copyright © 2017. All rights reserved.