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)
def enum_enum(self, type): return makeGlobalSymbol(self.baseName.upper() + "_Enum", type.namespace, type.name)
def service_actions_name(self, service): return makeGlobalSymbol('s_service', service.uri, "Methods")
def state_value(self, state): return makeGlobalSymbol(self.state_enum(), state.namespace, state.name)
def schema_element_path_static(self, hsl, suffix = ""): return makeGlobalSymbol('s_elementPath', hsl.namespace, hsl.name) + suffix
def action_fn(self, action): return makeGlobalSymbol(self.baseName.upper() + '_Method', action.namespace, action.name)
def enum_type_strings_static(self, type): return makeGlobalSymbol("s_enum", type.namespace, type.name)
def schema_static(self, hsl, suffix = ""): return makeGlobalSymbol('s_schema', hsl.namespace, hsl.name) + suffix
def event_value(self, event): return makeGlobalSymbol(self.event_enum(), event.namespace, event.name)
def enum_accessor(self, type, fn): return makeGlobalSymbol(self.baseName.upper() + '_' + fn, type.namespace, type.name)
def enum_type_value(self, type): return makeGlobalSymbol(self.enum_type_enum(), type.namespace, type.name)
def dom_schema_fn(self, struct): return makeGlobalSymbol(self.baseName.upper() + '_Schema', struct.namespace, struct.name)
def state_value_sentinel(self, state, usage): return "__" + makeGlobalSymbol(self.state_enum() + usage, state.namespace, state.name).upper() + "__"
def service_events_name(self, service): return makeGlobalSymbol('s_service', service.uri, "Events")
def element_value(self, element): return makeGlobalSymbol(self.element_enum(), element[0], element[1])