Clears the knowledge category.

        raise:  NoAccess - ``Metadata.isRequired()`` or
                ``Metadata.isReadOnly()`` is ``true``
        *compliance: mandatory -- This method must be implemented.*
772214
def clear_knowledge_category(self):
        
        # Implemented from template for osid.resource.ResourceForm.clear_avatar_template
        if (self.get_knowledge_category_metadata().is_read_only() or
                self.get_knowledge_category_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['knowledgeCategoryId'] = self._knowledge_category_default
687991
def clear(self):
        

        for order in range(0, MAX_ORDER + 1):
            self._orders[order].clear()

        self._normalized = True
764990
def clear_items_sequential(self):
        
        # Implemented from template for osid.resource.ResourceForm.clear_group_template
        if (self.get_items_sequential_metadata().is_read_only() or
                self.get_items_sequential_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['itemsSequential'] = self._items_sequential_default
1092889
def clear_learning_objectives(self):
        
        # Implemented from template for osid.learning.ActivityForm.clear_assets_template
        if (self.get_learning_objectives_metadata().is_read_only() or
                self.get_learning_objectives_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['learningObjectiveIds'] = self._learning_objectives_default
1162295
def clear_score(self):
        
        if self._grade_system.is_based_on_grades():
            return  # do nothing, spec does not raise error
        if (self.get_score_metadata().is_read_only() or
                self.get_score_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['score'] = self._score_default
        self._my_map['gradingAgentId'] = ''
        self._my_map['timeGraded'] = None
899132
public function clear()
    {
        if (null !== $this->aSource) {
            $this->aSource->removeCategory($this);
        }
        $this->id = null;
        $this->source_id = null;
        $this->pageid = null;
        $this->title = null;
        $this->files = null;
        $this->subcats = null;
        $this->pages = null;
        $this->size = null;
        $this->hidden = null;
        $this->created_at = null;
        $this->updated_at = null;
        $this->tree_left = null;
        $this->tree_right = null;
        $this->tree_level = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
1181333
def clear_assessment(self):
        
        # Implemented from template for osid.resource.ResourceForm.clear_avatar_template
        if (self.get_assessment_metadata().is_read_only() or
                self.get_assessment_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['assessmentId'] = self._assessment_default
272490
def clear(self):
        
        # mark this task as incomplete
        self.mark_incomplete()

        # Delete the indicator metadata, this also deletes values by cascading.
        for suffix in list(CLIMATE_SEASON_SUFFIXES.values()):
            try:
                # noinspection PyUnresolvedReferences
                indicator = self.session.query(models.ClimateIndicator) \
                    .filter(models.ClimateIndicator.description == self.description + suffix) \
                    .one()
                self.session.delete(indicator)
            except NoResultFound:
                # Data didn't exist yet, no problem
                pass

        self.close_session()
33880
public final void reset() {
    equivalencesMatched.clear();
    allFeatsIn = false;
    tokCnt = 0;
    featuresFound.clear();
    tmpFeaturesFound.clear();
    tokSequence.clear();
    tokSequenceEquivalences.clear();
    readingsCounter = 1;
    uniMatched = false;
    uniAllMatched = false;
    inUnification = false;
  }
1096115
def clear(self):
        
        self.reference = None
        self._pending_ref = None
        super(SimpleDependency, self).clear()
278269
public void clear(){
		this.errors.clearErrorMessages();;

		this.warnings.clear();
		this.infos.clear();

		this.scDir = 0;
		this.scDirUnreadable = 0;
		this.scFiles = 0;
		this.scFilesUnreadable = 0;
	}
1258686
def clear_priority(self):
        
        # Implemented from template for osid.logging.LogEntryForm.clear_priority_template
        if (self.get_priority_metadata().is_read_only() or
                self.get_priority_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['priority'] = self._priority_default
194893
def clear_data(self):
        
        self.__header.title = None
        self.__header.subtitle = None
        self.__prologue.text = None
        self.__epilogue.text = None
        self.__items_section.items = None
1059933
def reset_category(self, category, metric_slugs):
        
        key = self._category_key(category)
        if len(metric_slugs) == 0:
            # If there are no metrics, just remove the category
            self.delete_category(category)
        else:
            # Save all the slugs in the category, and save the category name
            self.r.sadd(key, *metric_slugs)
            self.r.sadd(self._categories_key, category)
866103
def clear(self):
        
        for sample in self.metadata:
            try:
                delattr(sample.depth, 'bases')
                delattr(sample.depth, 'coverage')
                delattr(sample.depth, 'length')
                delattr(sample.depth, 'stddev')
            except AttributeError:
                pass
1138766
def clean(self):
        '''  '''
        if not self.staffCategory and not self.staffMember:
            raise ValidationError(_('Either staff category or staff member must be specified.'))
        if self.staffCategory and self.staffMember:
           raise ValidationError(_('Specify either a staff category or a staff member, not both.'))
561593
public void clear() {
        ruleMap.clear();
        ruleConversionMap.clear();
        absentTypes.clear();
        checkedTypes.clear();
        checkedRules.clear();
        fruitlessRules.clear();
    }