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.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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.
PropertyList
public PropertyList()
PropertyList
public PropertyList(String manifestName)
throws IOException
PropertyList
public PropertyList(URL manifestURL)
throws IOException
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