Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core
Interface SchemaLibrary


public interface SchemaLibrary

Entry point for accessing project schema resources

Since:
3.0 Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Method Summary
 XsdSchema getSchema(String namespace)
          Return the XsdSchema identified by the given namespace, if it exists and is resolvable.
 List<SchemaEntry> getSchemaEntries()
          Return the schema entries that have been added to the project settings for validation purposes
 List<String> getSchemaLocations()
          Return the locations associated with the schema entries
 void refreshAllSchemas()
          Refresh all schemas within the library.
 void refreshSchema(String namespace)
          Refresh the schema with the given namespace, if it exists and is resolvable.
 void setSchemaLocations(List<String> schemaLocations)
          Set the schema locations
 

Method Detail

getSchemaEntries

List<SchemaEntry> getSchemaEntries()
Return the schema entries that have been added to the project settings for validation purposes


getSchemaLocations

List<String> getSchemaLocations()
Return the locations associated with the schema entries


setSchemaLocations

void setSchemaLocations(List<String> schemaLocations)
Set the schema locations


getSchema

XsdSchema getSchema(String namespace)
Return the XsdSchema identified by the given namespace, if it exists and is resolvable. If there are multiple schemas with the given namespace, return the first one found. Return null otherwise.


refreshSchema

void refreshSchema(String namespace)
Refresh the schema with the given namespace, if it exists and is resolvable. Refresh the first one found if there are multiple schemas for the namespace. Do nothing otherwise.


refreshAllSchemas

void refreshAllSchemas()
Refresh all schemas within the library.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.