Kie Workbench - Common - Services Backend 6.1.0.Beta2

org.kie.workbench.common.services.backend.validation
Class DefaultFileNameValidator

java.lang.Object
  extended by org.kie.workbench.common.services.backend.validation.DefaultFileNameValidator
All Implemented Interfaces:
FileNameValidator

@ApplicationScoped
public class DefaultFileNameValidator
extends Object
implements FileNameValidator

Default validation of resource file names


Constructor Summary
DefaultFileNameValidator()
           
 
Method Summary
 boolean accept(org.uberfire.backend.vfs.Path path)
           
 boolean accept(String fileName)
           
 int getPriority()
           
 boolean isValid(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFileNameValidator

public DefaultFileNameValidator()
Method Detail

getPriority

public int getPriority()
Specified by:
getPriority in interface FileNameValidator

accept

public boolean accept(String fileName)
Specified by:
accept in interface FileNameValidator

accept

public boolean accept(org.uberfire.backend.vfs.Path path)
Specified by:
accept in interface FileNameValidator

isValid

public boolean isValid(String value)
Specified by:
isValid in interface FileNameValidator

Kie Workbench - Common - Services Backend 6.1.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.