Package org.openbel.framework.common

Examples of org.openbel.framework.common.InvalidArgument


    @Override
    public String loadKam(KamInfo ki, KamFilter kf)
            throws KamCacheServiceException {

        if (ki == null) {
            throw new InvalidArgument("KamInfo required");
        }

        String ret;
        Callable<String> callable;
        if (kf != null) {
View Full Code Here


    @Override
    public LoadKAMResult loadKamWithResult(KamInfo ki, KamFilter kf)
            throws KamCacheServiceException {

        if (ki == null) {
            throw new InvalidArgument("KamInfo required");
        }

        String handle;
        Callable<String> callable;
        if (kf != null) {
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void releaseKam(String handle) {
        if (handle == null) {
            throw new InvalidArgument("handle", handle);
        }

        // Purge any cache entries
        purgeHandle(handle);
    }
View Full Code Here

         * @param ki {@link KamInfo}; must be non-null
         * @param kf {@link KamFilter}; may be null
         */
        CacheCallable(final KamInfo ki, final KamFilter kf) {
            if (ki == null) {
                throw new InvalidArgument("ki cannot be null");
            }
            this.ki = ki;
            this.kf = kf;
        }
View Full Code Here

     *             Thrown if the <tt>annoDef</tt> argument isnull
     */
    public static boolean isValid(AnnotationDefinition annoDef, String value)
            throws PatternSyntaxException {
        if (annoDef == null) {
            throw new InvalidArgument("annoDef", annoDef);
        }
        if (annoDef.getType() == null) {
            return false;
        }
        switch (annoDef.getType()) {
View Full Code Here

        private KamProtoNode(final Integer id, final FunctionEnum functionType,
                final String label) {
            super(null, id);

            if (functionType == null) {
                throw new InvalidArgument("functionType", functionType);
            }

            if (label == null) {
                throw new InvalidArgument("label", label);
            }

            this.functionType = functionType;
            this.label = label;
            hash = computeHash();
View Full Code Here

        private KamProtoEdge(Integer kamEdgeId, KamProtoNode sourceNode,
                RelationshipType relationshipType, KamProtoNode targetNode) {
            super(null, kamEdgeId);

            if (sourceNode == null) {
                throw new InvalidArgument("sourceNode", sourceNode);
            }

            if (relationshipType == null) {
                throw new InvalidArgument("relationshipType", relationshipType);
            }

            if (targetNode == null) {
                throw new InvalidArgument("targetNode", targetNode);
            }

            this.sourceNode = sourceNode;
            this.relationshipType = relationshipType;
            this.targetNode = targetNode;
View Full Code Here

     * @param t {@link DatabaseType database type}
     * @throws InvalidArgument Thrown if any argument is null
     */
    public DBConnection(final Connection c, final DatabaseType t,
            final String url, final String user, final String pass) {
        if (url == null) throw new InvalidArgument("url", url);
        if (c == null) throw new InvalidArgument("c", c);
        if (t == null) throw new InvalidArgument("t", t);
        this.url = url;
        this.connection = c;
        this.type = t;
        this.user = user;
        this.pass = pass;
View Full Code Here

     * @throws InvalidArgument Thrown if {@code pn} or {@code equivs} is null
     */
    public BucketEquivalencer(ProtoNetwork pn, EquivalenceResource equivs) {
        super(pn);
        if (equivs == null) {
            throw new InvalidArgument("equivalence resource may not be null");
        }
        this.equivs = equivs;
    }
View Full Code Here

     * @param network {@link ProtoNetwork Proto-network}
     * @throws InvalidArgument Thrown if {@code network} is null
     */
    public Equivalencer(final ProtoNetwork network) {
        if (network == null) {
            throw new InvalidArgument("network", network);
        }
        this.network = network;
    }
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.InvalidArgument

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.