def __getattr__(self, name):
        """
        Get a named attribute from this Filter instance. This method allows
        properties with the prefix of 'PropertyIs' to be set, and raises
        an AttributeError for all other property names.

        @type  name: string
        @param name: The name of the property.
        @rtype: L{PropertyCriterion}
        @return: The property comparitor.
        """
        if not name.startswith('PropertyIs'):
            raise AttributeError('Property name must be one of: PropertyIsEqualTo, PropertyIsNotEqualTo, PropertyIsLessThan, PropertyIsLessThanOrEqualTo, PropertyIsGreaterThan, PropertyIsGreaterThanOrEqualTo, PropertyIsLike.')
        xpath = self._node.xpath('ogc:' + name, namespaces=SLDNode._nsmap)
        if len(xpath) == 0:
            return None

        return PropertyCriterion(self, name)
def __getattr__ ( self , name ) : if not name . startswith ( 'PropertyIs' ) : raise AttributeError ( 'Property name must be one of: PropertyIsEqualTo, PropertyIsNotEqualTo, PropertyIsLessThan, PropertyIsLessThanOrEqualTo, PropertyIsGreaterThan, PropertyIsGreaterThanOrEqualTo, PropertyIsLike.' ) xpath = self . _node . xpath ( 'ogc:' + name , namespaces = SLDNode . _nsmap ) if len ( xpath ) == 0 : return None return PropertyCriterion ( self , name )
Get a named attribute from this Filter instance. This method allows
        properties with the prefix of 'PropertyIs' to be set, and raises
        an AttributeError for all other property names.

        @type  name: string
        @param name: The name of the property.
        @rtype: L{PropertyCriterion}
        @return: The property comparitor.