Inherits from NSObject
Declared in PXSpecificity.h

Overview

A PXSpecificity represents an order lists of specificities based on specificity type. Instances of this class are used to determine the specificity of declarations in order to derive a list of declarations to apply given a set of rule sets being applied to a given element.

Tasks

Instance Methods

compareSpecificity:

Compare the current specificity to another, returning a CFComparisonResult. This is used to sort arrays of items with specificity, typically PXRuleSets

- (NSComparisonResult)compareSpecificity:(PXSpecificity *)specificity

Parameters

specificity

The other PXSpecificity to compare against

Discussion

Compare the current specificity to another, returning a CFComparisonResult. This is used to sort arrays of items with specificity, typically PXRuleSets

Declared In

PXSpecificity.h

incrementSpecifity:

Increase the specificity counter for the given specificity type

- (void)incrementSpecifity:(PXSpecificityType)specificity

Parameters

specificity

The specificity type being incremented

Discussion

Increase the specificity counter for the given specificity type

Declared In

PXSpecificity.h

setSpecificity:toValue:

Set the specificity counter for a given specificity type

- (void)setSpecificity:(PXSpecificityType)specificity toValue:(int)value

Parameters

specificity

The specificity type being set

value

The new value

Discussion

Set the specificity counter for a given specificity type

Declared In

PXSpecificity.h