Package com.hp.hpl.jena.shared

Examples of com.hp.hpl.jena.shared.BrokenException


          return
          // Block list nodes - handled specially
          prop != Grammar.rdfrest && prop != Grammar.rdffirst;
        }
*/
        throw new BrokenException("Logic error - should not happen.");
      case 2 :
        return prop == Grammar.notype;
      case 4 :
        return ( obj == Grammar.notype && prop != Grammar.annotationPropID )
               || obj == Grammar.badRestriction;
      case 3 :
      case 6 :
      case 7 :
        return false;
      case 5 :
        if (subj == Grammar.notype
          || subj == Grammar.orphan
          || subj == Grammar.badRestriction)
          return false;
        if (obj == Grammar.notype
          || obj == Grammar.orphan
          || obj == Grammar.badRestriction)
          return false;
        if (COMPARATIVE(prop))
          return false;
        if ( prop == Grammar.owldistinctMembers)
          return false;
        if ( prop == Grammar.ontologyPropertyID)
          return false;
        return true;
    }
    throw new BrokenException("Logic error - unhandled case in switch.");
  }
View Full Code Here


    public int getCategories() {
        return category;
    }
    public boolean setCategories(int c, boolean rec) {
        if (c!=category)
          throw new BrokenException("Internal error in syntax checker.");
        return true;
    }
View Full Code Here

                 EnhNode en,
                 Graph g,
                 int lvl
               ) {
       if ( en == null && g == null )
          throw new BrokenException("Logic error in OWL Syntax Checker");
       shortDescription = shortDesc;
       pnode = en;
       pgraph = g;
       level = lvl;
  }
View Full Code Here

        +"</rdf:Description></rdf:RDF>"
        ));
       
        }
        catch (IOException ioe){
           throw new BrokenException(ioe)
        }
        catch (SAXException s){
          return false;
        }
       
View Full Code Here

  private Siblings siblings = new Siblings();
 
  static class Siblings
      {     
      Set<GraphNode> members()
          { throw new BrokenException( "cannot ask for components of a raw GraphNode" ); }
View Full Code Here

     
      Subordinate( GraphNode n )
          { leader = n; }
     
        @Override Set<GraphNode> members()
            { throw new BrokenException( "cannot ask for components of a raw GraphNode" ); }
View Full Code Here

    /*
     * Unexpected error.
     */
    private void error(String msg) {
        JenaException e = new BrokenException("Internal error in Unparser: "
                + msg);
        this.prettyWriter.fatalError(e);
        throw e; // Just in case.
    }
View Full Code Here

    }

    private String getNameSpace(Resource r) {
        if (r.isAnon()) {
            logger.error("Internal error - Unparser.getNameSpace; giving up");
            throw new BrokenException("Internal error: getNameSpace(bNode)");
        }
        String uri = r.getURI();
        int split = Util.splitNamespace(uri);
        return uri.substring(0, split);
View Full Code Here

     */

    private String getLocalName(Resource r) {
        if (r.isAnon()) {
            logger.error("Internal error - giving up - Unparser.getLocalName");
            throw new BrokenException("Internal error: getLocalName(bNode)");
        }
        String uri = r.getURI();
        int split = Util.splitNamespace(uri);
        return uri.substring(split);

View Full Code Here

            // System.err.println( ">> keyIterator::remove, size := " + size +
            // ", removing " + keys[index + 1] );
            Key moved = removeFrom( index - 1 );
            if (moved != null) movedKeys.add( moved );
            if (size == 0) container.emptied();
            if (size < 0) throw new BrokenException( "BROKEN" );
            showkeys();
            }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.shared.BrokenException

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.