CSS::SAC::SelectorFactory - the default SelectorFactory
fill this in later...
This is the default SelectorFactory for CSS::SAC. It creates selectors of all types defined in SAC. You may wish to subclass or replace the default SelectorFactory in order to get your own selector objects.
I plan on adding more flexibility to this factory so that one could tell it the classes to use for various selectors, that would avoid enforcing subclassing/recoding for people that only want to replace a family of factory methods.
I know that some of the method names are quite lengthy, but given the great number of possible selectors it helps to have descriptive names.
All the create* methods have a spec-style equivalent. Just remove
the _ and capitalize the next letter.
Creates a new condition factory object.
creates a any-node selector
create_cdata_section_selector($data)
creates a cdata selector
create_child_selector($parent_sel,$child_sel)
creates a child selector
create_comment_selector($data)
creates a comment selector
create_conditional_selector($sel,$cond)
creates a conditional selector
create_descendant_selector($parent_sel,$desc_sel)
creates a descendant selector
create_direct_adjacent_selector($node_type,$child,$adjacent)
creates a direct adjacent selector
create_element_selector($ns,$lname)
creates a element selector
create_negative_selector($sel)
creates a negative selector
create_processing_instruction_selector($target,$data)
creates a pi selector
create_pseudo_element_selector($ns,$lname)
creates a pseudo-e selector
creates a root selector
create_text_node_selector($data)
creates a text selector
Robin Berjon <robin@knowscape.com>
This module is licensed under the same terms as Perl itself.