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

Quick Search    Search Deep

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

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

public class ModulePathFileComponent
extends java.lang.Object
implements ModulePathComponent

A module path file component provides access to a module provider from a file.


Nested Class Summary
protected  class ModulePathFileComponent.FileIterator
          An iterator that returns a provider for a file.
 
Nested classes inherited from class com.dghda.module.ModulePathComponent
ModulePathComponent.EmptyIterator, ModulePathComponent.Provider
 
Field Summary
private  java.io.File m_File
           
private  long m_Scanned
           
 
Constructor Summary
ModulePathFileComponent(java.lang.String file)
          Create a new ModulePathFileComponent representing the given file.
 
Method Summary
 java.lang.String getPath()
          Returns the path to the file.
 ModulePathComponent.Provider getProvider()
          Return a provider representing the file.
 java.util.Iterator getProviders(boolean updated)
          The iterator will return at most one provider.
 
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
Constructor Detail

ModulePathFileComponent

public ModulePathFileComponent(java.lang.String file)
Create a new ModulePathFileComponent representing the given file.

Method Detail

getProviders

public java.util.Iterator getProviders(boolean updated)
The iterator will return at most one provider.

Specified by:
getProviders in interface ModulePathComponent

getProvider

public ModulePathComponent.Provider getProvider()
Return a provider representing the file.


getPath

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

Specified by:
getPath in interface ModulePathComponent