com.caucho.config.types
Class PathPatternType

java.lang.Object
  extended by com.caucho.config.types.PathPatternType

public class PathPatternType
extends java.lang.Object

Abstract type building a path pattern. The pattern follows ant.


Constructor Summary
PathPatternType()
           
PathPatternType(java.lang.String pattern)
           
 
Method Summary
 void addText(java.lang.String text)
          Sets the pattern name.
 void init()
          initialize the pattern.
 boolean isMatch(java.lang.String path)
          Check for a match.
 void setName(java.lang.String pattern)
          Sets the pattern name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathPatternType

public PathPatternType()

PathPatternType

public PathPatternType(java.lang.String pattern)
                throws ConfigException,
                       java.util.regex.PatternSyntaxException
Throws:
ConfigException
java.util.regex.PatternSyntaxException
Method Detail

setName

public void setName(java.lang.String pattern)
             throws ConfigException,
                    java.util.regex.PatternSyntaxException
Sets the pattern name.

Throws:
ConfigException
java.util.regex.PatternSyntaxException

addText

public void addText(java.lang.String text)
             throws ConfigException,
                    java.util.regex.PatternSyntaxException
Sets the pattern name.

Throws:
ConfigException
java.util.regex.PatternSyntaxException

init

@PostConstruct
public void init()
          throws ConfigException
initialize the pattern.

Throws:
ConfigException

isMatch

public boolean isMatch(java.lang.String path)
Check for a match.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object