Class Flavor
Represents a flavor.
public abstract class Flavor : MarshalByRefObject
- Inheritance
-
Flavor
- Derived
- Inherited Members
Constructors
Flavor(string, string)
Creates a new flavor.
protected Flavor(string displayName, string description)
Parameters
displayNamestringThe display name of the flavor.
descriptionstringA short description of the flavor.
Flavor(string, string, string)
Creates a new flavor.
protected Flavor(string displayName, string description, string baseFlavorName)
Parameters
displayNamestringThe display name of the flavor.
descriptionstringA short description of the flavor.
baseFlavorNamestringThe name of the flavor the flavor derives from or null.
Properties
BaseFlavor
Gets the instance of the flavor this flavor derives from. (Or null if this is not the case).
public Flavor BaseFlavor { get; }
Property Value
- Flavor
The base flavor.
BaseFlavorName
The name of the flavor this flavor derives from.
public string BaseFlavorName { get; }
Property Value
Description
The optional descritpion of the flavor.
public string Description { get; protected set; }
Property Value
DisplayName
The name of instance the descriptor refers to, with arbitrary casing.
public string DisplayName { get; }
Property Value
Enabled
Enables or disables the flavor.
public bool Enabled { get; set; }
Property Value
Remarks
If the flavor is disabled, no glue rules for this flavor are executed.
GlueRules
The list of glue rules for the flavor.
public IList<LineageGlueRule> GlueRules { get; }
Property Value
Name
The name of the flavor.
public string Name { get; }
Property Value
UidAttributeName
The name of the attribute for this flavor which acts as a unique identifier for an element
or null if the flavor has no uid attribute.
public virtual string UidAttributeName { get; }
Property Value
UseDesktopImageCapture
Defines whether capturing screenshots from elements of this flavor should use the desktop capturing method.
public virtual bool UseDesktopImageCapture { get; }
Property Value
Methods
InheritsFrom(string)
Test whether the current flavor inherits from a flavor with the given name.
public bool InheritsFrom(string flavorName)
Parameters
flavorNamestringName of the flavor.
Returns
- bool
True if the current flavor derives from the flavor with name
flavorName.
OnGlueRuleRegistered(GlueRuleRegisteredEventArgs)
Raises the GlueRuleRegistered event.
protected virtual void OnGlueRuleRegistered(GlueRuleRegisteredEventArgs args)
Parameters
argsGlueRuleRegisteredEventArgsThe GlueRuleRegisteredEventArgs instance containing the event data.
ToString()
The name of the flavor.
public override string ToString()
Returns
- string
Name string.
Events
GlueRuleRegistered
Occurs when a glue rule is registered.
public event GlueRuleRegisteredEventHandler GlueRuleRegistered
Event Type
Remarks
This event usually occurs when a plugin is loaded.