Example #1
0
    def action_value(self, action_loc):

        # Non-post action?
        if action_loc.http_method != "POST":
            suffix = "_" + action_loc.http_method
        else:
            suffix = ""

        return makeGlobalSymbol(self.action_enum() + suffix, action_loc.action.namespace, action_loc.action.name)
Example #2
0
    def action_value(self, action_loc):

        # Non-post action?
        if action_loc.http_method != "POST":
            suffix = "_" + action_loc.http_method
        else:
            suffix = ""

        return makeGlobalSymbol(self.action_enum() + suffix, action_loc.action.namespace, action_loc.action.name)
Example #3
0
    def enum_enum(self, type):

        return makeGlobalSymbol(self.baseName.upper() + "_Enum", type.namespace, type.name)
Example #4
0
    def service_actions_name(self, service):

        return makeGlobalSymbol('s_service', service.uri, "Methods")
Example #5
0
    def state_value(self, state):

        return makeGlobalSymbol(self.state_enum(), state.namespace, state.name)
Example #6
0
    def schema_element_path_static(self, hsl, suffix = ""):

        return makeGlobalSymbol('s_elementPath', hsl.namespace, hsl.name) + suffix
Example #7
0
    def action_fn(self, action):

        return makeGlobalSymbol(self.baseName.upper() + '_Method', action.namespace, action.name)
Example #8
0
    def enum_type_strings_static(self, type):

        return makeGlobalSymbol("s_enum", type.namespace, type.name)
Example #9
0
    def schema_static(self, hsl, suffix = ""):

        return makeGlobalSymbol('s_schema', hsl.namespace, hsl.name) + suffix
Example #10
0
    def action_fn(self, action):

        return makeGlobalSymbol(self.baseName.upper() + '_Method', action.namespace, action.name)
Example #11
0
    def event_value(self, event):

        return makeGlobalSymbol(self.event_enum(), event.namespace, event.name)
Example #12
0
    def enum_accessor(self, type, fn):

        return makeGlobalSymbol(self.baseName.upper() + '_' + fn, type.namespace, type.name)
Example #13
0
    def enum_type_strings_static(self, type):

        return makeGlobalSymbol("s_enum", type.namespace, type.name)
Example #14
0
    def enum_type_value(self, type):

        return makeGlobalSymbol(self.enum_type_enum(), type.namespace, type.name)
Example #15
0
    def enum_enum(self, type):

        return makeGlobalSymbol(self.baseName.upper() + "_Enum", type.namespace, type.name)
Example #16
0
    def schema_element_path_static(self, hsl, suffix = ""):

        return makeGlobalSymbol('s_elementPath', hsl.namespace, hsl.name) + suffix
Example #17
0
    def enum_type_value(self, type):

        return makeGlobalSymbol(self.enum_type_enum(), type.namespace, type.name)
Example #18
0
    def dom_schema_fn(self, struct):

        return makeGlobalSymbol(self.baseName.upper() + '_Schema', struct.namespace, struct.name)
Example #19
0
    def enum_accessor(self, type, fn):

        return makeGlobalSymbol(self.baseName.upper() + '_' + fn, type.namespace, type.name)
Example #20
0
    def state_value(self, state):

        return makeGlobalSymbol(self.state_enum(), state.namespace, state.name)
Example #21
0
    def event_value(self, event):

        return makeGlobalSymbol(self.event_enum(), event.namespace, event.name)
Example #22
0
    def state_value_sentinel(self, state, usage):

        return "__" + makeGlobalSymbol(self.state_enum() + usage, state.namespace, state.name).upper() + "__"
Example #23
0
    def schema_static(self, hsl, suffix = ""):

        return makeGlobalSymbol('s_schema', hsl.namespace, hsl.name) + suffix
Example #24
0
    def service_actions_name(self, service):

        return makeGlobalSymbol('s_service', service.uri, "Methods")
Example #25
0
    def dom_schema_fn(self, struct):

        return makeGlobalSymbol(self.baseName.upper() + '_Schema', struct.namespace, struct.name)
Example #26
0
    def service_events_name(self, service):

        return makeGlobalSymbol('s_service', service.uri, "Events")
Example #27
0
    def state_value_sentinel(self, state, usage):

        return "__" + makeGlobalSymbol(self.state_enum() + usage, state.namespace, state.name).upper() + "__"
Example #28
0
    def element_value(self, element):

        return makeGlobalSymbol(self.element_enum(), element[0], element[1])
Example #29
0
    def service_events_name(self, service):

        return makeGlobalSymbol('s_service', service.uri, "Events")
Example #30
0
    def element_value(self, element):

        return makeGlobalSymbol(self.element_enum(), element[0], element[1])