Package org.switchyard.config.model.resource.v1

Examples of org.switchyard.config.model.resource.v1.V1ResourceDetailModel


        if (resourceDetailAnnotations == null || resourceDetailAnnotations.length == 0) {
            return null;
        }
        ResourceDetailModel resourceDetailModel = null;
        for (ResourceDetail resourceDetailAnnotation : resourceDetailAnnotations) {
            resourceDetailModel = new V1ResourceDetailModel(knowledgeNamespace.uri());
            String inputType = resourceDetailAnnotation.inputType();
            if (!UNDEFINED.equals(inputType)) {
                resourceDetailModel.setInputType(inputType);
            }
            String worksheetName = resourceDetailAnnotation.worksheetName();
View Full Code Here


        } else if (RESOURCES.equals(name)) {
            return new V1ResourcesModel(config, desc);
        } else if (RESOURCE.equals(name)) {
            return new V1ResourceModel(config, desc);
        } else if (RESOURCE_DETAIL.equals(name)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (OPERATIONS.equals(name)) {
            return new V1OperationsModel(config, desc);
        } else if (GLOBALS.equals(name)) {
            return new V1GlobalsModel(config, desc);
        } else if (GLOBAL.equals(name)) {
View Full Code Here

        } else if (name.equals(ResourcesModel.RESOURCES)) {
            return new V1ResourcesModel(config, desc);
        } else if (name.equals(ResourceModel.RESOURCE)) {
            return new V1ResourceModel(config, desc);
        } else if (name.equals(ResourceDetailModel.RESOURCE_DETAIL)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (name.equals(ThrottlingModel.THROTTLING)) {
            return new V1ThrottlingModel(config, desc);
        } else if (name.equals(INTERFACE_ESB)) {
            return new V1EsbInterfaceModel(config, desc);
        } else if (name.startsWith(OperationSelectorModel.OPERATION_SELECTOR)) {
View Full Code Here

        if (resourceAnnotations == null || resourceAnnotations.length == 0) {
            return null;
        }
        ResourcesModel resourcesModel = new V1ResourcesModel(knowledgeNamespace.uri());
        for (Resource resourceAnnotation : resourceAnnotations) {
            ResourceModel resourceModel = new V1ResourceModel(knowledgeNamespace.uri());
            String location = resourceAnnotation.location();
            if (!UNDEFINED.equals(location)) {
                resourceModel.setLocation(location);
            }
            String type = resourceAnnotation.type();
            if (!UNDEFINED.equals(type)) {
                resourceModel.setType(ResourceType.valueOf(type));
            }
            ResourceDetailModel resourceDetailModel = toResourceDetailModel(resourceAnnotation.detail(), knowledgeNamespace);
            if (resourceDetailModel != null) {
                resourceModel.setDetail(resourceDetailModel);
            }
            resourcesModel.addResource(resourceModel);
        }
        return resourcesModel;
    }
View Full Code Here

        } else if (CONTAINER.equals(name)) {
            return new V1ContainerModel(config, desc);
        } else if (RESOURCES.equals(name)) {
            return new V1ResourcesModel(config, desc);
        } else if (RESOURCE.equals(name)) {
            return new V1ResourceModel(config, desc);
        } else if (RESOURCE_DETAIL.equals(name)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (OPERATIONS.equals(name)) {
            return new V1OperationsModel(config, desc);
        } else if (GLOBALS.equals(name)) {
View Full Code Here

        } else if (name.equals(DomainModel.DOMAIN)) {
            return new V1DomainModel(config, desc);
        } else if (name.equals(ResourcesModel.RESOURCES)) {
            return new V1ResourcesModel(config, desc);
        } else if (name.equals(ResourceModel.RESOURCE)) {
            return new V1ResourceModel(config, desc);
        } else if (name.equals(ResourceDetailModel.RESOURCE_DETAIL)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (name.equals(ThrottlingModel.THROTTLING)) {
            return new V1ThrottlingModel(config, desc);
        } else if (name.equals(INTERFACE_ESB)) {
View Full Code Here

     */
    protected ResourcesModel toResourcesModel(Resource[] resourceAnnotations, KnowledgeNamespace knowledgeNamespace) {
        if (resourceAnnotations == null || resourceAnnotations.length == 0) {
            return null;
        }
        ResourcesModel resourcesModel = new V1ResourcesModel(knowledgeNamespace.uri());
        for (Resource resourceAnnotation : resourceAnnotations) {
            ResourceModel resourceModel = new V1ResourceModel(knowledgeNamespace.uri());
            String location = resourceAnnotation.location();
            if (!UNDEFINED.equals(location)) {
                resourceModel.setLocation(location);
            }
            String type = resourceAnnotation.type();
            if (!UNDEFINED.equals(type)) {
                resourceModel.setType(ResourceType.valueOf(type));
            }
            ResourceDetailModel resourceDetailModel = toResourceDetailModel(resourceAnnotation.detail(), knowledgeNamespace);
            if (resourceDetailModel != null) {
                resourceModel.setDetail(resourceDetailModel);
            }
            resourcesModel.addResource(resourceModel);
        }
        return resourcesModel;
    }
View Full Code Here

        } else if (MANIFEST.equals(name)) {
            return new V1ManifestModel(config, desc);
        } else if (CONTAINER.equals(name)) {
            return new V1ContainerModel(config, desc);
        } else if (RESOURCES.equals(name)) {
            return new V1ResourcesModel(config, desc);
        } else if (RESOURCE.equals(name)) {
            return new V1ResourceModel(config, desc);
        } else if (RESOURCE_DETAIL.equals(name)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (OPERATIONS.equals(name)) {
View Full Code Here

        } else if (name.equals(SecurityModel.SECURITY)) {
            return new V1SecurityModel(config, desc);
        } else if (name.equals(DomainModel.DOMAIN)) {
            return new V1DomainModel(config, desc);
        } else if (name.equals(ResourcesModel.RESOURCES)) {
            return new V1ResourcesModel(config, desc);
        } else if (name.equals(ResourceModel.RESOURCE)) {
            return new V1ResourceModel(config, desc);
        } else if (name.equals(ResourceDetailModel.RESOURCE_DETAIL)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (name.equals(ThrottlingModel.THROTTLING)) {
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.resource.v1.V1ResourceDetailModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.