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 |
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 |
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:
-
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 ParameterexcludeName
- Description of Parameter- Throws:
org.apache.regexp.RESyntaxException
- Description of Exception- Since:
-
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.