1 7 package org.openharmonise.him.actions.rules; 8 9 import org.openharmonise.vfs.VirtualFile; 10 11 17 public class ParentPathEquals implements EnableRule { 18 19 boolean m_bComparator = true; 20 21 24 private String m_sPath = null; 25 26 31 public ParentPathEquals(String sPath) { 32 super(); 33 this.m_sPath = sPath; 34 } 35 36 39 public boolean isEnabled(VirtualFile vfFile) { 40 boolean bEnabled = false; 41 42 if(vfFile!=null && vfFile.getFilePath().equalsIgnoreCase(this.m_sPath)) { 43 bEnabled = true; 44 } 45 46 return this.m_bComparator==bEnabled; 47 } 48 49 52 public void setResultComparator(boolean bComparator) { 53 this.m_bComparator = bComparator; 54 } 55 56 } 57 | Popular Tags |