org.apache.cocoon.transformation
Class EncodeURLTransformer.ElementAttributeMatching

java.lang.Object
  |
  +--org.apache.cocoon.transformation.EncodeURLTransformer.ElementAttributeMatching
Enclosing class:
EncodeURLTransformer

public class EncodeURLTransformer.ElementAttributeMatching
extends java.lang.Object

A helper class for matching element names, and attribute names.

For given include-name, exclude-name decide if element-attribute pair matches. This class defines the precedence and matching algorithm.

Version:
CVS $Id: EncodeURLTransformer.java,v 1.1.2.2 2002/11/10 22:53:54 huber Exp $
Author:
Bernhard Huber

Field Summary
protected  org.apache.regexp.RE excludeNameRE
          Regular expression of excluding patterns
protected  org.apache.regexp.RE includeNameRE
          Regular expression of including patterns
 
Constructor Summary
EncodeURLTransformer.ElementAttributeMatching(java.lang.String includeName, java.lang.String excludeName)
          Constructor for the ElementAttributeMatching object
 
Method Summary
 boolean matchesElementAttribute(java.lang.String element_name, java.lang.String attr_name)
          Return true iff element_name attr_name pair is not matched by exclude-name, but is matched by include-name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

includeNameRE

protected org.apache.regexp.RE includeNameRE
Regular expression of including patterns
Since:
 

excludeNameRE

protected org.apache.regexp.RE excludeNameRE
Regular expression of excluding patterns
Since:
 
Constructor Detail

EncodeURLTransformer.ElementAttributeMatching

public EncodeURLTransformer.ElementAttributeMatching(java.lang.String includeName,
                                                     java.lang.String excludeName)
                                              throws org.apache.regexp.RESyntaxException
Constructor for the ElementAttributeMatching object
Parameters:
includeName - Description of Parameter
excludeName - Description of Parameter
Throws:
org.apache.regexp.RESyntaxException - Description of Exception
Since:
 
Method Detail

matchesElementAttribute

public boolean matchesElementAttribute(java.lang.String element_name,
                                       java.lang.String attr_name)
Return true iff element_name attr_name pair is not matched by exclude-name, but is matched by include-name
Parameters:
element_name -  
attr_name -  
Returns:
boolean true iff value of attribute_name should get rewritten, else false.
Since:
 


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.