Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLRuntimeException


                    writer.writeTextContent(val);
                    writeEndElement();
                }
            }
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here


     */
    public void writeLangAttribute(@Nonnull String lang) {
        try {
            writer.writeAttribute(LANG_IRI, lang);
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    public void writeCardinalityAttribute(int cardinality) {
        try {
            writer.writeAttribute(CARDINALITY_ATTRIBUTE.getIRI(),
                    Integer.toString(cardinality));
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

                    bos.write(tempBuffer, 0, read);
                }
            } while (read > 0);
            buffer = bos.toByteArray();
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

     */
    public void writeTextContent(@Nonnull String text) {
        try {
            writer.writeTextContent(text);
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    public void writeFacetAttribute(OWLFacet facet) {
        try {
            writer.writeAttribute(DATATYPE_FACET.getIRI(), facet.getIRI()
                    .toString());
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

     */
    public void writeAnnotationURIAttribute(URI uri) {
        try {
            writer.writeAttribute(ANNOTATION_URI.getIRI(), uri.toString());
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

            } while (read > 0);
            out.finish();
            out.flush();
            byteBuffer = bos.toByteArray();
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

            writer.flush();
            out.finish();
            out.flush();
            byteBuffer = bos.toByteArray();
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    }

    @Nonnull
    @Override
    public OutputStream getOutputStream() {
        throw new OWLRuntimeException(
                "OutputStream not available.  getOutputStream() should not be called if isOutputStreamAvailable() returns false.");
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLRuntimeException

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.