Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core
Interface SchemaEntry


public interface SchemaEntry

Schema configuration object for SchemaLibrary

Since:
3.1 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.

Nested Class Summary
static class SchemaEntry.LocationTransformer
           
static class SchemaEntry.NamespaceTransformer
           
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<SchemaEntry,String> LOCATION_TRANSFORMER
           
static org.eclipse.jpt.common.utility.transformer.Transformer<SchemaEntry,String> NAMESPACE_TRANSFORMER
           
 
Method Summary
 String getLocation()
          Return the location key of the entry.
 String getNamespace()
          Return the namespace of the schema
 XsdSchema getXsdSchema(String namespace)
          Return the XsdSchema associated with the entry.
 boolean isLoaded()
          Return whether the schema referred to by the entry is loaded
 void refresh()
          Refresh the associated schema
 

Field Detail

LOCATION_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<SchemaEntry,String> LOCATION_TRANSFORMER

NAMESPACE_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<SchemaEntry,String> NAMESPACE_TRANSFORMER
Method Detail

getLocation

String getLocation()
Return the location key of the entry. This could be: - a web location (that then redirects to a plugin resource location) - a workspace location - a namespace


getNamespace

String getNamespace()
Return the namespace of the schema


isLoaded

boolean isLoaded()
Return whether the schema referred to by the entry is loaded


getXsdSchema

XsdSchema getXsdSchema(String namespace)
Return the XsdSchema associated with the entry. The provided namespace is a last failsafe check that the loaded schema does in fact have the namespace in question. (Sometimes on a refresh the schema will turn out to have a different namespace than expected)


refresh

void refresh()
Refresh the associated schema


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.