Package org.openbel.framework.common

Examples of org.openbel.framework.common.InvalidArgument


     * {@inheritDoc}
     */
    @Override
    public List<String> getAnnotationTypeDomainValues(KamInfo ki,
            AnnotationType annotationType) {
        if (ki == null) throw new InvalidArgument(DEFAULT_MSG);
        if (!exists(ki)) return null;
        try {
            KAMStoreDao dao = kamStoreDao(ki);
            return dao.getAnnotationTypeDomainValues(annotationType);
        } catch (SQLException e) {
View Full Code Here


    /**
     * {@inheritDoc}
     */
    @Override
    public List<BelDocumentInfo> getBelDocumentInfos(Kam kam) {
        if (kam == null) throw new InvalidArgument(DEFAULT_MSG);
        if (!exists(kam)) return null;
        return getBelDocumentInfos(kam.getKamInfo());
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public List<BelDocumentInfo> getBelDocumentInfos(KamInfo ki) {
        if (ki == null) throw new InvalidArgument(DEFAULT_MSG);
        if (!exists(ki)) return null;
        try {
            return kamStoreDao(ki).getBelDocumentInfos();
        } catch (SQLException e) {
            final String fmt = "error getting documents for %s";
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public Namespace getNamespace(final Kam kam, final String resloc) {
        if (kam == null) throw new InvalidArgument("kam", kam);
        if (noLength(resloc))
            throw new InvalidArgument("missing resource location");
        if (!exists(kam)) return null;
        List<Namespace> namespaces = getNamespaces(kam);
        for (final Namespace namespace : namespaces) {
            final String nrl = namespace.getResourceLocation();
            if (hasLength(nrl) && nrl.equals(resloc)) {
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public List<Namespace> getNamespaces(Kam kam) {
        if (kam == null) throw new InvalidArgument("kam", kam);
        if (!exists(kam)) return null;
        return getNamespaces(kam.getKamInfo());
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public List<Namespace> getNamespaces(KamInfo ki) {
        if (ki == null) throw new InvalidArgument("missing KAM info");
        if (!exists(ki)) return null;
        try {
            return kamStoreDao(ki).getNamespaces();
        } catch (SQLException e) {
            final String fmt = "error getting namespaces for %s";
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public List<BelStatement> getSupportingEvidence(KamEdge kamEdge,
            AnnotationFilter annotationFilter) {
        if (kamEdge == null) throw new InvalidArgument("kamEdge", kamEdge);
        Kam kam = kamEdge.getKam();
        if (!exists(kam)) return null;
        try {
            List<BelStatement> results = kamStoreDao(kam.getKamInfo())
                    .getSupportingEvidence(kamEdge, annotationFilter);
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public List<BelStatement> getSupportingEvidence(KamEdge kamEdge) {
        if (kamEdge == null) throw new InvalidArgument("kamEdge", kamEdge);
        if (!exists(kamEdge.getKam())) return null;
        return getSupportingEvidence(kamEdge, null);
    }
View Full Code Here

        return getSupportingEvidence(kamEdge, null);
    }

    @Override
    public Map<KamEdge, List<Statement>> getSupportingEvidence(Collection<KamEdge> edges) {
        if (edges == null) throw new InvalidArgument("edges", edges);
        if (edges.isEmpty()) return emptyMap();

        KamEdge first = edges.iterator().next();
        Kam kam = first.getKam();
        if (!exists(kam)) return null;
View Full Code Here

        }
    }

    @Override
    public Map<KamEdge, List<Statement>> getSupportingEvidence(Collection<KamEdge> edges, AnnotationFilter filter) {
        if (edges == null) throw new InvalidArgument("edges", edges);
        if (edges.isEmpty()) return emptyMap();

        KamEdge first = edges.iterator().next();
        Kam kam = first.getKam();
        if (!exists(kam)) return null;
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.