Sha256: 27354d54c852f4fe6e664a6084eb503c143b9b603374162fd2ae7f55a0fd1dd7

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

module Sbuilder

  module FacadeConstants
  
    # Meta model keys
    META_MODEL_DOMAINS="domains"    
    META_MODEL_DEFINITIONS="definitions"
    META_MODEL_INTERFACE_TYPES="interface_types"
    META_MODEL_INTERFACE_RESPONSE_TYPES="interface_response_types"    
    META_MODEL_PROCESSES="processes"
    META_MODEL_SERVICE_IMPLEMENTATION="service_implementation"
    META_MODEL_SERVICE_COMPLETION="service_completion"        
    META_MODEL_INFRA_SERVICES="infra_services"
    META_MODEL_FRAMEWORK_SVC="framework-svc"
    META_MODEL_INVARIANT='invariants'

    # Create template string, which invokes lambda to returns domain
    # of 'field' in parameter set 'definition'.
    def self.snippetFacadeParamsetDomain( definition, field ) 
      "{{#PARAM_SET_FIELD_DOMAIN}}#{definition}.#{field}{{/PARAM_SET_FIELD_DOMAIN}}"
    end
    
    # Create template string, which invokes lambda to return init
    # value from domain for the 'field' in parameter set 'definition'.
    def self.snippetFacadeParamsetDomainInit( definition, field ) 
      "{{#PARAM_SET_FIELD_DOMAIN_INIT}}#{definition}.#{field}{{/PARAM_SET_FIELD_DOMAIN_INIT}}"
    end

    # Create template string, which invokes lambda to return init
    # value from domain for the 'field' in RESPONSE parameter set
    # 'definition' (of type interface)
    def self.snippetFacadeResponseDomainInit( definition, field ) 
      "{{#RESPONSE_SET_FIELD_DOMAIN_INIT}}#{definition}.#{field}{{/RESPONSE_SET_FIELD_DOMAIN_INIT}}"
    end


    # Non-existing value (initial value if domain.includeNil)
    NIL = "Nil"
    DOMAIN_BOOLEAN = "BOOLEAN"

  end

  class Facade
    include Sbuilder::FacadeConstants

    
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tla-sbuilder-0.3.9 lib/sbuilder/facade/facade_constants.rb
tla-sbuilder-0.3.8 lib/sbuilder/facade/facade_constants.rb
tla-sbuilder-0.3.7 lib/sbuilder/facade/facade_constants.rb