Package org.springframework.ide.eclipse.beans.core.internal.model.namespaces.DocumentAccessor

Examples of org.springframework.ide.eclipse.beans.core.internal.model.namespaces.DocumentAccessor.SchemaLocations


      DocumentBuilder builder = builderFactory.newDocumentBuilder();
      Document doc = builder.parse(contents);

      DocumentAccessor accessor = new DocumentAccessor();
      accessor.pushDocument(doc);
      SchemaLocations locations = accessor.getCurrentSchemaLocations();

      String location = locations.getSchemaLocation(publicIc);
      return location;
    } catch (Exception e) {
      // do nothing, systemId cannot be identified
    } finally {
      if (contents != null) {
View Full Code Here


      if (namespaceHandler != null) {
        return decorateNamespaceHandler(namespaceHandler);
      }

      SchemaLocations schemaLocations = EMPTY_SCHEMA_LOCATIONS;
      if (documentAccessor != null) {
        schemaLocations = documentAccessor.getCurrentSchemaLocations();
      }

      // Then check for a namespace handler contributed for the specific schemalocation
      String schemaLocation = schemaLocations.getSchemaLocation(namespaceUri);
      if (schemaLocation != null) {
        namespaceHandler = namespaceHandlers.get(NamespaceHandlerDescriptor.createNamespaceHandlerDescriptor(
            namespaceUri, schemaLocation));
        if (namespaceHandler != null) {
          return decorateNamespaceHandler(namespaceHandler);
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.core.internal.model.namespaces.DocumentAccessor.SchemaLocations

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.