Set the options of the CoAP message.

        :type value: list
        :param value: list of options
541809
def options(self, value):
        
        if value is None:
            value = []
        assert isinstance(value, list)
        self._options = value
203175
def set_value(self, comp_str, comp_att):
        

        # Del double quotes of value
        str = comp_str[1:-1]
        self._standard_value = str

        # Parse the value
        super(CPEComponent2_3_WFN, self).set_value(str, comp_att)
481462
def setZValue(self, value):
        
        super(XNodeConnection, self).setZValue(value)

        if self._textItem:
            self._textItem.setZValue(value)
1279814
def add_list_opt(self, opt, values):
        
        self.add_opt(opt)
        for val in values:
            self.add_opt(val)
896416
def setValue(self, value):
        
        if isinstance(value, Text):
            self.value = value
        else:
            self.value = Text(value)
        return self
936226
def set(self, type, offset, value):
        
        self._command_stack.extend(['SET', type, offset, value])
        return self
631784
def add_opt(self, opt, value=None):
        
        if value is None:
            self.common_options += [opt]
        else:
            self.common_options += [opt, value]
974067
def set_lane_set_list(self, value):
        
        if value is None or not isinstance(value, list):
            raise TypeError("LaneSetList new value must be a list")
        else:
            for element in value:
                if not isinstance(element, lane_set.LaneSet):
                    raise TypeError("LaneSetList elements in variable must be of LaneSet class")
            self.__lane_set_list = value
976718
def accept(self, value):
        
        if value in list(defines.Content_types.values()):
            option = Option()
            option.number = defines.OptionRegistry.ACCEPT.number
            option.value = value
            self.add_option(option)
427421
def cb(option, value, parser):
    
    arguments = [value]
    for arg in parser.rargs:
        if arg[0] != "-":
            arguments.append(arg)
        else:
            del parser.rargs[:len(arguments)]
            break
    if getattr(parser.values, option.dest):
        arguments.extend(getattr(parser.values, option.dest))
    setattr(parser.values, option.dest, arguments)
1250687
def Add(self, value, *optional):
        
        if isinstance(value, TListItemWithOption):
            if optional:
                raise RuntimeError(
                    "option specified along with "
                    "TListItemWithOption. Specify one or the "
                    "other but not both.")
            return super(List, self).Add(value.item, value.option)
        return super(List, self).Add(value, *optional)
588103
def set_swimlane(self, value):
        
        value = value or []

        self._initial_value_to_ids_map = defaultdict(list)
        for item in value:
            self._initial_value_to_ids_map[item['value']].append(item['id'])

        return super(ListField, self).set_swimlane([d['value'] for d in value])
72301
def options(self, options):
        
        if self.is_optionhandler:
            javabridge.call(self.jobject, "setOptions", "([Ljava/lang/String;)V", typeconv.string_list_to_array(options))
676226
def __set_values(self, values):
        
        array = tuple((self._clean_value(v),) for v in values)
        self._get_target().setDataArray(array)
702466
def set_lane_list(self, value):
        
        if value is None or not isinstance(value, list):
            raise TypeError("LaneList new value must be a list")
        else:
            for element in value:
                if not isinstance(element, lane.Lane):
                    raise TypeError("LaneList elements in variable must be of Lane class")
            self.__lane_list = value
307232
def value(self, value):
        
        # For custom value
        if value not in self.options:
            if len(self.labels) == len(self.options):
                self.options[-1] = value
            else:
                self.options.append(value)

        self._value = value
745216
def setValue(self, value):
        
        self.__value = projex.text.decoded(value) if isinstance(value, (str, unicode)) else value