org.jboss.xb.binding.sunday.unmarshalling
Class SingletonSchemaResolverFactory

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory
All Implemented Interfaces:
SchemaResolverFactory

public class SingletonSchemaResolverFactory
extends Object
implements SchemaResolverFactory

SingletonSchemaResolverFactory.

Version:
$Revision: 1.4 $
Author:
Adrian Brock

Method Summary
protected  boolean addSchema(String namespace, String initializer)
          Add a schema
protected  boolean addSchema(String namespace, String initializer, Boolean parseAnnotations)
          Add a schema
protected  boolean addSchema(String namespace, String initializer, String location)
          Add a schema
protected  boolean addSchema(String namespace, String initializer, String location, Boolean parseAnnotations)
          Add a schema
static SingletonSchemaResolverFactory getInstance()
          Get the factory instance
 SchemaBindingResolver getSchemaBindingResolver()
          Get the schema binding resolver
protected  void setParseAnnotations(String namespace, Boolean parseAnnotations)
          Set the parse annotations for a schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SingletonSchemaResolverFactory getInstance()
Get the factory instance

Returns:
the instance

getSchemaBindingResolver

public SchemaBindingResolver getSchemaBindingResolver()
Description copied from interface: SchemaResolverFactory
Get the schema binding resolver

Specified by:
getSchemaBindingResolver in interface SchemaResolverFactory
Returns:
the schema binding resolver

addSchema

protected boolean addSchema(String namespace,
                            String initializer)
Add a schema

Parameters:
namespace - the namespace
initializer - the initializer
Returns:
true when added

addSchema

protected boolean addSchema(String namespace,
                            String initializer,
                            Boolean parseAnnotations)
Add a schema

Parameters:
namespace - the namespace
initializer - the initializer
parseAnnotations - whether to parse annotations
Returns:
true when added

addSchema

protected boolean addSchema(String namespace,
                            String initializer,
                            String location)
Add a schema

Parameters:
namespace - the namespace
initializer - the initializer
location - the location
Returns:
true when added

addSchema

protected boolean addSchema(String namespace,
                            String initializer,
                            String location,
                            Boolean parseAnnotations)
Add a schema

Parameters:
namespace - the namespace
initializer - the initializer
location - the location
parseAnnotations - whether to parse annotations
Returns:
true when added

setParseAnnotations

protected void setParseAnnotations(String namespace,
                                   Boolean parseAnnotations)
Set the parse annotations for a schema

Parameters:
namespace - the namespace
parseAnnotations - whether to parse annotations


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.