Packageimpression.utilities
Classpublic class Classifier
InheritanceClassifier Inheritance Object

The Classifier class provides provides support for setting classification levels.



Public Methods
 MethodDefined By
  
Classifier(... classifications)
Creates a new instance of the Classifier class.
Classifier
  
Returns a copy of the classification strings array.
Classifier
  
setClassifications(... classifications):void
Sets the classification strings from the passed values.
Classifier
  
setClassificationsArray(classifications:Array):void
Sets the classification strings from the passed array.
Classifier
  
Sets the classification property of the passed lesson.
Classifier
Constructor Detail
Classifier()Constructor
public function Classifier(... classifications)

Creates a new instance of the Classifier class. If any parameters are passed, they are used to initialize the internal list of classification values.

Parameters
... classifications

See also

Method Detail
getClassificationArray()method
public function getClassificationArray():Array

Returns a copy of the classification strings array.

Returns
Array — A copy of the classification strings array.
setClassifications()method 
public function setClassifications(... classifications):void

Sets the classification strings from the passed values. Classification strings are expected to be in ascending order; that is, the first string value is the lowest classification. Non-string values are ignored. If no parameters are passed, invoking this method has no effect.

Parameters

... classifications — A comma-separated list of classification string values, ordered from lowest to highest.

setClassificationsArray()method 
public function setClassificationsArray(classifications:Array):void

Sets the classification strings from the passed array. Classification strings are expected to be in ascending order; that is, the string value at index i-1 is a lower classification than the string value at index i. Non-string values are ignored. If classificationsis null, invoking this method has no effect.

Parameters

classifications:Array — An Array containing the ordered classification string values, ordered from lowest to highest.

updateClassification()method 
public function updateClassification(lesson:Lesson):void

Sets the classification property of the passed lesson.

This method examines the classification property of each Storyboard object in the lesson and compares it to the list of classification values previously set using the constructor or one of the setClassification... methods. The highest classification value found is used.

Classification values comparisons are case-insensitive. Storyboard classification values not found in the internal array are ignored. If all storyboard classification values are not found or the empty string (""), the lesson parameter object's classification property will be set to the empty string.

Parameters

lesson:Lesson — The Lesson object to update the classification value of.

See also