Package com.hp.hpl.jena.shared

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


            arpf.parse(inputS, xmlBase);
            handler.bulkUpdate();
        } catch (IOException e) {
            throw new WrappedIOException(e);
        } catch (SAXException e) {
            throw new JenaException(e);
        } finally {
            g.getEventManager().notifyEvent(g, GraphEvents.finishRead);
            handler = null;
        }
    }
View Full Code Here


                    return null;
                }
                try {
                    arpf.getSAXParser().setProperty(str, obj);
                } catch (SAXNotSupportedException ns) {
                    errorHandler.error(new JenaException(ns));
                } catch (SAXNotRecognizedException nr) {
                    errorHandler.error(new UnknownPropertyException(str));
                    return null;
                }
                return old;
            }

            if (str.startsWith(saxFeaturesURL)
                    || str.startsWith(apacheFeaturesURL)) {
                Boolean old;
                try {
                    old = new Boolean(arpf.getSAXParser().getFeature(str));
                } catch (SAXNotSupportedException ns) {
                    old = null;
                } catch (SAXNotRecognizedException nr) {
                    errorHandler.error(new UnknownPropertyException(str));
                    return null;
                }
                try {
                    arpf.getSAXParser().setFeature(str,
                            ((Boolean) obj).booleanValue());
                } catch (SAXNotSupportedException ns) {
                    errorHandler.error(new JenaException(ns));
                } catch (SAXNotRecognizedException nr) {
                    errorHandler.error(new UnknownPropertyException(str));
                    return null;
                } catch (ClassCastException cc) {
                    errorHandler.error(new JenaException(
                            new SAXNotSupportedException("Feature: '" + str
                                    + "' can only have a boolean value.")));
                }
                return old;
            }
View Full Code Here

        else if (propValue instanceof Boolean)
            return (Boolean) propValue;
        else if (propValue instanceof String)
            return stringToBoolean( (String) propValue, theDefault );
        else
            throw new JenaException( "cannot treat as boolean: " + propValue );
        }
View Full Code Here

      {
        return result.newInstance();
      }
      catch (final Exception e)
      {
        throw new JenaException(e);
      }
    }
View Full Code Here

        }
        return old == null ? null : old.getName();
      }
      catch (final ClassNotFoundException e)
      {
        throw new JenaException(e);
      }
    }
View Full Code Here

        public RDFNode inModel( Model m )
            { return null; }
       
        @Override
        public Model getModel()
            { throw new JenaException( "getModel() should not be called in the EnhGraph/Node tests" ); }
View Full Code Here

        public Model getModel()
            { throw new JenaException( "getModel() should not be called in the EnhGraph/Node tests" ); }
       
        @Override
        public Resource asResource()
            { throw new JenaException( "asResource() should not be called in the EnhGraph/Node tests" ); }
View Full Code Here

        public Resource asResource()
            { throw new JenaException( "asResource() should not be called in the EnhGraph/Node tests" ); }
       
        @Override
        public Literal asLiteral()
            { throw new JenaException( "asLiteral() should not be called in the EnhGraph/Node tests" ); }
View Full Code Here

            {
            Constructor<?> cons = getConstructor( graphClass, new Class[] {} );
            if (cons != null) return (Graph) cons.newInstance( new Object[] { } );
            Constructor<?> cons2 = getConstructor( graphClass, new Class [] {wrap.getClass()} );
            if (cons2 != null) return (Graph) cons2.newInstance( new Object[] { wrap} );
            throw new JenaException( "no suitable graph constructor found for " + graphClass );
            }
        catch (RuntimeException e)
            { throw e; }
        catch (Exception e)
            { throw new JenaException( e ); }
        }
View Full Code Here

      {
        return result.newInstance();
      }
      catch (final Exception e)
      {
        throw new JenaException(e);
      }
    }
View Full Code Here

TOP

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

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.