Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2005, JBoss Inc., and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.jboss.xb.binding.resolver;
 
A MutableSchemaResolver.

Author(s):
Alexey Loubyansky
Version:
$Revision: 1.1 $
 
 public interface MutableSchemaResolver extends SchemaBindingResolver
 {
   

Returns:
true if resolved SchemaBinding's are cached, false otherwise
 
    boolean isCacheResolvedSchemas();
   
   
If the implementation supports caching of the resolved schema bindings then passing in true will enable caching. False will (possibly) flush the cache and make the schema resolver resolve schemas on each request.

Parameters:
cacheResolvedSchemas
 
    void setCacheResolvedSchemas(boolean cacheResolvedSchemas);
   
   
Registers a location for the namespace URI.

The location may be a classpath location if the implementation supports searching in the classpath (e.g. using JBossEntityResolver)

Parameters:
nsUri the namespace URI
location the schema location
 
    void mapSchemaLocation(String nsUriString location);
   
   
Removes a location for the namespace URI.

Parameters:
nsUri the namespace location
 
    void removeSchemaLocation(String nsUri);

   
Whether to parse XSD annotations for this namespace.

Parameters:
nsUri the namespace
value the value of the option
 
    void setParseXSDAnnotations(String nsUriboolean value);
   
   
Clears the flag to parse XSD annotations for the namespace URI. The default setting for parsing XSD annotations will be applied to this namespace URI after this method is called.

Parameters:
nsURI the namespace URI
Returns:
the value previously set or null, if no value was set for this namespace URI
 
    Boolean unsetParseXSDAnnotations(String nsURI);

   
Registers a SchemaBindingInitializer for the namespace URI. When the schema binding that corresponds to the namespace URI is resolved, the init(SchemaBinding schema) method will be invoked on the instance of SchemaBindingInitializer with the SchemaBinding returned from the XsdBinder.bind() method.

Parameters:
nsUri the namespace URI to register the schema initializer for
sbiClassName the class name SchemaBindingInitializer
Throws:
java.lang.Exception for any error
 
    void mapSchemaInitializer(String nsUriString sbiClassNamethrows Exception;

   
Registers an instance of SchemaBindingInitializer for the namespace URI. When the schema binding that corresponds to the namespace URI is resolved, the init(SchemaBinding schema) method will be invoked on the instance of SchemaBindingInitializer with the SchemaBinding returned from the XsdBinder.bind() method.

Parameters:
nsUri the namespace URI to register the schema initializer for
sbi an instance of SchemaBindingInitializer
   void mapSchemaInitializer(String nsUriSchemaBindingInitializer sbi);

   
Unregisters and returns the SchemaBindingInitializer for the namespace URI.

Parameters:
nsUri the namespace URI to unregister SchemaBindingInitializer for
Returns:
unregistered SchemaBindingInitializer for the namespace URI or null if there was no SchemaBindingInitialzer registered for the namespace URI
Maps a namespace URI to a class which will be used as the base for the SchemaBinding.

Parameters:
nsUri the namespace URI
reference fully qualified class name to build the SchemaBinding from
Throws:
java.lang.ClassNotFoundException if the reference cannot be loaded
   void mapURIToClass(String nsUriString referencethrows ClassNotFoundException;

   
Maps a namespace URI to a class which will be used as the base for the SchemaBinding.

Parameters:
nsUri the namespace URI
clazz class to build the SchemaBinding from
   void mapURIToClass(String nsUriClass<?> clazz);

   
Maps a namespace URI to an array of classes that will be used as the base for the SchemaBinding.

Parameters:
nsUri the namespace URI
reference array of fully qualified class names to build the SchemaBinding from
Throws:
java.lang.ClassNotFoundException if at least one of the references cannot be loaded
   void mapURIToClasses(String nsUriString... referencethrows ClassNotFoundException;

   
Maps a namespace URI to an array of classes that will be used as the base for the SchemaBinding.

Parameters:
nsUri the namespace URI
reference array of classes to build the SchemaBinding from
   void mapURIToClasses(String nsUriClass<?>... clazz);

   
Removes namespace URI to class mapping

Parameters:
nsUri the namespace URI to unmap
Returns:
classes mapped to the namespace URI or null if the URI was not mapped.
   Class<?>[] removeURIToClassMapping(String nsUri);

   
Maps schema location to a class which should be used as the base for the SchemaBinding.

Parameters:
schemaLocation the location of the schema
reference the fully qualified class name to build the SchemaBinding from
Throws:
java.lang.ClassNotFoundException if the reference cannot be loaded
   void mapLocationToClass(String schemaLocationString referencethrows ClassNotFoundException;

   
Maps schema location to a class which should be used as the base for the SchemaBinding.

Parameters:
schemaLocation the location of the schema
clazz the class to build the SchemaBinding from
   void mapLocationToClass(String schemaLocationClass<?> clazz);

   
Maps schema location to an array of classes that should be used as the base for the SchemaBinding.

Parameters:
schemaLocation the location of the schema
reference the array of fully qualified class names to build the SchemaBinding from
Throws:
java.lang.ClassNotFoundException if at least one of the references cannot be loaded
   void mapLocationToClasses(String schemaLocationString... referencethrows ClassNotFoundException;

   
Maps schema location to an array of classes that should be used as the base for the SchemaBinding.

Parameters:
schemaLocation the location of the schema
classes the array of classes to build the SchemaBinding from
   void mapLocationToClasses(String schemaLocationClass<?>... classes);
   
   
Removes schema location to class mapping.

Parameters:
schemaLocation the schema location
Returns:
the array of classes used to build the SchemaBinding or null, if the schema location wasn't mapped.
   Class<?>[] removeLocationToClassMapping(String schemaLocation);
New to GrepCode? Check out our FAQ X