| java.lang.Object org.andromda.cartridges.webservice.WebServiceUtils
WebServiceUtils | public class WebServiceUtils (Code) | | Contains utilities used within the WebService cartridge.
author: Chad Brandon |
Method Summary | |
public Collection | getAllRoles(Collection services) Retrieves all roles from the given services collection.
Parameters: services - the collection services. | public static java.lang.String | getSchemaType(ClassifierFacade type, TypeMappings schemaTypeMappings, String namespacePrefix, String qName, String wrappedArrayTypePrefix, boolean withPrefix, boolean preserveArray) Creates and returns the schema type for the given type .
It finds the mapped schema type from the passed in
schemaTypeMappings .
Parameters: type - the ClassifierFacade instance Parameters: schemaTypeMappings - contains the mappings from model datatypes toschema datatypes. Parameters: namespacePrefix - the prefix given to the schema type if it's acustom type (non XSD type). Parameters: qName - the qualifed name Parameters: wrappedArrayTypePrefix - a prefix to give to wrapped array types. Parameters: withPrefix - a flag indicating whether or not the type should havethe prefix defined Parameters: preserveArray - true/false, if true then if the schema type is anarray we'll preserve the fact that its an array and return anarray schema type name. | public static String | reversePackage(String packageName) Reverses the packageName .
Parameters: packageName - the package name to reverse. |
getAllRoles | public Collection getAllRoles(Collection services)(Code) | | Retrieves all roles from the given services collection.
Parameters: services - the collection services. all roles from the collection. |
getSchemaType | public static java.lang.String getSchemaType(ClassifierFacade type, TypeMappings schemaTypeMappings, String namespacePrefix, String qName, String wrappedArrayTypePrefix, boolean withPrefix, boolean preserveArray)(Code) | | Creates and returns the schema type for the given type .
It finds the mapped schema type from the passed in
schemaTypeMappings .
Parameters: type - the ClassifierFacade instance Parameters: schemaTypeMappings - contains the mappings from model datatypes toschema datatypes. Parameters: namespacePrefix - the prefix given to the schema type if it's acustom type (non XSD type). Parameters: qName - the qualifed name Parameters: wrappedArrayTypePrefix - a prefix to give to wrapped array types. Parameters: withPrefix - a flag indicating whether or not the type should havethe prefix defined Parameters: preserveArray - true/false, if true then if the schema type is anarray we'll preserve the fact that its an array and return anarray schema type name. If false we will return back the non arraytype even if its an array. the schema type name. |
reversePackage | public static String reversePackage(String packageName)(Code) | | Reverses the packageName .
Parameters: packageName - the package name to reverse. the reversed package name. |
|
|