|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.util.ElementAttributeMatching
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. This was originally part of the EncodeURLTransformer, moved here to make it more reusable.
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 | |
ElementAttributeMatching(String includeName,
String excludeName)
Constructor for the ElementAttributeMatching object |
Method Summary | |
boolean |
matchesElementAttribute(String element_name,
String attr_name,
String value)
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 |
protected org.apache.regexp.RE includeNameRE
protected org.apache.regexp.RE excludeNameRE
Constructor Detail |
public ElementAttributeMatching(String includeName, String excludeName) throws org.apache.regexp.RESyntaxException
includeName
- Description of ParameterexcludeName
- Description of Parameter
org.apache.regexp.RESyntaxException
- Description of ExceptionMethod Detail |
public boolean matchesElementAttribute(String element_name, String attr_name, String value)
element_name
- attr_name
- value
- used to canonicalize the elemtn/attribute name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |