net.sf.doolin.util
Class PatternFormat

java.lang.Object
  extended by net.sf.doolin.util.PatternFormat

public class PatternFormat
extends Object

This pattern works with DOS like patterns.

Author:
Damien Coraboeuf

Constructor Summary
PatternFormat(String pattern)
          Initialization
 
Method Summary
 boolean accept(String path)
          Utility method
 boolean equals(Object obj)
           
 String format(Object... params)
          Utility method
 int hashCode()
           
 Object[] parse(String path)
          Parse the path
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternFormat

public PatternFormat(String pattern)
Initialization

Parameters:
pattern - Pattern to use
Method Detail

format

public String format(Object... params)
Utility method

Parameters:
params - Parameters to fill the message
Returns:
Formatted string

accept

public boolean accept(String path)
Utility method

Parameters:
path - String to check
Returns:
Result of the check

parse

public Object[] parse(String path)
               throws ParseException
Parse the path

Parameters:
path - String to parse
Returns:
Result of the parsing
Throws:
ParseException - If the parsing cannot be done

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2011. All Rights Reserved.