|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freehep.application.studio.LibInfo
public class LibInfo
Library file descriptor.
Typically, instances of this class describe either libraries referenced in a plugin descriptor, or library files installed in one of the extension directories.
If a library descriptor is a part of a plugin descriptor (obtained from a list returned by
PluginInfo.getLibraries()
, its location and href are set
to corresponding fields in the plugin descriptor. version is only set if the
location is in valid id-version.ext format. If not, it remains undefined,
end the ID is set to location without extension.
All other fields are undefined, and corresponding getters return null.
If a library descriptor corresponds to a file on disk, its location is set to the file name (without extension). If the file name is in valid ID-version format, it is parsed to set both id and version. Otherwise, ID is set to the file name and the version remains undefined. dir corresponds to the installation directory, and file is an absolute abstract path. All other fields are undefined, and corresponding getters return null.
Constructor Summary | |
---|---|
LibInfo(File file,
PluginDir dir)
Constructs library descriptor given a file name and an installation directory. |
|
LibInfo(LibInfo other)
Copy constructor. |
|
LibInfo(String location,
String href)
Constructs library descriptor from information found in a plugin descriptor. |
Method Summary | |
---|---|
boolean |
checkMavenID()
Attempts to read Maven manifest and set this library id and version to maven artifact and version. |
boolean |
equals(Object o)
|
PluginDir |
getDir()
|
File |
getFile()
|
String |
getHref()
|
String |
getId()
|
String |
getLocation()
|
String |
getVersion()
|
int |
hashCode()
|
void |
setDir(PluginDir dir)
|
void |
setFile(File file)
|
void |
setHref(String href)
|
void |
setId(String id)
|
void |
setLocation(String location)
|
void |
setVersion(String version)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LibInfo(String location, String href)
public LibInfo(File file, PluginDir dir)
public LibInfo(LibInfo other)
Method Detail |
---|
public String getId()
public void setId(String id)
public String getVersion()
public void setVersion(String version)
public String getLocation()
public void setLocation(String location)
public String getHref()
public void setHref(String href)
public PluginDir getDir()
public void setDir(PluginDir dir)
public File getFile()
public void setFile(File file)
public final boolean checkMavenID()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |