Package org.eclipse.xsd

Examples of org.eclipse.xsd.XSDSchemaDirective


     * @param schema to be flushed
     */
    public static final void dispose(XSDSchema schema) {
        for (XSDSchemaContent content : schema.getContents()) {
            if (content instanceof XSDSchemaDirective) {
                XSDSchemaDirective directive = (XSDSchemaDirective) content;
                XSDSchema resolvedSchema = directive.getResolvedSchema();
               
                if (resolvedSchema != null) {
                    synchronized (Schemas.class) {
                        resolvedSchema.getReferencingDirectives().remove(directive);
                        for (XSDElementDeclaration dec : resolvedSchema.getElementDeclarations()) {
View Full Code Here


        }
        if (!(notification.getNewValue() instanceof XSDSchemaDirective)) {
            return;
        }
       
        XSDSchemaDirective newDirective = (XSDSchemaDirective) notification.getNewValue();
        XSDSchema schema = newDirective.getSchema();
        synchronized (target) {
            ArrayList<Integer> toremove = new ArrayList();
            for (int i = 0; i < target.getReferencingDirectives().size(); i++) {
                XSDSchemaDirective directive =
                    (XSDSchemaDirective) target.getReferencingDirectives().get(i);
                XSDSchema schema2 = directive.getSchema();
                if (schema2 == null) {
                    toremove.add(i);
                    continue;
                }
               
View Full Code Here

TOP

Related Classes of org.eclipse.xsd.XSDSchemaDirective

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.