Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    CSS::SAC::ConditionFactory 0.06

    Download button

    No screenshots available
    Downloads: 407  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robin Berjon | More programs
    Perl Artistic License / FREE
    June 20th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    CSS::SAC::ConditionFactory description

    CSS::SAC::ConditionFactory Perl module contains the default ConditionFactory.

    CSS::SAC::ConditionFactory Perl module contains the default ConditionFactory.

    SYNOPSIS

    my $cf = CSS::SAC::ConditionFactory->new;
    my $cond1 = $cf->create_foo_condition;
    my $cond2 = $cf->create_bar_condition;

    This is the default ConditionFactory for CSS::SAC. It creates conditions of all types defined in SAC. You may wish to subclass or replace the default ConditionFactory in order to get your own condition objects.

    I plan on adding more flexibility to this factory so that one could tell it the classes to use for various conditions, 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 conditions it helps to have descriptive names.

    METHODS

    These define the interface that must be adhered to by ConditionFactories. The Java names (given in parens) work too, though the Perl ones are recommended.

    CSS::SAC::ConditionFactory->new or $cf->new
    Creates a new condition factory object.
    $cf->create_and_condition($first,$second) (createAndCondition)
    creates a combinator condition of type and
    $cf->create_attribute_condition($lname,$ns,$specified,$value) (createAttributeCondition)
    creates an attr condition
    $cf->create_begin_hyphen_attribute_condition($lname,$ns,$specified,$value) (createBeginHyphenAttributeCondition)
    creates a attr condition of type bh
    $cf->create_class_condition($ns,$value) (createClassCondition)
    creates a attr condition of type class
    $cf->create_content_condition($data) (createContentCondition)
    creates a content condition
    $cf->create_id_condition($value) (createIdCondition)
    creates a attr condition of type id
    $cf->create_lang_condition($lang) (createLangCondition)
    creates a lang condition
    $cf->create_negative_condition($cond) (createNegativeCondition)
    creates a negative condition
    $cf->create_one_of_attribute_condition($lname,$ns,$specified,$value) (createOneOfAttributeCondition)
    creates a attr condition of type id
    $cf->create_only_child_condition() (createOnlyChildCondition)
    creates a only-child condition
    $cf->create_only_type_condition() (createOnlyTypeCondition)
    creates a only-type condition
    $cf->create_or_condition($first,$second) (createOrCondition)
    creates a combinator condition of type or
    $cf->create_positional_condition($position,$type_node,$same_type) (createPositionalCondition)
    creates a positional condition
    $cf->create_pseudo_class_condition($ns,$value) (createPseudoClassCondition)
    creates a attr condition of type pseudo class

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Condition Factory | CSS::SAC ConditionFactory | Perl module | CSS::SAC::ConditionF | CSS | SAC

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM