Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
    def enum_enum(self, type):

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

        return makeGlobalSymbol('s_service', service.uri, "Methods")
Ejemplo n.º 5
0
    def state_value(self, state):

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

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

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

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

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

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

        return makeGlobalSymbol(self.event_enum(), event.namespace, event.name)
Ejemplo n.º 12
0
    def enum_accessor(self, type, fn):

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

        return makeGlobalSymbol("s_enum", type.namespace, type.name)
Ejemplo n.º 14
0
    def enum_type_value(self, type):

        return makeGlobalSymbol(self.enum_type_enum(), type.namespace, type.name)
Ejemplo n.º 15
0
    def enum_enum(self, type):

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

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

        return makeGlobalSymbol(self.enum_type_enum(), type.namespace, type.name)
Ejemplo n.º 18
0
    def dom_schema_fn(self, struct):

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

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

        return makeGlobalSymbol(self.state_enum(), state.namespace, state.name)
Ejemplo n.º 21
0
    def event_value(self, event):

        return makeGlobalSymbol(self.event_enum(), event.namespace, event.name)
Ejemplo n.º 22
0
    def state_value_sentinel(self, state, usage):

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

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

        return makeGlobalSymbol('s_service', service.uri, "Methods")
Ejemplo n.º 25
0
    def dom_schema_fn(self, struct):

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

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

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

        return makeGlobalSymbol(self.element_enum(), element[0], element[1])
Ejemplo n.º 29
0
    def service_events_name(self, service):

        return makeGlobalSymbol('s_service', service.uri, "Events")
Ejemplo n.º 30
0
    def element_value(self, element):

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