Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.dghda.module
Class ModulePathDirComponent  view ModulePathDirComponent download ModulePathDirComponent.java

java.lang.Object
  extended bycom.dghda.module.ModulePathDirComponent
All Implemented Interfaces:
ModulePathComponent

public class ModulePathDirComponent
extends java.lang.Object
implements ModulePathComponent

A module path directory component provides access to module providers in a directory.


Nested Class Summary
protected  class ModulePathDirComponent.DirIterator
          An iterator over the contents of the directory.
 
Nested classes inherited from class com.dghda.module.ModulePathComponent
ModulePathComponent.EmptyIterator, ModulePathComponent.Provider
 
Field Summary
private  java.io.File m_File
           
private  java.util.TreeMap m_FileComponents
           
private  long m_Scanned
           
 
Constructor Summary
ModulePathDirComponent(java.lang.String dir)
          Create a new path component representing the specified directory.
 
Method Summary
protected  ModulePathFileComponent getComponent(java.lang.String file)
          Return the component representing the given file.
 java.lang.String getPath()
          Returns the path to the directory.
 java.util.Iterator getProviders(boolean updated)
          Iterate over all providers in the directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_File

private java.io.File m_File

m_Scanned

private long m_Scanned

m_FileComponents

private java.util.TreeMap m_FileComponents
Constructor Detail

ModulePathDirComponent

public ModulePathDirComponent(java.lang.String dir)
                       throws InvalidPathException
Create a new path component representing the specified directory.

Method Detail

getProviders

public java.util.Iterator getProviders(boolean updated)
Iterate over all providers in the directory.

Specified by:
getProviders in interface ModulePathComponent

getPath

public java.lang.String getPath()
Returns the path to the directory.

Specified by:
getPath in interface ModulePathComponent

getComponent

protected ModulePathFileComponent getComponent(java.lang.String file)
Return the component representing the given file.