Package org.apache.xerces.xs

Examples of org.apache.xerces.xs.XSModelGroupDefinition


                        "http://apache.org/xml/features/generate-synthetic-annotations",
                        Boolean.FALSE);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupDefinitionTest01.xsd"));
        XSModelGroupDefinition group = model.getModelGroupDefinition("group3",
                "XSModelGroupDefn");

        XSAnnotation annotation = group.getAnnotation();
        assertEquals("TEST3_ANNOTATION", expected, trim(annotation
                .getAnnotationString()));
        XSObjectList annotations = group.getAnnotations();
        assertEquals(
                "TEST3_ANNOTATIONS",
                expected,
                trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
    }
View Full Code Here


                        "http://apache.org/xml/features/generate-synthetic-annotations",
                        Boolean.TRUE);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupDefinitionTest01.xsd"));
        XSModelGroupDefinition group = model.getModelGroupDefinition("group4",
                "XSModelGroupDefn");

        XSAnnotation annotation = group.getAnnotation();
        assertEquals("TEST4_NO_SYNTH_ANNOTATION", expected, trim(annotation
                .getAnnotationString()));
        XSObjectList annotations = group.getAnnotations();
        assertEquals(
                "TEST4_NO_SYNTH_ANNOTATIONS",
                expected,
                trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
    }
View Full Code Here

                        synth);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSParticleTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("GRP4",
                "XSParticleTest");
        XSModelGroup all = mgd.getModelGroup();

        XSObjectList annotations = all.getAnnotations();
        assertEquals(
                "TEST4_ANNOTATIONS_" + synth,
                expected,
View Full Code Here

                        "http://apache.org/xml/features/generate-synthetic-annotations",
                        Boolean.TRUE);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));
        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group1",
                "XSModelGroup");

        XSModelGroup group = mgd.getModelGroup();

        XSAnnotation annotation = group.getAnnotation();
        assertNull("TEST1_NO_ANNOTATION", annotation);
        XSObjectList annotations = group.getAnnotations();
        assertEquals("TEST1_NO_ANNOTATIONS", 0, annotations.getLength());
View Full Code Here

                        Boolean.FALSE);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group2",
                "XSModelGroup");
        XSModelGroup group = mgd.getModelGroup();

        XSAnnotation annotation = group.getAnnotation();
        assertNull("TEST2_NO_ANNOTATION", annotation);
        XSObjectList annotations = group.getAnnotations();
        assertEquals("TEST2_NO_ANNOTATIONS", 0, annotations.getLength());

        fConfig
                .setParameter(
                        "http://apache.org/xml/features/generate-synthetic-annotations",
                        Boolean.TRUE);

        model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        mgd = model.getModelGroupDefinition("group2", "XSModelGroup");
        group = mgd.getModelGroup();

        annotation = group.getAnnotation();
        assertNotNull("TEST2_SYNTH_ANNOTATION", annotation);
        annotations = group.getAnnotations();
        assertEquals("TEST2_SYNTH_ANNOTATIONS", 1, annotations.getLength());
View Full Code Here

                        synth);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group3",
                "XSModelGroup");
        XSModelGroup groupChoice = mgd.getModelGroup();
        XSParticle choiceparticle = (XSParticle) groupChoice.getParticles()
                .item(0);
        XSModelGroup group = (XSModelGroup) choiceparticle.getTerm();

        XSAnnotation annotation = group.getAnnotation();
View Full Code Here

                        synth);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group4",
                "XSModelGroup");
        XSModelGroup group = mgd.getModelGroup();

        XSAnnotation annotation = group.getAnnotation();
        assertEquals("TEST4_NO_ANNOTATION_" + synth, expected, trim(annotation
                .getAnnotationString()));
        XSObjectList annotations = group.getAnnotations();
View Full Code Here

                        synth);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group5",
                "XSModelGroup");
        XSModelGroup group = mgd.getModelGroup();

        XSAnnotation annotation = group.getAnnotation();
        assertEquals("TEST5.1_NO_ANNOTATION_" + synth, expected1,
                trim(annotation.getAnnotationString()));
        XSObjectList annotations = group.getAnnotations();
View Full Code Here

                        synth);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group6",
                "XSModelGroup");
        XSModelGroup group = mgd.getModelGroup();

        XSAnnotation annotation = group.getAnnotation();
        assertEquals("TEST6.1_NO_ANNOTATION_" + synth, expected1,
                trim(annotation.getAnnotationString()));
        XSObjectList annotations = group.getAnnotations();
View Full Code Here

                        synth);

        XSModel model = fSchemaLoader
                .loadURI(getResourceURL("XSModelGroupTest01.xsd"));

        XSModelGroupDefinition mgd = model.getModelGroupDefinition("group7",
                "XSModelGroup");
        XSModelGroup group = mgd.getModelGroup();

        XSAnnotation annotation = group.getAnnotation();
        assertEquals("TEST7.1_ANNOTATION_" + synth, expected1,
                trim(annotation.getAnnotationString()));
        XSObjectList annotations = group.getAnnotations();
View Full Code Here

TOP

Related Classes of org.apache.xerces.xs.XSModelGroupDefinition

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.