Administration Tools

org.topcased.service.updatesite
Class SourceDestination

java.lang.Object
  extended by org.topcased.service.updatesite.SourceDestination

public class SourceDestination
extends java.lang.Object

SourceDestination Class enables to put and take the path source and path destination of a file or a directory and the state of the file as missing, still installed, will be installed see the wizard of UpdateSite


Field Summary
static int ALREADY_EXIST
          Define the type of the file as already present in the destination
static int DONT_EXIST
          Define the type of the file as no present in the destination
static int MISSING
          Define the type of the file as missing in the source and in the destination
static int NO_STATE
          Define the type of the file as no type defined
 
Constructor Summary
SourceDestination(java.lang.String name, java.lang.String source, java.lang.String destination)
          Constructor
 
Method Summary
 java.lang.String getDestination()
          Returns string of the destination path
 java.io.File getDestinationFile()
          Returns the destination file
 java.lang.String getName()
          Returns SourceDestination id
 java.lang.String getSource()
          Returns string of the source path
 java.io.File getSourceFile()
          Returns the source file
 int getState()
           
 void setDestination(java.lang.String destination)
          Set the destination
 void setSource(java.lang.String source)
          Set the source
 void setSourceDestinationId(java.lang.String name)
          Set Source Destiantion Id
 void setState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_STATE

public static final int NO_STATE
Define the type of the file as no type defined

See Also:
Constant Field Values

MISSING

public static final int MISSING
Define the type of the file as missing in the source and in the destination

See Also:
Constant Field Values

ALREADY_EXIST

public static final int ALREADY_EXIST
Define the type of the file as already present in the destination

See Also:
Constant Field Values

DONT_EXIST

public static final int DONT_EXIST
Define the type of the file as no present in the destination

See Also:
Constant Field Values
Constructor Detail

SourceDestination

public SourceDestination(java.lang.String name,
                         java.lang.String source,
                         java.lang.String destination)
Constructor

Parameters:
name - : name of the file or of the directory
source - : source path
destination - : destination path
Method Detail

setSourceDestinationId

public void setSourceDestinationId(java.lang.String name)
Set Source Destiantion Id

Parameters:
name - : file or repository

setSource

public void setSource(java.lang.String source)
Set the source

Parameters:
source -

setDestination

public void setDestination(java.lang.String destination)
Set the destination

Parameters:
destination -

getName

public java.lang.String getName()
Returns SourceDestination id

Returns:
name

getSource

public java.lang.String getSource()
Returns string of the source path

Returns:
source

getSourceFile

public java.io.File getSourceFile()
Returns the source file

Returns:
source

getDestination

public java.lang.String getDestination()
Returns string of the destination path

Returns:
destination

getDestinationFile

public java.io.File getDestinationFile()
Returns the destination file

Returns:
destination

getState

public int getState()
Returns:
Returns the stateSD.

setState

public void setState(int state)
Parameters:
state - The stateSD to set.

Administration Tools

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.