|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.project.ProjectSummary
public class ProjectSummary
This is a helper class to represent summaries of known project files. This way the tool can keep a lot of projects in memory without having to keep the entire project file.
| Field Summary | |
|---|---|
static long |
DEFAULT_NUMERIC_VALUE
Need a consistent format so can easily test whether data was found. |
static java.lang.String |
DEFAULT_STRING_VALUE
Need a consistent format so can easily test whether data was found. |
java.lang.String |
description
|
long |
files
|
BigHash |
hash
|
boolean |
isEncrypted
|
boolean |
isHidden
|
boolean |
isProject
|
boolean |
isPublished
|
BigHash |
newVersion
|
BigHash |
oldVersion
|
boolean |
shareMetaDataIfEncrypted
|
long |
size
|
java.lang.String |
title
|
java.lang.String |
type
|
java.lang.String |
uploader
|
long |
uploadTimestamp
|
| Constructor Summary | |
|---|---|
ProjectSummary(BigHash hash)
|
|
ProjectSummary(BigHash hash,
java.lang.String title,
java.lang.String description,
long size,
long files,
long uploadTimestamp,
java.lang.String uploader,
boolean shareMetaDataIfEncrypted)
|
|
ProjectSummary(MetaData md,
BigHash hash)
|
|
ProjectSummary(ProjectFile pf,
MetaData md,
BigHash hash)
|
|
| Method Summary | |
|---|---|
boolean |
hasNewVersion()
Returns true if this has a new version in MetaData annotation |
boolean |
hasOldVersion()
Returns true if this has an old version in MetaData annotation |
boolean |
isMetaDataParsed()
|
boolean |
isProjectFileParsed()
|
boolean |
isProjectInformationAvailable()
Returns true if the project information is available. |
void |
parseMetaData(MetaData md,
BigHash hash)
Parses out the meta data info into this project summary |
void |
parseProjectFile(ProjectFile pf)
Parses out the project file info into this project summary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_STRING_VALUE
public static final long DEFAULT_NUMERIC_VALUE
public java.lang.String title
public java.lang.String description
public java.lang.String uploader
public java.lang.String type
public long size
public long files
public long uploadTimestamp
public BigHash hash
public BigHash oldVersion
public BigHash newVersion
public boolean isEncrypted
public boolean isPublished
public boolean isHidden
public boolean shareMetaDataIfEncrypted
public boolean isProject
| Constructor Detail |
|---|
public ProjectSummary(BigHash hash)
public ProjectSummary(MetaData md,
BigHash hash)
public ProjectSummary(ProjectFile pf,
MetaData md,
BigHash hash)
public ProjectSummary(BigHash hash,
java.lang.String title,
java.lang.String description,
long size,
long files,
long uploadTimestamp,
java.lang.String uploader,
boolean shareMetaDataIfEncrypted)
| Method Detail |
|---|
public void parseMetaData(MetaData md,
BigHash hash)
Parses out the meta data info into this project summary
public void parseProjectFile(ProjectFile pf)
Parses out the project file info into this project summary
public boolean hasOldVersion()
public boolean hasNewVersion()
public boolean isProjectInformationAvailable()
Returns true if the project information is available. Otherwise, must download.
public boolean isMetaDataParsed()
public boolean isProjectFileParsed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||