Package org.coode.xml

Examples of org.coode.xml.XMLWriterNamespaceManager


    public OmniGraffleWriter(Tree<N> tree) {
        this.tree = tree;
    }

    public void write(Writer writer) throws IOException {
        XMLWriterNamespaceManager nsm = new XMLWriterNamespaceManager("");
        XMLWriter xmlWriter = new XMLWriterImpl(writer, nsm);
        xmlWriter.writeStartElement(PLIST_ELEMENT_NAME);
        xmlWriter.writeStartElement(DICT_ELEMENT_NAME);
        xmlWriter.writeStartElement(KEY_ELEMENT_NAME);
        xmlWriter.writeTextContent(GRAPHICS_LIST);
View Full Code Here


            return o1.compareTo(o2);
        }
    });

    public OWLXMLWriter(Writer writer, OWLOntology ontology) {
        XMLWriterNamespaceManager nsm = new XMLWriterNamespaceManager(Namespaces.OWL.toString());
        nsm.setPrefix("xsd", Namespaces.XSD.toString());
        nsm.setPrefix("rdf", Namespaces.RDF.toString());
        nsm.setPrefix("rdfs", Namespaces.RDFS.toString());
        nsm.setPrefix("xml", Namespaces.XML.toString());
        String base = Namespaces.OWL.toString();
        if(ontology != null && !ontology.isAnonymous()) {
            base = ontology.getOntologyID().getOntologyIRI().toString();
        }
        this.writer = XMLWriterFactory.getInstance().createXMLWriter(writer, nsm, base);
View Full Code Here

    private XMLWriter writer;

    private Map<String, String> iriPrefixMap = new TreeMap<String, String>(new StringLengthComparator());

    public OWLXMLWriter(Writer writer, OWLOntology ontology) {
        XMLWriterNamespaceManager nsm = new XMLWriterNamespaceManager(Namespaces.OWL.toString());
        nsm.setPrefix("xsd", Namespaces.XSD.toString());
        nsm.setPrefix("rdf", Namespaces.RDF.toString());
        nsm.setPrefix("rdfs", Namespaces.RDFS.toString());
        nsm.setPrefix("xml", Namespaces.XML.toString());
        String base = Namespaces.OWL.toString();
        if (ontology != null && !ontology.isAnonymous()) {
            base = ontology.getOntologyID().getOntologyIRI().toString();
        }
        this.writer = XMLWriterFactory.getInstance().createXMLWriter(writer, nsm, base);
View Full Code Here

TOP

Related Classes of org.coode.xml.XMLWriterNamespaceManager

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.