Nuxeo Enterprise Platform 5.4

org.nuxeo.connect.update.util
Class FileMatcher

java.lang.Object
  extended by org.nuxeo.connect.update.util.FileMatcher

public class FileMatcher
extends java.lang.Object

Author:
Bogdan Stefanescu

Constructor Summary
FileMatcher(java.util.regex.Pattern pattern, java.lang.String key)
           
 
Method Summary
 java.lang.String getKey()
           
static FileMatcher getMatcher(java.io.File file)
           
static FileMatcher getMatcher(java.lang.String path)
           
static java.io.File getMatchingFile(java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> map)
          The pattern variable will be put in the given map if any.
 java.util.regex.Pattern getPattern()
           
 java.lang.String getValue()
           
static void main(java.lang.String[] args)
           
 boolean match(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMatcher

public FileMatcher(java.util.regex.Pattern pattern,
                   java.lang.String key)
Method Detail

getMatcher

public static FileMatcher getMatcher(java.lang.String path)

getMatcher

public static FileMatcher getMatcher(java.io.File file)

getMatchingFile

public static java.io.File getMatchingFile(java.lang.String path,
                                           java.util.Map<java.lang.String,java.lang.Object> map)
The pattern variable will be put in the given map if any.

Parameters:
path -
map -
Returns:

getKey

public java.lang.String getKey()

getPattern

public java.util.regex.Pattern getPattern()

getValue

public java.lang.String getValue()

match

public boolean match(java.lang.String name)

main

public static void main(java.lang.String[] args)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.