RSE
Release 2.0

org.eclipse.rse.subsystems.files.core.model
Class SystemFileTransferModeMapping

java.lang.Object
  extended by org.eclipse.rse.subsystems.files.core.model.SystemFileTransferModeMapping
All Implemented Interfaces:
Cloneable, ISystemFileTransferModeMapping

public class SystemFileTransferModeMapping
extends Object
implements ISystemFileTransferModeMapping, Cloneable

An internal class. Clients must not instantiate or subclass it.


Constructor Summary
SystemFileTransferModeMapping(String extension)
          Constructor for SystemFileTransferModeMapping.
SystemFileTransferModeMapping(String name, String extension)
          Constructor for SystemFileTransferModeMapping.
 
Method Summary
 Object clone()
          Clone this object
 String getExtension()
          Get the extension
 String getLabel()
          Get the label
 String getName()
          Get the name
 boolean isBinary()
          Returns if the mapping is binary
 boolean isText()
          Returns if the mapping is text
 void setAsBinary()
          Set whether transfer mode is binary
 void setAsText()
          Set whether transfer mode is text
 void setExtension(String extension)
          Set the extension
 void setName(String name)
          Set the name
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemFileTransferModeMapping

public SystemFileTransferModeMapping(String extension)
Constructor for SystemFileTransferModeMapping. The name is set to *.

Parameters:
extension - the extension. Can be null.

SystemFileTransferModeMapping

public SystemFileTransferModeMapping(String name,
                                     String extension)
Constructor for SystemFileTransferModeMapping.

Parameters:
name - the name. If the name is null or if it is an empty string, it is set to *.
extension - the extension. Can be null.
Method Detail

getExtension

public String getExtension()
Description copied from interface: ISystemFileTransferModeMapping
Get the extension

Specified by:
getExtension in interface ISystemFileTransferModeMapping
Returns:
the extension for the mapping
See Also:
ISystemFileTransferModeMapping.getExtension()

getLabel

public String getLabel()
Description copied from interface: ISystemFileTransferModeMapping
Get the label

Specified by:
getLabel in interface ISystemFileTransferModeMapping
Returns:
the label for the mapping
See Also:
ISystemFileTransferModeMapping.getLabel()

getName

public String getName()
Description copied from interface: ISystemFileTransferModeMapping
Get the name

Specified by:
getName in interface ISystemFileTransferModeMapping
Returns:
the name for the mapping
See Also:
ISystemFileTransferModeMapping.getName()

isBinary

public boolean isBinary()
Description copied from interface: ISystemFileTransferModeMapping
Returns if the mapping is binary

Specified by:
isBinary in interface ISystemFileTransferModeMapping
Returns:
true if binary, false if text
See Also:
ISystemFileTransferModeMapping.isBinary()

isText

public boolean isText()
Description copied from interface: ISystemFileTransferModeMapping
Returns if the mapping is text

Specified by:
isText in interface ISystemFileTransferModeMapping
Returns:
true if text, false if binary
See Also:
ISystemFileTransferModeMapping.isText()

setAsBinary

public void setAsBinary()
Set whether transfer mode is binary


setAsText

public void setAsText()
Set whether transfer mode is text


setName

public void setName(String name)
Set the name


setExtension

public void setExtension(String extension)
Set the extension


clone

public Object clone()
Clone this object

Overrides:
clone in class Object

RSE
Release 2.0

Copyright (c) IBM Corporation and others 2000, 2007. All Rights Reserved.