toggle_attribute method

toggle_attribute

If force is not given, “toggles” qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns

Returns true if qualifiedName is now present; otherwise false.

def toggle_attribute(self, qualified_name):
    ...
ParameterTypeDescription
qualified_namestrThe attribute QualifiedName.

toggle_attribute

If force is not given, “toggles” qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns

Returns true if qualifiedName is now present; otherwise false.

def toggle_attribute(self, qualified_name, force):
    ...
ParameterTypeDescription
qualified_namestrThe attribute QualifiedName.
forceboolThe force option to toggle attribute.

See Also