public class DefaultInputOutputDescriptor extends java.lang.Object implements IInputOutputDescriptor
IInputOutputDescriptor
TYPE_FILE_PATH, TYPE_INPUT_DATA_IN_MEMORY, TYPE_INPUT_STREAM_CONTENT_ACCESSOR, TYPE_OUTPUT_CONTRIBUTOR, TYPE_OUTPUT_EDITABLE_CONTENT, TYPE_OUTPUT_STREAM
Constructor and Description |
---|
DefaultInputOutputDescriptor(java.lang.String inputOutputType,
java.lang.Object inputOutput,
java.lang.String caption,
java.lang.String description)
Constructs a new DefaultInputOutputDescriptor
|
DefaultInputOutputDescriptor(java.lang.String inputOutputType,
java.lang.Object inputOutput,
java.lang.String caption,
java.lang.String description,
org.eclipse.swt.graphics.Image icon)
Constructs a new DefaultInputOutputDescriptor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this defaultInputOutputDescriptor with the incoming object to
see whether they are equal or not.
|
java.lang.String |
getCaption()
Retrieves the associated short caption to be shown as the contributor
title in the visual compare/merge editor window.
|
java.lang.String |
getDescription()
Retrieves the extended description providing detailed human-readable
information about the Input/Output, such as location, version etc.
|
org.eclipse.swt.graphics.Image |
getIcon()
Get the icon to be displayed in the corresponding contributor's pane.
|
java.lang.Object |
getInputOutput()
Retrieves the actual Input/Output object, such as file path, stream,
memory buffer etc.
|
java.lang.String |
getInputOutputType()
Retrieves the associated input/output type
|
int |
hashCode()
Overwrites super.hashcode to provide specific hashcode implementation for
DefaultInputOutputDescriptor object.
|
void |
setCaption(java.lang.String caption)
Sets the short caption to be shown as the contributor title in the visual
compare/merge editor window.
|
void |
setDescription(java.lang.String description)
Sets the extended description providing detailed human-readable
information about the Input/Output, such as location, version, etc.
|
void |
setIcon(org.eclipse.swt.graphics.Image icon)
Sets the icon to be displayed in the corresponding contributor's pane.
|
void |
setInputOutput(java.lang.Object obj) |
java.lang.String |
toString()
Provides string representation of this DefaultInputOutputDescriptor.
|
public DefaultInputOutputDescriptor(java.lang.String inputOutputType, java.lang.Object inputOutput, java.lang.String caption, java.lang.String description)
inputOutputType
- as declared in IInputOutputDescriptor: TYPE_FILE_PATH,
TYPE_INPUT_STREAM, TYPE_OUTPUT_STREAM, TYPE_MEMORY_BUFFER or
custom.inputOutput
- the actual object providing access to the informationcaption
- the short text for the input, shown to the userdescription
- the detailed description of the input, shown to the userpublic DefaultInputOutputDescriptor(java.lang.String inputOutputType, java.lang.Object inputOutput, java.lang.String caption, java.lang.String description, org.eclipse.swt.graphics.Image icon)
inputOutputType
- as declared in IInputOutputDescriptor: TYPE_FILE_PATH,
TYPE_INPUT_STREAM, TYPE_OUTPUT_STREAM, TYPE_MEMORY_BUFFER or
custom.inputOutput
- the actual object providing access to the informationcaption
- the short text for the input, shown to the userdescription
- the detailed description of the input, shown to the usericon
- to be displayed in the corresponding contributor's pane. It
may be null, in which case an icon from the
ComapareConfigaration will be taken. the Icon is to be
disposed from the outside.public java.lang.String getInputOutputType()
IInputOutputDescriptor
getInputOutputType
in interface IInputOutputDescriptor
IInputOutputDescriptor.getInputOutputType()
public java.lang.Object getInputOutput()
IInputOutputDescriptor
getInputOutput
in interface IInputOutputDescriptor
IInputOutputDescriptor.getInputOutput()
public java.lang.String getCaption()
IInputOutputDescriptor
getCaption
in interface IInputOutputDescriptor
IInputOutputDescriptor.getCaption()
public void setCaption(java.lang.String caption)
IInputOutputDescriptor
setCaption
in interface IInputOutputDescriptor
caption
- -
caption textIInputOutputDescriptor.setCaption(java.lang.String)
public java.lang.String getDescription()
IInputOutputDescriptor
getDescription
in interface IInputOutputDescriptor
IInputOutputDescriptor.getDescription()
public void setDescription(java.lang.String description)
IInputOutputDescriptor
setDescription
in interface IInputOutputDescriptor
description
- -
description textIInputOutputDescriptor.setDescription(java.lang.String)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public org.eclipse.swt.graphics.Image getIcon()
IInputOutputDescriptor
getIcon
in interface IInputOutputDescriptor
IInputOutputDescriptor.getIcon()
public void setIcon(org.eclipse.swt.graphics.Image icon)
IInputOutputDescriptor
setIcon
in interface IInputOutputDescriptor
icon
- to be used.IInputOutputDescriptor.setIcon(org.eclipse.swt.graphics.Image)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void setInputOutput(java.lang.Object obj)
setInputOutput
in interface IInputOutputDescriptor