com.abra.j2xb.beans.xmlModel
Interface MoXmlSchemaLocationGenerator

All Known Implementing Classes:
MoXmlDefaultSchemaLocationGenerator

public interface MoXmlSchemaLocationGenerator

Callback interface used by MoXmlBindingModel when generating XML Schema files. It is used to control the filename of the generated XML Schema files.

Since:
JDK1.5
Version:
1.0, Dec 10, 2007
Author:
Yoav Abrahami
See Also:
MoXmlBindingModel

Method Summary
 java.io.File getSchemaFilename(MoXmlSchema schema)
          callback method to generate a filename for a certain XML Schema, where the schema is saved as part of the schema generation process.
 java.net.URL getSchemaLocation(MoXmlSchema schema)
          callback method to generate a schemaLocation attribute for an included schema.
 boolean includeSchemaLocation(MoXmlSchema schema)
          Defines if to include the schemaLocation attribute for an included XML Schema
 

Method Detail

getSchemaFilename

java.io.File getSchemaFilename(MoXmlSchema schema)
                               throws MoXmlSchemaGenerationException
callback method to generate a filename for a certain XML Schema, where the schema is saved as part of the schema generation process. The method can return null in cases when generating the schema does not require saving the schema to file.

Parameters:
schema - - the schema
Returns:
File object naming the schema file
Throws:
MoXmlSchemaGenerationException - exception to throw in case of error in the callback itself.

getSchemaLocation

java.net.URL getSchemaLocation(MoXmlSchema schema)
                               throws MoXmlSchemaGenerationException
callback method to generate a schemaLocation attribute for an included schema.

Parameters:
schema - - the schema
Returns:
URL of the included schema
Throws:
MoXmlSchemaGenerationException - exception to throw in case of error in the callback itself.

includeSchemaLocation

boolean includeSchemaLocation(MoXmlSchema schema)
                              throws MoXmlSchemaGenerationException
Defines if to include the schemaLocation attribute for an included XML Schema

Parameters:
schema - - the schema
Returns:
true to include the schemaLocation attribute
Throws:
MoXmlSchemaGenerationException - exception to throw in case of error in the callback itself.


Copyright © 2008. All Rights Reserved.