Package com.volantis.devrep.repository.api.accessors.xml

Examples of com.volantis.devrep.repository.api.accessors.xml.EclipseEntityResolver


                    "schema", true);

            builder.setIgnoringElementContentWhitespace(ignoreWhitespace);

            // Configure an entity resolver to find the schemas locally.
            JarFileEntityResolver resolver = new EclipseEntityResolver();
            resolver.addSystemIdMapping(DeviceSchemas.DEVICE_CURRENT);
            resolver.addSystemIdMapping(DeviceSchemas.CORE_CURRENT);
            resolver.addSystemIdMapping(DeviceSchemas.HEIRARCHY_CURRENT);
            resolver.addSystemIdMapping(DeviceSchemas.IDENTIFICATION_CURRENT);
            resolver.addSystemIdMapping(DeviceSchemas.TAC_IDENTIFICATION_CURRENT);
            resolver.addSystemIdMapping(DeviceSchemas.POLICY_DEFINITIONS_CURRENT);
            resolver.addSystemIdMapping(DeviceSchemas.REPOSITORY_CURRENT);

            builder.setEntityResolver(resolver);
        } else {
            // No validation requested.
            builder.setValidation(false);
View Full Code Here


     * @return a <code>JarFileEntityResolver</code> instance
     */
    public static EclipseEntityResolver create() {

        // create a jar file entity resolver
        EclipseEntityResolver resolver = new EclipseEntityResolver();

        Iterator iterator = GUI_SCHEMATA.iterator();
        while (iterator.hasNext()) {
            SchemaDefinition schema = (SchemaDefinition) iterator.next();
            resolver.addSystemIdMapping(schema);
        }

        return resolver;
    }
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.api.accessors.xml.EclipseEntityResolver

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.