Package de.mindcrimeilab.xsanalyzer.xml

Examples of de.mindcrimeilab.xsanalyzer.xml.AnnotationContentHandler


        // update and display annotations
        for (int i = 0; i < annotations.getLength(); ++i) {
            XSAnnotation annotation = (XSAnnotation) annotations.item(i);
            logger.debug("Annotation #" + i + " [" + annotation + "]");
            logger.debug("Annotation #" + i + " type=[" + annotation.getType() + "], value=[" + annotation.getAnnotationString() + "]");
            AnnotationContentHandler contentHandler = new AnnotationContentHandler();
            annotation.writeAnnotation(contentHandler, XSAnnotation.SAX_CONTENTHANDLER);

            List<XmlSchemaAnnotation> annotationsList = contentHandler.getAnnotations();
            this.annotationsListModel.clear();
            if (null == annotationsList || annotationsList.isEmpty()) {
                this.annotationsListModel.add(NO_ANNOTATIONS);
            }
            else {
View Full Code Here

TOP

Related Classes of de.mindcrimeilab.xsanalyzer.xml.AnnotationContentHandler

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.