com.jp.protection.priv.products
Class DigestEntry

java.lang.Object
  extended by com.jp.protection.priv.products.DigestEntry
All Implemented Interfaces:
DigestEntryBase, java.io.Serializable, java.lang.Cloneable

public class DigestEntry
extends java.lang.Object
implements DigestEntryBase

This class defines single digest entry that holds archive name and archive entry name used to calculate digest value during integrity check

See Also:
Serialized Form

Field Summary
protected  java.lang.String fArchiveName
           
protected  java.lang.String fEntryName
           
protected  int fType
           
static long serialVersionUID
           
 
Fields inherited from interface com.jp.protection.priv.products.DigestEntryBase
TYPE_CLASSES_ENTRY, TYPE_FILE, TYPE_JAR_ENTRY
 
Constructor Summary
DigestEntry()
          Creates a new instance of the DigestEntry
DigestEntry(java.lang.String aArchiveName, java.lang.String aEntryName)
          Creates a new instance of the DigestEntry
DigestEntry(java.lang.String aArchiveName, java.lang.String aEntryName, int aType)
          Creates a new instance of the DigestEntry
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getArchiveName()
          Returns the name of the archive to find class in
 java.lang.String getEntryName()
          Returns the entry name
 java.lang.String getString()
           
 int getType()
           
 java.lang.String getTypeStr()
           
 void setArchiveName(java.lang.String aArchiveName)
          Specifies name of archive to find entry in
 void setEntryName(java.lang.String aEntryName)
          Specifies the entry name
 void setType(int aType)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

fArchiveName

protected java.lang.String fArchiveName

fEntryName

protected java.lang.String fEntryName

fType

protected int fType
Constructor Detail

DigestEntry

public DigestEntry()
Creates a new instance of the DigestEntry


DigestEntry

public DigestEntry(java.lang.String aArchiveName,
                   java.lang.String aEntryName)
Creates a new instance of the DigestEntry

Parameters:
aArchiveName - name of the archive
aEntryName - name of the entry

DigestEntry

public DigestEntry(java.lang.String aArchiveName,
                   java.lang.String aEntryName,
                   int aType)
Creates a new instance of the DigestEntry

Parameters:
aArchiveName - name of the archive
aEntryName - name of the entry
aType - entry type
Method Detail

getArchiveName

public java.lang.String getArchiveName()
Returns the name of the archive to find class in

Specified by:
getArchiveName in interface DigestEntryBase
Returns:
the name of the archive

setArchiveName

public void setArchiveName(java.lang.String aArchiveName)
Specifies name of archive to find entry in

Specified by:
setArchiveName in interface DigestEntryBase
Parameters:
aArchiveName - name of the archive

getEntryName

public java.lang.String getEntryName()
Returns the entry name

Specified by:
getEntryName in interface DigestEntryBase
Returns:
entry name

setEntryName

public void setEntryName(java.lang.String aEntryName)
Specifies the entry name

Specified by:
setEntryName in interface DigestEntryBase
Parameters:
aEntryName - entry name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getType

public int getType()
Specified by:
getType in interface DigestEntryBase

setType

public void setType(int aType)
Specified by:
setType in interface DigestEntryBase

getTypeStr

public java.lang.String getTypeStr()
Specified by:
getTypeStr in interface DigestEntryBase

getString

public java.lang.String getString()

clone

public java.lang.Object clone()
Specified by:
clone in interface DigestEntryBase
Overrides:
clone in class java.lang.Object