Package org.switchyard.config.model.resource

Examples of org.switchyard.config.model.resource.ResourceDetailModel


            }
            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);
        }
View Full Code Here


    private ResourceDetailModel toResourceDetailModel(ResourceDetail[] resourceDetailAnnotations, KnowledgeNamespace knowledgeNamespace) {
        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();
            if (!UNDEFINED.equals(worksheetName)) {
                resourceDetailModel.setWorksheetName(worksheetName);
            }
            /* SWITCHYARD-1662
            boolean usingExternalTypes = resourceDetailAnnotation.usingExternalTypes();
            resourceDetailModel.setUsingExternalTypes(usingExternalTypes);
            */
 
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public ResourceModel setDetail(ResourceDetail detail) {
        ResourceDetailModel child = null;
        if (detail instanceof ResourceDetailModel) {
            child = (ResourceDetailModel)detail;
        } else if (detail != null) {
            child = new V1ResourceDetailModel(getNamespaceURI());
            child.setInputType(detail.getInputType());
            child.setWorksheetName(detail.getWorksheetName());
            /* SWITCHYARD-1662
            child.setUsingExternalTypes(detail.isUsingExternalTypes());
            */
        }
        setChildModel(child);
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.resource.ResourceDetailModel

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.