net.groboclown.util.jplugin.v1
Class PropertyList

java.lang.Object
  |
  +--net.groboclown.util.jplugin.v1.PropertyList

public class PropertyList
extends Object

This class stores all the properties found. Each property file is of the same format as a JAR manifest file (see the manifest format for more information). Property files can be added upon each other to create a central database of the found properties.


Field Summary
protected  Hashtable classProperties
          A list of each class name, with the value storing the ClassAttributes associated with the class name.
static String STANDARD_MANIFEST_EXTENTION
          The standard extention for manifest files.
 
Constructor Summary
PropertyList()
           
PropertyList(String manifestName)
           
PropertyList(URL manifestURL)
           
 
Method Summary
 void addAttributes(Class clazz, Attributes attr)
           
 void addAttributes(Class clazz, ClassAttributes ca)
           
 void addAttributes(String name, Attributes attr)
           
 void addAttributes(String name, ClassAttributes ca)
           
 void addManifest(Manifest man)
           
 void addPropertyFile(File file)
           
 void addPropertyFile(String file)
           
 void addPropertyURL(URL url)
           
 ClassAttributes getAttributes(Class clazz)
           
 ClassAttributes getAttributes(String name)
           
 Enumeration getClassNames()
           
protected static ClassAttributes toClassAttributes(Attributes attr)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

STANDARD_MANIFEST_EXTENTION

public static final String STANDARD_MANIFEST_EXTENTION
The standard extention for manifest files.

classProperties

protected Hashtable classProperties
A list of each class name, with the value storing the ClassAttributes associated with the class name.
Constructor Detail

PropertyList

public PropertyList()

PropertyList

public PropertyList(String manifestName)
             throws IOException

PropertyList

public PropertyList(URL manifestURL)
             throws IOException
Method Detail

getClassNames

public Enumeration getClassNames()

getAttributes

public ClassAttributes getAttributes(String name)

getAttributes

public ClassAttributes getAttributes(Class clazz)

addAttributes

public void addAttributes(String name,
                          ClassAttributes ca)

addAttributes

public void addAttributes(Class clazz,
                          ClassAttributes ca)

addAttributes

public void addAttributes(String name,
                          Attributes attr)

addAttributes

public void addAttributes(Class clazz,
                          Attributes attr)

addPropertyURL

public void addPropertyURL(URL url)
                    throws IOException

addPropertyFile

public void addPropertyFile(String file)
                     throws IOException

addPropertyFile

public void addPropertyFile(File file)
                     throws IOException

addManifest

public void addManifest(Manifest man)

toClassAttributes

protected static ClassAttributes toClassAttributes(Attributes attr)


Written under the LGPL