org.jboss.messaging.core.settings.impl
Class Match<T>

java.lang.Object
  extended by org.jboss.messaging.core.settings.impl.Match<T>

public class Match<T>
extends java.lang.Object

a Match is the holder for the match string and the object to hold against it.


Field Summary
static java.lang.String WILDCARD
           
static java.lang.String WORD_WILDCARD
           
 
Constructor Summary
Match(java.lang.String match)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getMatch()
           
 java.util.regex.Pattern getPattern()
           
 T getValue()
           
 int hashCode()
           
 void setMatch(java.lang.String match)
           
 void setValue(T value)
           
static void verify(java.lang.String match)
          utility method to verify consistency of match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORD_WILDCARD

public static java.lang.String WORD_WILDCARD

WILDCARD

public static java.lang.String WILDCARD
Constructor Detail

Match

public Match(java.lang.String match)
Method Detail

getMatch

public java.lang.String getMatch()

setMatch

public void setMatch(java.lang.String match)

getPattern

public java.util.regex.Pattern getPattern()

getValue

public T getValue()

setValue

public void setValue(T value)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

verify

public static void verify(java.lang.String match)
                   throws java.lang.IllegalArgumentException
utility method to verify consistency of match

Parameters:
match - the match to validate
Throws:
java.lang.IllegalArgumentException - if a match isnt valid


Copyright © 2006 JBoss Inc. All Rights Reserved.