public class PackageRepositoryEntry
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PackageRepositoryEntry()
The default constructor.
|
PackageRepositoryEntry(java.lang.String fileName,
java.lang.String packageName,
ProtectionLevel protectionLevel,
java.lang.String version)
Initializes a new instance of the
PackageRepositoryEntry class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static PackageRepositoryEntry |
fromStringArray(java.lang.String[] array) |
java.lang.String |
getFileName()
Retrieves the name of the file containing the package.
|
java.lang.String |
getFilePath()
Retrieves the path to a package.
|
java.lang.String |
getPackageName()
Retrieves the name of the package.
|
java.lang.String |
getProtectionLevel()
Retrieves the protection level for the package.
|
java.lang.String |
getVersion()
Retrieves the version of the package.
|
int |
hashCode() |
void |
setFileName(java.lang.String fileName)
Sets the file name.
|
void |
setPackageName(java.lang.String packageName)
Sets the package name.
|
void |
setProtectionLevel(java.lang.String protectionLevel)
Sets the protection level.
|
void |
setVersion(java.lang.String version)
Sets the package version.
|
java.lang.String |
toString() |
java.lang.String[] |
toStringArray() |
public PackageRepositoryEntry(java.lang.String fileName, java.lang.String packageName, ProtectionLevel protectionLevel, java.lang.String version)
PackageRepositoryEntry
class.fileName
- The name of the file containing the package. Can be a .zip file or a .tar.gz file.packageName
- The name of the package.protectionLevel
- The protection level of the package. Can be either Protected or Unprotected.version
- The version of the package.public PackageRepositoryEntry()
public java.lang.String getPackageName()
public void setPackageName(java.lang.String packageName)
packageName
- A string containing the package name.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- A string containing the package version.public java.lang.String getProtectionLevel()
public void setProtectionLevel(java.lang.String protectionLevel)
protectionLevel
- A string specifying the protection level.public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- The file name.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getFilePath()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] toStringArray()
public static PackageRepositoryEntry fromStringArray(java.lang.String[] array)