示例#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)
示例#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)
示例#3
0
    def enum_enum(self, type):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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