| java.lang.Object org.jboss.mx.util.ObjectNamePatternHelper
ObjectNamePatternHelper | public class ObjectNamePatternHelper (Code) | | ObjectName pattern matching Helper.
Contains various routines for matching domains and properties.
Routines based on work done Trevor in the registry.
author: Adrian Brock. author: Trevor Squires. version: $Revision: 57200 $ |
Inner Class :public static class PropertyPattern | |
Method Summary | |
public static boolean | patternMatch(ObjectName test, ObjectName pattern) Compare an object name against a pattern. | public static boolean | patternMatch(String test, String pattern) Compare strings where ? and * chars are significant. | public static boolean | patternMatch(char[] test, int tpos, char[] pattern, int ppos) Compare where ? and * chars are significant.
I arrived at this solution after quite a bit of trial and error - it's
all a bit interwoven. |
patternMatch | public static boolean patternMatch(ObjectName test, ObjectName pattern)(Code) | | Compare an object name against a pattern.
Parameters: test - the string to test Parameters: pattern - the pattern to match |
patternMatch | public static boolean patternMatch(String test, String pattern)(Code) | | Compare strings where ? and * chars are significant.
Parameters: test - the string to test Parameters: pattern - the pattern to match |
patternMatch | public static boolean patternMatch(char[] test, int tpos, char[] pattern, int ppos)(Code) | | Compare where ? and * chars are significant.
I arrived at this solution after quite a bit of trial and error - it's
all a bit interwoven. Obviously I'm no good at parsers and there must
be a clearer or more elegant way to do this. I'm suitably in awe of
the perl regex hackers now.
Parameters: test - the string to test Parameters: tpos - the start of the test string Parameters: pattern - the pattern to match Parameters: ppos - the start of the pattern string |
|
|