public static class PluginDescriptor.PluginIdent extends java.lang.Object implements XMLPersistent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_CLASSNAME |
static java.lang.String |
ID_REQUIRED_KERNEL_VERSION |
static java.lang.String |
ID_VERSION |
Constructor and Description |
---|
PluginDescriptor.PluginIdent() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAuthorPackageName()
return the author package name (first part of simple package name)
|
java.lang.String |
getClassName() |
static int |
getIndex(java.util.List<? extends PluginDescriptor.PluginIdent> list,
java.lang.String className)
Returns the index for the specified plugin in the specified list.
|
static int |
getIndex(java.util.List<PluginDescriptor.PluginIdent> list,
PluginDescriptor.PluginIdent ident)
Returns the index for the specified plugin ident in the specified list.
|
java.lang.String |
getPackageName()
return the package name
|
Version |
getRequiredKernelVersion() |
java.lang.String |
getSimpleClassName()
return the simple className
|
java.lang.String |
getSimplePackageName()
return the minimum package name (remove "icy" or/and "plugin" header)
|
Version |
getVersion() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isNewer(PluginDescriptor.PluginIdent ident) |
boolean |
isNewerOrEqual(PluginDescriptor.PluginIdent ident) |
boolean |
isOlder(PluginDescriptor.PluginIdent ident) |
boolean |
isOlderOrEqual(PluginDescriptor.PluginIdent ident) |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
loadFromXMLShort(org.w3c.dom.Node node) |
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
boolean |
saveToXMLShort(org.w3c.dom.Node node) |
void |
setClassName(java.lang.String className) |
void |
setRequiredKernelVersion(Version requiredKernelVersion) |
void |
setVersion(Version version) |
java.lang.String |
toString() |
public static final java.lang.String ID_CLASSNAME
public static final java.lang.String ID_VERSION
public static final java.lang.String ID_REQUIRED_KERNEL_VERSION
public PluginDescriptor.PluginIdent()
public static int getIndex(java.util.List<PluginDescriptor.PluginIdent> list, PluginDescriptor.PluginIdent ident)
public static int getIndex(java.util.List<? extends PluginDescriptor.PluginIdent> list, java.lang.String className)
public boolean loadFromXMLShort(org.w3c.dom.Node node)
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean saveToXMLShort(org.w3c.dom.Node node)
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public boolean isEmpty()
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- the className to setpublic java.lang.String getSimpleClassName()
public java.lang.String getPackageName()
public java.lang.String getSimplePackageName()
public java.lang.String getAuthorPackageName()
public void setVersion(Version version)
version
- the version to setpublic Version getVersion()
public Version getRequiredKernelVersion()
public void setRequiredKernelVersion(Version requiredKernelVersion)
requiredKernelVersion
- the requiredKernelVersion to setpublic boolean isOlderOrEqual(PluginDescriptor.PluginIdent ident)
public boolean isOlder(PluginDescriptor.PluginIdent ident)
public boolean isNewerOrEqual(PluginDescriptor.PluginIdent ident)
public boolean isNewer(PluginDescriptor.PluginIdent ident)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object