Drools :: Compiler 6.2.0.Final

org.drools.compiler.compiler.io.memory
Class MemoryFolder

java.lang.Object
  extended by org.drools.compiler.compiler.io.memory.MemoryFolder
All Implemented Interfaces:
Folder, Resource

public class MemoryFolder
extends Object
implements Folder


Constructor Summary
MemoryFolder(MemoryFileSystem mfs, String path)
           
 
Method Summary
 boolean create()
           
 boolean equals(Object obj)
           
 boolean exists()
           
 File getFile(String name)
           
 Folder getFolder(String name)
           
 Collection<? extends Resource> getMembers()
           
 String getName()
           
 Folder getParent()
           
 Path getPath()
           
 int hashCode()
           
 String toString()
           
static String trimLeadingAndTrailing(String p)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryFolder

public MemoryFolder(MemoryFileSystem mfs,
                    String path)
Method Detail

getName

public String getName()
Specified by:
getName in interface Folder

getPath

public Path getPath()
Specified by:
getPath in interface Folder
Specified by:
getPath in interface Resource

getFile

public File getFile(String name)
Specified by:
getFile in interface Folder

getFolder

public Folder getFolder(String name)
Specified by:
getFolder in interface Folder

getParent

public Folder getParent()
Specified by:
getParent in interface Folder

trimLeadingAndTrailing

public static String trimLeadingAndTrailing(String p)

getMembers

public Collection<? extends Resource> getMembers()
Specified by:
getMembers in interface Folder

exists

public boolean exists()
Specified by:
exists in interface Folder

create

public boolean create()
Specified by:
create in interface Folder

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Drools :: Compiler 6.2.0.Final

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