public class WebServiceLogicImpl extends WebServiceLogic
WebService,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
WebServiceLogicImpl.OperationNameComparator
Used to sort operations by
name. |
class |
WebServiceLogicImpl.TypeComparator
We use this comparator to actually eliminate duplicates instead of sorting like a comparator is normally used.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
NAMESPACE_PATTERN
namespacePattern
|
(package private) static String |
NAMESPACE_PREFIX
namespacePrefix
|
(package private) static String |
QNAME_LOCAL_PART_PATTERN
qualifiedNameLocalPartPattern
|
(package private) static String |
REVERSE_NAMESPACE
reverseNamespace
|
metaObjectcontextRoot| Constructor and Description |
|---|
WebServiceLogicImpl(Object metaObject,
String context) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Role> |
getAllRoles()
Overridden to only allow the exposed operations in the returned roles collection.
|
protected String |
getEjbHomeInterfacePattern()
Gets the
ejbHomeInterfacePattern for an EJB provider. |
protected String |
getEjbInterfacePattern()
Gets the
ejbInterfacePattern for an EJB provider. |
protected String |
getEjbJndiNamePrefix()
Gets the
ejbJndiNamePrefix for an EJB provider. |
protected String |
getNamespacePattern()
Gets the
namespacePattern for this service. |
Collection<PackageFacade> |
getPackages() |
String |
getPkgAbbr(PackageFacade pkg) |
protected String |
getQualifiedNameLocalPartPattern()
Gets the
qualifiedNameLocalPartPattern for this service. |
protected String |
getRpcClassNamePattern()
Gets the
rpcClassNamePattern for this service. |
ClassifierFacade |
getType(Object modelElement)
Gets the
type or returnType of the model element (if the model element has a type or
returnType). |
protected String |
handleGetAllowedMethods() |
protected Collection |
handleGetAllowedOperationExceptions()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected Collection<OperationFacade> |
handleGetAllowedOperations()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected String |
handleGetEjbHomeInterface() |
protected String |
handleGetEjbInterface() |
protected String |
handleGetEjbJndiName() |
protected String |
handleGetFullyQualifiedTestImplementationName() |
protected String |
handleGetFullyQualifiedTestName() |
protected int |
handleGetJaxwsCount() |
protected String |
handleGetNamespace() |
protected String |
handleGetNamespacePrefix() |
protected Collection<String> |
handleGetPackageReferences(String pkg,
boolean follow)
Get a unique list of packages referenced by the referring package
|
protected Collection<String> |
handleGetPackages()
Get a unique list of packages populated from the results of GetTypeMappingElements
|
protected String |
handleGetPkgAbbr(String pkgName) |
protected String |
handleGetProvider() |
protected String |
handleGetQName() |
protected String |
handleGetRestCacheType() |
protected String |
handleGetRestConsumes() |
protected List<String> |
handleGetRestContexts()
Contexts should be in the form fullyqualifiedclassname variable
|
protected int |
handleGetRestCount() |
protected String |
handleGetRestMethod() |
protected String |
handleGetRestPath() |
protected String |
handleGetRestProduces() |
protected String |
handleGetRestProvider() |
protected String |
handleGetRestRetention() |
protected String |
handleGetRestTarget() |
protected String |
handleGetRpcClassName() |
protected TypeMappings |
handleGetSchemaMappings()
Method to be implemented in descendants
TODO: Model Documentation for
org.andromda.cartridges.webservice.metafacades.WebService.getSchemaMappings
|
protected String |
handleGetStyle() |
protected String |
handleGetTestImplementationName() |
protected String |
handleGetTestName() |
protected String |
handleGetTestPackageName() |
protected Collection<ModelElementFacade> |
handleGetTypeMappingElements() |
protected String |
handleGetUse() |
protected String |
handleGetWsdlFile() |
protected String |
handleGetXjcArguments() |
protected boolean |
handleIsDocumentStyle() |
protected boolean |
handleIsEncodedUse() |
protected boolean |
handleIsLiteralUse() |
protected boolean |
handleIsRestAtom() |
protected boolean |
handleIsRpcStyle() |
protected boolean |
handleIsSchemaValidation() |
protected boolean |
handleIsSecured() |
protected boolean |
handleIsSimpleBindingMode() |
protected boolean |
handleIsWrappedStyle() |
protected boolean |
isReverseNamespace()
Gets whether or not
reverseNamespace is true/false for this type. |
Boolean |
useEnumValueInXSD()
Used to map between XML (list of restricted strings) and Java enum (has both a name and a value).
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::cartridges::webservice::metafacades::WebService::operation name must be unique
|
copyTaggedValues, findAttribute, findTaggedValue, findTaggedValue, findTaggedValues, getAbstractions, getAllAssociatedClasses, getAllEntityReferences, getAllGeneralizations, getAllMessagingDestinations, getAllowedMethods, getAllowedOperationExceptions, getAllowedOperations, getAllProperties, getAllRequiredConstructorParameters, getAllServiceReferences, getAllSpecializations, getArray, getArrayName, getAssociatedClasses, getAssociationEnds, getAttributes, getAttributes, getBindedFullyQualifiedName, getConstraints, getConstraints, getDocumentation, getDocumentation, getDocumentation, getEjbHomeInterface, getEjbInterface, getEjbJndiName, getEntityReferences, getFullyQualifiedArrayName, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedNamePath, getFullyQualifiedTestImplementationName, getFullyQualifiedTestName, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getId, getImplementationOperations, getImplementedInterfaceList, getInstanceAttributes, getInstanceOperations, getInterfaceAbstractions, getJavaNewString, getJavaNullString, getJaxwsCount, getKeywords, getLabel, getLanguageMappings, getMessagingDestinations, getModel, getName, getNamespace, getNamespacePrefix, getNavigableConnectingEnds, getNavigableConnectingEnds, getNonArray, getOperationCallFromAttributes, getOperations, getPackage, getPackageName, getPackageName, getPackagePath, getPackageReferences, getProperties, getProperties, getProvider, getQName, getQualifiedName, getRequiredConstructorParameters, getRestCacheType, getRestConsumes, getRestContexts, getRestCount, getRestMethod, getRestPath, getRestProduces, getRestProvider, getRestRetention, getRestTarget, getRoles, getRootPackage, getRpcClassName, getSchemaMappings, getSerialVersionUID, getServiceReferences, getSourceDependencies, getSpecializations, getStateMachineContext, getStaticAttributes, getStaticOperations, getStereotypeNames, getStereotypes, getStyle, getSuperClass, getTaggedValues, getTargetDependencies, getTemplateParameter, getTemplateParameters, getTestImplementationName, getTestName, getTestPackageName, getTypeMappingElements, getUse, getValidationName, getValidationOwner, getVisibility, getWrapperName, getWsdlFile, getXjcArguments, hasExactStereotype, hasKeyword, hasStereotype, initialize, isAbstract, isArrayType, isAssociationClass, isBindingDependenciesPresent, isBlobType, isBooleanType, isCharacterType, isClassifierFacadeMetaType, isClobType, isCollectionType, isConstraintsPresent, isDataType, isDateType, isDocumentationPresent, isDocumentStyle, isDoubleType, isEmbeddedValue, isEncodedUse, isEnumeration, isFileType, isFloatType, isGeneralizableElementFacadeMetaType, isIntegerType, isInterface, isLeaf, isListType, isLiteralUse, isLongType, isMapType, isModelElementFacadeMetaType, isPrimitive, isReservedWord, isRestAtom, isRpcStyle, isSchemaValidation, isSecured, isServiceMetaType, isSetType, isSimpleBindingMode, isStringType, isTemplateParametersPresent, isTimeType, isValidIdentifierName, isWebServiceMetaType, isWrappedPrimitive, isWrappedStyle, resetMetafacadeContext, toString, translateConstraint, translateConstraints, translateConstraintscompareTo, equals, getConfiguredProperty, getDebug, getMetafacadeContext, getMetaObject, hashCode, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validatestatic final String NAMESPACE_PREFIX
static final String QNAME_LOCAL_PART_PATTERN
static final String NAMESPACE_PATTERN
static final String REVERSE_NAMESPACE
public WebServiceLogicImpl(Object metaObject, String context)
metaObject - context - protected Collection<OperationFacade> handleGetAllowedOperations()
WebServiceLogichandleGetAllowedOperations in class WebServiceLogicWebService.getAllowedOperations()protected String handleGetAllowedMethods()
handleGetAllowedMethods in class WebServiceLogicWebService.getAllowedMethods()protected String handleGetQName()
handleGetQName in class WebServiceLogicWebService.getQName()protected String handleGetNamespace()
handleGetNamespace in class WebServiceLogicWebService.getNamespace()protected String handleGetStyle()
handleGetStyle in class WebServiceLogicWebService.getStyle()protected String handleGetUse()
handleGetUse in class WebServiceLogicWebService.getUse()protected Collection<ModelElementFacade> handleGetTypeMappingElements()
handleGetTypeMappingElements in class WebServiceLogicWebService.getTypeMappingElements()protected Collection<String> handleGetPackages()
protected String handleGetPkgAbbr(String pkgName)
pkgName - protected Collection<String> handleGetPackageReferences(String pkg, boolean follow)
handleGetPackageReferences in class WebServiceLogicpkg - PackageName to find related packages for xs:schema importfollow - Follow Inheritance references $extensionInheritanceDisabledprotected String handleGetProvider()
handleGetProvider in class WebServiceLogicWebService.getProvider()protected String handleGetWsdlFile()
handleGetWsdlFile in class WebServiceLogicWebService.getWsdlFile()public ClassifierFacade getType(Object modelElement)
type or returnType of the model element (if the model element has a type or
returnType).modelElement - the model element we'll retrieve the type of.protected String handleGetNamespacePrefix()
handleGetNamespacePrefix in class WebServiceLogicWSDLType.getNamespacePrefix()protected String getQualifiedNameLocalPartPattern()
qualifiedNameLocalPartPattern for this service.protected String getNamespacePattern()
namespacePattern for this service.protected boolean isReverseNamespace()
reverseNamespace is true/false for this type.protected String handleGetEjbJndiName()
handleGetEjbJndiName in class WebServiceLogicWebService.getEjbJndiName()protected String getEjbJndiNamePrefix()
ejbJndiNamePrefix for an EJB provider.protected String handleGetEjbHomeInterface()
handleGetEjbHomeInterface in class WebServiceLogicWebService.getEjbHomeInterface()protected String getEjbHomeInterfacePattern()
ejbHomeInterfacePattern for an EJB provider.protected String handleGetEjbInterface()
handleGetEjbInterface in class WebServiceLogicWebService.getEjbInterface()protected String getEjbInterfacePattern()
ejbInterfacePattern for an EJB provider.protected String getRpcClassNamePattern()
rpcClassNamePattern for this service.protected String handleGetRpcClassName()
handleGetRpcClassName in class WebServiceLogicWebService.getRpcClassName()protected boolean handleIsSecured()
handleIsSecured in class WebServiceLogicWebService.isSecured()public Collection<Role> getAllRoles()
getAllRoles in interface ServicegetAllRoles in class WebServiceLogicService.getAllRoles()protected String handleGetTestPackageName()
handleGetTestPackageName in class WebServiceLogicWebService.getTestPackageName()protected String handleGetFullyQualifiedTestName()
handleGetFullyQualifiedTestName in class WebServiceLogicWebService.getFullyQualifiedTestName()protected String handleGetTestName()
handleGetTestName in class WebServiceLogicWebService.getTestName()protected boolean handleIsWrappedStyle()
handleIsWrappedStyle in class WebServiceLogicWebService.isWrappedStyle()protected boolean handleIsDocumentStyle()
handleIsDocumentStyle in class WebServiceLogicWebService.isDocumentStyle()protected boolean handleIsRpcStyle()
handleIsRpcStyle in class WebServiceLogicWebService.isRpcStyle()protected boolean handleIsLiteralUse()
handleIsLiteralUse in class WebServiceLogicWebService.isLiteralUse()protected boolean handleIsEncodedUse()
handleIsEncodedUse in class WebServiceLogicWebService.isEncodedUse()protected String handleGetTestImplementationName()
handleGetTestImplementationName in class WebServiceLogicWebService.getTestImplementationName()protected String handleGetFullyQualifiedTestImplementationName()
handleGetFullyQualifiedTestImplementationName in class WebServiceLogicWebService.getFullyQualifiedTestImplementationName()protected TypeMappings handleGetSchemaMappings()
WebServiceLogichandleGetSchemaMappings in class WebServiceLogicWebService.getSchemaMappings()protected Collection handleGetAllowedOperationExceptions()
WebServiceLogichandleGetAllowedOperationExceptions in class WebServiceLogicWebServiceLogic.handleGetAllowedOperationExceptions()public Collection<PackageFacade> getPackages()
WebServiceUtils.getPackages(WebServiceLogicImpl, Set, boolean)public String getPkgAbbr(PackageFacade pkg)
pkg - getPkgAbbr(PackageFacade)protected boolean handleIsSchemaValidation()
handleIsSchemaValidation in class WebServiceLogicWebServiceLogic.handleIsSchemaValidation()protected boolean handleIsSimpleBindingMode()
handleIsSimpleBindingMode in class WebServiceLogicWebServiceLogic.handleIsSimpleBindingMode()protected String handleGetXjcArguments()
handleGetXjcArguments in class WebServiceLogicWebServiceLogic.getXjcArguments()protected String handleGetRestCacheType()
handleGetRestCacheType in class WebServiceLogicWebServiceLogic.getRestCacheType()protected String handleGetRestConsumes()
handleGetRestConsumes in class WebServiceLogicWebServiceLogic.getRestConsumes()protected List<String> handleGetRestContexts()
handleGetRestContexts in class WebServiceLogicWebServiceLogic.getRestContexts()protected String handleGetRestMethod()
handleGetRestMethod in class WebServiceLogicWebServiceLogic.getRestMethod()protected String handleGetRestPath()
handleGetRestPath in class WebServiceLogicWebServiceLogic.getRestPath()protected String handleGetRestProduces()
handleGetRestProduces in class WebServiceLogicWebServiceLogic.getRestProduces()protected String handleGetRestProvider()
handleGetRestProvider in class WebServiceLogicWebServiceLogic.getRestProvider()protected String handleGetRestRetention()
handleGetRestRetention in class WebServiceLogicWebServiceLogic.getRestRetention()protected String handleGetRestTarget()
handleGetRestTarget in class WebServiceLogicWebServiceLogic.getRestTarget()protected boolean handleIsRestAtom()
handleIsRestAtom in class WebServiceLogicWebServiceLogic.handleIsRestAtom()protected int handleGetRestCount()
handleGetRestCount in class WebServiceLogicWebServiceLogic.handleGetRestCount()protected int handleGetJaxwsCount()
handleGetJaxwsCount in class WebServiceLogicWebServiceLogic.handleGetJaxwsCount()public Boolean useEnumValueInXSD()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
WebServiceLogicConstraint: org::andromda::cartridges::webservice::metafacades::WebService::operation name must be unique
Error: A web service can not have more than one operation with the same name, please check the names of your web service operations.
OCL: context WebService inv : allowedOperations -> isUnique(operationName)
validateInvariants in interface ModelElementFacadevalidateInvariants in class WebServiceLogicvalidationMessages - CollectionMetafacadeBase.validateInvariants(Collection validationMessages)Copyright © 2003–2014 AndroMDA.org. All rights reserved.