net.sf.mmm.util.file.base
Class FileUtilImpl.PathSegment

java.lang.Object
  extended by net.sf.mmm.util.file.base.FileUtilImpl.PathSegment
Enclosing class:
FileUtilImpl

protected static class FileUtilImpl.PathSegment
extends Object

This inner class represents a segment of a glob-matching path. It is a simple container for a string and a pattern.


Field Summary
private  Pattern pattern
           
private  String string
           
 
Constructor Summary
FileUtilImpl.PathSegment(String string)
          The constructor.
FileUtilImpl.PathSegment(String string, Pattern pattern)
          The constructor.
 
Method Summary
 Pattern getPattern()
          This method gets the pattern.
 String getString()
          This method gets the segment as raw string.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

string

private final String string
See Also:
getString()

pattern

private final Pattern pattern
See Also:
getPattern()
Constructor Detail

FileUtilImpl.PathSegment

public FileUtilImpl.PathSegment(String string)
The constructor.

Parameters:
string - is the string of the segment.

FileUtilImpl.PathSegment

public FileUtilImpl.PathSegment(String string,
                                Pattern pattern)
The constructor.

Parameters:
string - is the string of the segment.
pattern - is the string parsed as pattern.
Method Detail

getString

public String getString()
This method gets the segment as raw string. This may be a pattern.

Returns:
the string.

getPattern

public Pattern getPattern()
This method gets the pattern.

Returns:
the pattern or null if the string is to be matched exactly.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2001-2010 mmm-Team. All Rights Reserved.