org.netbeans.modules.bpel.model.api.support
Class ImportHelper

java.lang.Object
  extended by org.netbeans.modules.bpel.model.api.support.ImportHelper

public final class ImportHelper
extends java.lang.Object

Helper class for accessing to WSDL or XSD models by import statement.

Author:
ads

Method Summary
static java.util.Collection<org.netbeans.modules.xml.schema.model.SchemaModel> getInlineSchema(BpelModel bpelModel, java.lang.String namespace, java.lang.String location, java.lang.String importType)
          Returns schema model respectively imp import statement in BPEL OM and namespace.
static java.util.Collection<org.netbeans.modules.xml.schema.model.SchemaModel> getInlineSchema(Import imp, java.lang.String namespace)
          Returns schema model respectively imp import statement in BPEL OM and namespace.
static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(BpelModel model, java.lang.String location, java.lang.String importType)
          Returns schema model respectively given import imp.
static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(BpelModel model, java.lang.String location, java.lang.String importType, boolean checkWellFormed)
          Returns schema model respectively given import imp.
static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(Import imp)
          Returns schema model respectively given import imp.
static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(Import imp, boolean checkWellFormed)
          Returns schema model respectively given import imp.
static WSDLModel getWsdlModel(BpelModel model, java.lang.String location, java.lang.String importType)
          Returns wsdl model respectively given import imp.
static WSDLModel getWsdlModel(BpelModel model, java.lang.String location, java.lang.String importType, boolean checkWellFormed)
          Returns wsdl model respectively given import imp.
static WSDLModel getWsdlModel(Import imp)
          Returns wsdl model respectively given import imp.
static WSDLModel getWsdlModel(Import imp, boolean checkWellFormed)
          Returns wsdl model respectively given import imp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWsdlModel

public static WSDLModel getWsdlModel(BpelModel model,
                                     java.lang.String location,
                                     java.lang.String importType)
Returns wsdl model respectively given import imp.

Parameters:
model - BPEL OM
location - location uri
importType - type of import

getWsdlModel

public static WSDLModel getWsdlModel(BpelModel model,
                                     java.lang.String location,
                                     java.lang.String importType,
                                     boolean checkWellFormed)
Returns wsdl model respectively given import imp.

Parameters:
model - BPEL OM
location - location uri
importType - type of import
checkWellFormed - if true method will return null if model is not valid

getWsdlModel

public static WSDLModel getWsdlModel(Import imp)
Returns wsdl model respectively given import imp.

Parameters:
imp - import statement in BPEL OM

getWsdlModel

public static WSDLModel getWsdlModel(Import imp,
                                     boolean checkWellFormed)
Returns wsdl model respectively given import imp.

Parameters:
imp - import statement in BPEL OM
checkWellFormed - if true method will return null if model is not valid

getInlineSchema

public static java.util.Collection<org.netbeans.modules.xml.schema.model.SchemaModel> getInlineSchema(BpelModel bpelModel,
                                                                                                      java.lang.String namespace,
                                                                                                      java.lang.String location,
                                                                                                      java.lang.String importType)
Returns schema model respectively imp import statement in BPEL OM and namespace.

Parameters:
bpelModel - BPEL OM
location - location uri
importType - type of import
namespace - schema namespace

getInlineSchema

public static java.util.Collection<org.netbeans.modules.xml.schema.model.SchemaModel> getInlineSchema(Import imp,
                                                                                                      java.lang.String namespace)
Returns schema model respectively imp import statement in BPEL OM and namespace.

Parameters:
imp - import statement in BPEL OM
namespace - Namespace for desired inline schema model

getSchemaModel

public static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(BpelModel model,
                                                                               java.lang.String location,
                                                                               java.lang.String importType)
Returns schema model respectively given import imp.

Parameters:
model - BPEL OM
location - location uri
importType - type of import

getSchemaModel

public static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(BpelModel model,
                                                                               java.lang.String location,
                                                                               java.lang.String importType,
                                                                               boolean checkWellFormed)
Returns schema model respectively given import imp.

Parameters:
model - BPEL OM
location - location uri
importType - type of import

getSchemaModel

public static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(Import imp,
                                                                               boolean checkWellFormed)
Returns schema model respectively given import imp.

Parameters:
imp - import statement in BPEL OM

getSchemaModel

public static org.netbeans.modules.xml.schema.model.SchemaModel getSchemaModel(Import imp)
Returns schema model respectively given import imp.

Parameters:
imp - import statement in BPEL OM