Administration Tools

org.topcased.service.updatesiteproject
Class SourceDestination

java.lang.Object
  extended by org.topcased.service.updatesiteproject.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 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
static int STILL_EXIST
          Define the type of the file as still present in the destination
 
Constructor Summary
SourceDestination(java.lang.String name, java.lang.String source, java.lang.String destination)
          Constructor
SourceDestination(java.lang.String name, java.lang.String source, java.lang.String destination, int state)
          Constructor with the state of file
 
Method Summary
 java.lang.String getDestination()
          Returns string of the destination path
 java.lang.String getName()
          Returns SourceDestination id
 java.lang.String getSource()
          Returns string of the source path
 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 stateSD)
           
 
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

STILL_EXIST

public static final int STILL_EXIST
Define the type of the file as still 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

SourceDestination

public SourceDestination(java.lang.String name,
                         java.lang.String source,
                         java.lang.String destination,
                         int state)
Constructor with the state of file

Parameters:
name -
source -
destination -
state -
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

getDestination

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

Returns:
destination

getState

public int getState()
Returns:
Returns the stateSD.

setState

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

Administration Tools

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