org.ow2.jonas.deployment.ws.lib
Class MappingFileManager

java.lang.Object
  extended by org.ow2.jonas.deployment.ws.lib.MappingFileManager

public class MappingFileManager
extends Object

this Class is used to manipulate jaxrpc-mapping-file. This file contains informations for mapping between XML namespaces and java packages. We actually support just a few part of this file. According with JSR 921, this file must contain class mapping information (exceptions/faults, types/classes, portTypes/interfaces ...).

Author:
Guillaume Sauthier, Xavier Delplanque, Helene Joanin

Method Summary
static MappingFile getInstance(File module, String filename)
          Returns an instance of jaxrpc-mapping-file
static MappingFile getInstance(InputStream is, String filename)
          Returns an instance of jaxrpc-mapping-file
static MappingFile getInstance(Reader r, String filename, boolean validate)
          Returns an instance of jaxrpc-mapping-file
static boolean isParsingWithValidation()
           
static void setParsingWithValidation(boolean parsingWithValidation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MappingFile getInstance(File module,
                                      String filename)
                               throws WSDeploymentDescException
Returns an instance of jaxrpc-mapping-file

Parameters:
module - module File containing mapping
filename - jaxrpc-mapping-file filename
Returns:
Returns an instance of jaxrpc-mapping-file
Throws:
WSDeploymentDescException - when MappingFile cannot be loader or instanciated

getInstance

public static MappingFile getInstance(Reader r,
                                      String filename,
                                      boolean validate)
                               throws WSDeploymentDescException
Returns an instance of jaxrpc-mapping-file

Parameters:
r - mapping file reader
filename - mapping filename
validate - validate flag
Returns:
Returns an instance of jaxrpc-mapping-file
Throws:
WSDeploymentDescException - when MappingFile cannot be loader or instanciated

getInstance

public static MappingFile getInstance(InputStream is,
                                      String filename)
                               throws WSDeploymentDescException
Returns an instance of jaxrpc-mapping-file

Parameters:
is - jaxrpc-mapping-file InputStream
filename - jaxrpc-mapping-file filename
Returns:
Returns an instance of jaxrpc-mapping-file
Throws:
WSDeploymentDescException - when MappingFile cannot be loader or instanciated

isParsingWithValidation

public static boolean isParsingWithValidation()
Returns:
Returns the parsingWithValidation.

setParsingWithValidation

public static void setParsingWithValidation(boolean parsingWithValidation)
Parameters:
parsingWithValidation - The parsingWithValidation to set.


Copyright © 2010 OW2 Consortium. All Rights Reserved.