gate
Class Gate.DirectoryInfo

java.lang.Object
  extended by gate.Gate.DirectoryInfo
Enclosing class:
Gate

public static class Gate.DirectoryInfo
extends Object

Stores information about the contents of a CREOLE directory.


Field Summary
protected  List<Gate.ResourceInfo> resourceInfoList
          The list of Gate.ResourceInfo objects.
protected  URL url
          The URL for the CREOLE directory.
protected  boolean valid
          Is the directory valid (i.e. is the location reachable and the creole.xml file parsable).
 
Constructor Summary
Gate.DirectoryInfo(URL url)
           
 
Method Summary
protected  void fillInResInfos(List<Gate.ResourceInfo> incompleteResInfos, List<String> allJars)
           
 String getName()
           
 List<Gate.ResourceInfo> getResourceInfoList()
           
 URL getUrl()
           
 boolean isCorePlugin()
           
 boolean isRemotePlugin()
           
 boolean isUserPlugin()
           
 boolean isValid()
           
protected  void parseCreole()
          Performs a shallow parse of the creole.xml file to get the information about the resources contained.
protected  void scanJar(URL jarUrl, Map<String,Gate.ResourceInfo> resInfos)
           
 String toHTMLString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected URL url
The URL for the CREOLE directory.


valid

protected boolean valid
Is the directory valid (i.e. is the location reachable and the creole.xml file parsable).


resourceInfoList

protected List<Gate.ResourceInfo> resourceInfoList
The list of Gate.ResourceInfo objects.

Constructor Detail

Gate.DirectoryInfo

public Gate.DirectoryInfo(URL url)
Method Detail

isCorePlugin

public boolean isCorePlugin()

isRemotePlugin

public boolean isRemotePlugin()

isUserPlugin

public boolean isUserPlugin()

toHTMLString

public String toHTMLString()

getName

public String getName()

parseCreole

protected void parseCreole()
Performs a shallow parse of the creole.xml file to get the information about the resources contained.


scanJar

protected void scanJar(URL jarUrl,
                       Map<String,Gate.ResourceInfo> resInfos)
                throws IOException
Throws:
IOException

fillInResInfos

protected void fillInResInfos(List<Gate.ResourceInfo> incompleteResInfos,
                              List<String> allJars)
                       throws IOException
Throws:
IOException

getResourceInfoList

public List<Gate.ResourceInfo> getResourceInfoList()
Returns:
Returns the resourceInfoList.

getUrl

public URL getUrl()
Returns:
Returns the url.

isValid

public boolean isValid()
Returns:
Returns the valid.