Inherits from NSObject
Conforms to PXSelector
Declared in PXTypeSelector.h

Overview

A PXTypeSelector is reponsible for matching an element by namespace (optional) and name.

Tasks

Properties

attributeExpressions

A unmutable list of attribute expressions associated with this selector

@property (readonly, nonatomic, strong) NSArray *attributeExpressions

Discussion

A unmutable list of attribute expressions associated with this selector

Declared In

PXTypeSelector.h

hasPseudoClasses

Determine if this selector contains any pseudo-classes

@property (readonly, nonatomic) BOOL hasPseudoClasses

Discussion

Determine if this selector contains any pseudo-classes

Declared In

PXTypeSelector.h

hasUniversalNamespace

The selector uses a universal namespace

@property (readonly, nonatomic) BOOL hasUniversalNamespace

Discussion

The selector uses a universal namespace

Declared In

PXTypeSelector.h

hasUniversalType

The selector uses a universal type

@property (readonly, nonatomic) BOOL hasUniversalType

Discussion

The selector uses a universal type

Declared In

PXTypeSelector.h

namespaceURI

The element/type namespace URI to match. This value may be nil

@property (readonly, nonatomic, strong) NSString *namespaceURI

Discussion

The element/type namespace URI to match. This value may be nil

Declared In

PXTypeSelector.h

pseudoElement

The pseudo-element associated with this selector. This value may be nil

@property (nonatomic, strong) NSString *pseudoElement

Discussion

The pseudo-element associated with this selector. This value may be nil

Declared In

PXTypeSelector.h

styleClasses

The style classes associated with this selector. This may be nil

@property (readonly, nonatomic) NSArray *styleClasses

Discussion

The style classes associated with this selector. This may be nil

Declared In

PXTypeSelector.h

styleId

The style ID associated with this selector. This value may be nil

@property (readonly, nonatomic) NSString *styleId

Discussion

The style ID associated with this selector. This value may be nil

Declared In

PXTypeSelector.h

typeName

The element/type namespace prefix to match. This value may be nil

@property (readonly, nonatomic, strong) NSString *typeName

Discussion

The element/type namespace prefix to match. This value may be nil

Declared In

PXTypeSelector.h

Instance Methods

addAttributeExpression:

Add an attribute expression to this selector. This selector matches only if it and it’s attribute expressions all match

- (void)addAttributeExpression:(id<PXSelector>)expression

Parameters

expression

The expression to add to this selector

Discussion

Add an attribute expression to this selector. This selector matches only if it and it’s attribute expressions all match

Declared In

PXTypeSelector.h

hasPseudoClass:

Determine if this selector contains a pseudo-class for the given type

- (BOOL)hasPseudoClass:(NSString *)className

Parameters

className

The pseudo-class name

Discussion

Determine if this selector contains a pseudo-class for the given type

Declared In

PXTypeSelector.h

initWithNamespaceURI:typeName:

Initializer a new instance with the specified element namespace and name

- (id)initWithNamespaceURI:(NSString *)uri typeName:(NSString *)type

Parameters

uri

The element namespace URI to match

type

The element name to match

Discussion

Initializer a new instance with the specified element namespace and name

Declared In

PXTypeSelector.h

initWithTypeName:

Initialize a new instance with the specified element name

- (id)initWithTypeName:(NSString *)type

Parameters

type

The element name to match

Discussion

Initialize a new instance with the specified element name

Declared In

PXTypeSelector.h