public class WebServiceLogicImpl extends WebServiceLogic
WebService
,
Serialized FormModifier 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
|
metaObject
contextRoot
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, translateConstraints
compareTo, equals, getConfiguredProperty, getDebug, getMetafacadeContext, getMetaObject, hashCode, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
static 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()
WebServiceLogic
handleGetAllowedOperations
in class WebServiceLogic
WebService.getAllowedOperations()
protected String handleGetAllowedMethods()
handleGetAllowedMethods
in class WebServiceLogic
WebService.getAllowedMethods()
protected String handleGetQName()
handleGetQName
in class WebServiceLogic
WebService.getQName()
protected String handleGetNamespace()
handleGetNamespace
in class WebServiceLogic
WebService.getNamespace()
protected String handleGetStyle()
handleGetStyle
in class WebServiceLogic
WebService.getStyle()
protected String handleGetUse()
handleGetUse
in class WebServiceLogic
WebService.getUse()
protected Collection<ModelElementFacade> handleGetTypeMappingElements()
handleGetTypeMappingElements
in class WebServiceLogic
WebService.getTypeMappingElements()
protected Collection<String> handleGetPackages()
protected String handleGetPkgAbbr(String pkgName)
pkgName
- protected Collection<String> handleGetPackageReferences(String pkg, boolean follow)
handleGetPackageReferences
in class WebServiceLogic
pkg
- PackageName to find related packages for xs:schema importfollow
- Follow Inheritance references $extensionInheritanceDisabledprotected String handleGetProvider()
handleGetProvider
in class WebServiceLogic
WebService.getProvider()
protected String handleGetWsdlFile()
handleGetWsdlFile
in class WebServiceLogic
WebService.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 WebServiceLogic
WSDLType.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 WebServiceLogic
WebService.getEjbJndiName()
protected String getEjbJndiNamePrefix()
ejbJndiNamePrefix
for an EJB provider.protected String handleGetEjbHomeInterface()
handleGetEjbHomeInterface
in class WebServiceLogic
WebService.getEjbHomeInterface()
protected String getEjbHomeInterfacePattern()
ejbHomeInterfacePattern
for an EJB provider.protected String handleGetEjbInterface()
handleGetEjbInterface
in class WebServiceLogic
WebService.getEjbInterface()
protected String getEjbInterfacePattern()
ejbInterfacePattern
for an EJB provider.protected String getRpcClassNamePattern()
rpcClassNamePattern
for this service.protected String handleGetRpcClassName()
handleGetRpcClassName
in class WebServiceLogic
WebService.getRpcClassName()
protected boolean handleIsSecured()
handleIsSecured
in class WebServiceLogic
WebService.isSecured()
public Collection<Role> getAllRoles()
getAllRoles
in interface Service
getAllRoles
in class WebServiceLogic
Service.getAllRoles()
protected String handleGetTestPackageName()
handleGetTestPackageName
in class WebServiceLogic
WebService.getTestPackageName()
protected String handleGetFullyQualifiedTestName()
handleGetFullyQualifiedTestName
in class WebServiceLogic
WebService.getFullyQualifiedTestName()
protected String handleGetTestName()
handleGetTestName
in class WebServiceLogic
WebService.getTestName()
protected boolean handleIsWrappedStyle()
handleIsWrappedStyle
in class WebServiceLogic
WebService.isWrappedStyle()
protected boolean handleIsDocumentStyle()
handleIsDocumentStyle
in class WebServiceLogic
WebService.isDocumentStyle()
protected boolean handleIsRpcStyle()
handleIsRpcStyle
in class WebServiceLogic
WebService.isRpcStyle()
protected boolean handleIsLiteralUse()
handleIsLiteralUse
in class WebServiceLogic
WebService.isLiteralUse()
protected boolean handleIsEncodedUse()
handleIsEncodedUse
in class WebServiceLogic
WebService.isEncodedUse()
protected String handleGetTestImplementationName()
handleGetTestImplementationName
in class WebServiceLogic
WebService.getTestImplementationName()
protected String handleGetFullyQualifiedTestImplementationName()
handleGetFullyQualifiedTestImplementationName
in class WebServiceLogic
WebService.getFullyQualifiedTestImplementationName()
protected TypeMappings handleGetSchemaMappings()
WebServiceLogic
handleGetSchemaMappings
in class WebServiceLogic
WebService.getSchemaMappings()
protected Collection handleGetAllowedOperationExceptions()
WebServiceLogic
handleGetAllowedOperationExceptions
in class WebServiceLogic
WebServiceLogic.handleGetAllowedOperationExceptions()
public Collection<PackageFacade> getPackages()
WebServiceUtils.getPackages(WebServiceLogicImpl, Set, boolean)
public String getPkgAbbr(PackageFacade pkg)
pkg
- getPkgAbbr(PackageFacade)
protected boolean handleIsSchemaValidation()
handleIsSchemaValidation
in class WebServiceLogic
WebServiceLogic.handleIsSchemaValidation()
protected boolean handleIsSimpleBindingMode()
handleIsSimpleBindingMode
in class WebServiceLogic
WebServiceLogic.handleIsSimpleBindingMode()
protected String handleGetXjcArguments()
handleGetXjcArguments
in class WebServiceLogic
WebServiceLogic.getXjcArguments()
protected String handleGetRestCacheType()
handleGetRestCacheType
in class WebServiceLogic
WebServiceLogic.getRestCacheType()
protected String handleGetRestConsumes()
handleGetRestConsumes
in class WebServiceLogic
WebServiceLogic.getRestConsumes()
protected List<String> handleGetRestContexts()
handleGetRestContexts
in class WebServiceLogic
WebServiceLogic.getRestContexts()
protected String handleGetRestMethod()
handleGetRestMethod
in class WebServiceLogic
WebServiceLogic.getRestMethod()
protected String handleGetRestPath()
handleGetRestPath
in class WebServiceLogic
WebServiceLogic.getRestPath()
protected String handleGetRestProduces()
handleGetRestProduces
in class WebServiceLogic
WebServiceLogic.getRestProduces()
protected String handleGetRestProvider()
handleGetRestProvider
in class WebServiceLogic
WebServiceLogic.getRestProvider()
protected String handleGetRestRetention()
handleGetRestRetention
in class WebServiceLogic
WebServiceLogic.getRestRetention()
protected String handleGetRestTarget()
handleGetRestTarget
in class WebServiceLogic
WebServiceLogic.getRestTarget()
protected boolean handleIsRestAtom()
handleIsRestAtom
in class WebServiceLogic
WebServiceLogic.handleIsRestAtom()
protected int handleGetRestCount()
handleGetRestCount
in class WebServiceLogic
WebServiceLogic.handleGetRestCount()
protected int handleGetJaxwsCount()
handleGetJaxwsCount
in class WebServiceLogic
WebServiceLogic.handleGetJaxwsCount()
public Boolean useEnumValueInXSD()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
WebServiceLogic
Constraint: 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 ModelElementFacade
validateInvariants
in class WebServiceLogic
validationMessages
- CollectionMetafacadeBase.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.