Package com.hp.hpl.jena.shared

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


    case -1:
      Object old = parser.getProperty(propName);
      parser.setProperty(propName, propValue);
      return old;
    }
    throw new BrokenException("impossible");
  }
View Full Code Here


        if (pattern[next][1].equals("allowedNewInstance")) {
          // System.err.println("Allowing new instance from: "+
          // st[i].getName());
          return allowedNewInstance.contains(st[i].getName());
        }
        throw new BrokenException("Internal error: detail: "
            + pattern[next][1]);
      }
      while (!match(pattern[next][1], st[i].getName())) {
        if ((pattern[next][0].equals("some") && matchedSoFar > 0)
            || pattern[next][0].equals("optional")
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

            checkURI( namespace );
      logger.warn(
        "Internal error: unexpected QName URI: <"
          + namespace
          + ">.  Fixing up with j.cook.up code.",
        new BrokenException( "unexpected QName URI " + namespace ));
      cookUp = true;
    } else if (prefix.length() == 0) {
      if (type == ATTR || type == FASTATTR)
        cookUp = true;
      else
View Full Code Here

            default:
            case END :
                return prefix + ":" + local;
            case FAST :
              //  logger.error("Unreachable code - reached.");
                throw new BrokenException( "cookup reached final FAST" );
            }
        }
View Full Code Here

  /* (non-Javadoc)
   * @see com.hp.hpl.jena.rdf.arp.test.WGTestSuite.Test#reallyRunTest()
   */
  @Override
    void reallyRunTest() {
    throw new BrokenException("");
  }
View Full Code Here

    {
    public TestRuleSet( String name )
        { super( name ); }

    @Override protected Class<? extends Assembler> getAssemblerClass()
        { throw new BrokenException( "TestAssemblers does not need this method" ); }
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

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.