com.application.areca.metadata.manifest
Class Manifest

java.lang.Object
  extended by com.application.areca.metadata.manifest.Manifest
All Implemented Interfaces:
Duplicable

public class Manifest
extends java.lang.Object
implements Duplicable

Archive's manifest implementation

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
static long CURRENT_VERSION
           
static int TYPE_BACKUP
           
static int TYPE_MERGE
           
 
Constructor Summary
Manifest(int type)
           
 
Method Summary
 void addProperty(java.lang.String name, boolean value)
           
 void addProperty(java.lang.String name, long value)
           
 void addProperty(java.lang.String name, java.lang.String value)
           
static Manifest decode(java.lang.String source)
           
 Duplicable duplicate()
          Create a copy of the Duplicable
 java.lang.String encode()
           
 boolean getBooleanProperty(java.lang.String name)
           
static long getCurrentVersion()
           
 java.util.GregorianCalendar getDate()
           
 java.lang.String getDescription()
           
 int getIntProperty(java.lang.String name)
           
 int getIntProperty(java.lang.String name, int defaultValue)
           
 long getLongProperty(java.lang.String name, long defaultValue)
           
 java.lang.String getStringProperty(java.lang.String name)
           
 java.lang.String getStringProperty(java.lang.String name, java.lang.String defaultValue)
           
 java.lang.String getTitle()
           
 int getType()
           
 java.util.Iterator propertyIterator()
           
 void setDate(java.util.GregorianCalendar date)
           
 void setDescription(java.lang.String description)
           
 void setTitle(java.lang.String title)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_VERSION

public static final long CURRENT_VERSION
See Also:
Constant Field Values

TYPE_BACKUP

public static final int TYPE_BACKUP
See Also:
Constant Field Values

TYPE_MERGE

public static final int TYPE_MERGE
See Also:
Constant Field Values
Constructor Detail

Manifest

public Manifest(int type)
Method Detail

getDate

public java.util.GregorianCalendar getDate()

setDate

public void setDate(java.util.GregorianCalendar date)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)

addProperty

public void addProperty(java.lang.String name,
                        boolean value)

addProperty

public void addProperty(java.lang.String name,
                        long value)

getType

public int getType()

setType

public void setType(int type)

getStringProperty

public java.lang.String getStringProperty(java.lang.String name)

getStringProperty

public java.lang.String getStringProperty(java.lang.String name,
                                          java.lang.String defaultValue)

getLongProperty

public long getLongProperty(java.lang.String name,
                            long defaultValue)

getIntProperty

public int getIntProperty(java.lang.String name,
                          int defaultValue)

getIntProperty

public int getIntProperty(java.lang.String name)

getBooleanProperty

public boolean getBooleanProperty(java.lang.String name)

propertyIterator

public java.util.Iterator propertyIterator()

duplicate

public Duplicable duplicate()
Description copied from interface: Duplicable
Create a copy of the Duplicable

Specified by:
duplicate in interface Duplicable

getCurrentVersion

public static final long getCurrentVersion()

encode

public java.lang.String encode()

decode

public static Manifest decode(java.lang.String source)