org.eclipse.rse.subsystems.shells.core.model
Class RemoteOutput
java.lang.Object
org.eclipse.rse.subsystems.shells.core.model.RemoteOutput
-
All Implemented Interfaces:
-
IAdaptable,
IRemoteLineReference,
IRemoteOutput
-
Direct Known Subclasses:
-
RemoteError
-
public class RemoteOutput
- extends
Object
- implements
IAdaptable,
IRemoteOutput
The RemoteOuputImpl class is an implementation of IRemoteOutput.
It is used for storing information about a particular line of output
Method Summary
|
String
|
getAbsolutePath
()
Gets the absolute path of an associated file if applicable |
Object
|
getAdapter
(
Class adapterType)
Gets the associated adapter for this output |
int
|
getCharEnd
()
Gets the associated char end offset for the line |
int
|
getCharStart
()
Gets the associated char start offset for the line |
Object[]
|
getChildren
()
Returns children of the output, if applicable |
int
|
getIndex
()
Gets the index of this object within a command object |
String
|
getLabel
()
Gets the displayable label for this output |
int
|
getLine
()
Gets the associated line within a file if applicable |
Object
|
getParent
()
Gets the containing object for this output |
String
|
getText
()
Gets the displayable text for this output |
String
|
getType
()
Gets the type of this output |
boolean
|
hasChildren
()
Indicates whether this output has children |
void
|
setAbsolutePath
(
String path)
Sets the absolute path for an associated file if applicable |
void
|
setCharEnd
(int offset)
set the end offset for the line |
void
|
setCharStart
(int offset)
set the start offset for the line |
void
|
setLine
(int line)
Sets the associated line number for a particular source if applicable |
void
|
setText
(
String text)
Sets the displayable text for the remote output |
void
|
setType
(
String type)
Sets the type of remote output |
String
|
toString
()
|
_type
protected
String _type
_text
protected
String _text
_path
protected
String _path
_line
protected int _line
_startOffset
protected int _startOffset
_endOffset
protected int _endOffset
RemoteOutput
public RemoteOutput(
Object parent,
String type)
- Constructor
-
Parameters:
-
parent
- container of the output
setType
public void setType(
String type)
- Sets the type of remote output
-
-
-
Parameters:
-
type
-
setText
public void setText(
String text)
- Sets the displayable text for the remote output
-
-
-
Parameters:
-
text
-
setAbsolutePath
public void setAbsolutePath(
String path)
- Sets the absolute path for an associated file if applicable
-
-
-
Parameters:
-
path
-
setLine
public void setLine(int line)
- Sets the associated line number for a particular source if applicable
-
-
-
Parameters:
-
line
-
getType
public
String getType()
- Gets the type of this output
-
-
Specified by:
-
getType
in interface
IRemoteOutput
-
-
Returns:
- the output type
getText
public
String getText()
- Gets the displayable text for this output
-
-
Specified by:
-
getText
in interface
IRemoteOutput
-
-
Returns:
- the output text
getIndex
public int getIndex()
- Gets the index of this object within a command object
-
-
Specified by:
-
getIndex
in interface
IRemoteOutput
-
-
Returns:
- the index within the command
getAbsolutePath
public
String getAbsolutePath()
- Gets the absolute path of an associated file if applicable
-
-
Specified by:
-
getAbsolutePath
in interface
IRemoteLineReference
-
-
Returns:
- the path of the referenced file if there is one
getLine
public int getLine()
- Gets the associated line within a file if applicable
-
-
Specified by:
-
getLine
in interface
IRemoteLineReference
-
-
Returns:
- the line number within a referenced file if there is one.
getParent
public
Object getParent()
- Gets the containing object for this output
-
-
Specified by:
-
getParent
in interface
IRemoteLineReference
-
-
Returns:
- the parent object
getAdapter
public
Object getAdapter(
Class adapterType)
- Gets the associated adapter for this output
-
-
Specified by:
-
getAdapter
in interface
IAdaptable
-
getChildren
public
Object[] getChildren()
- Returns children of the output, if applicable
-
-
-
Returns:
- null for this implementation
hasChildren
public boolean hasChildren()
- Indicates whether this output has children
-
-
-
Returns:
- false since there are no children
getLabel
public
String getLabel()
- Gets the displayable label for this output
-
-
-
Returns:
- the label
setCharStart
public void setCharStart(int offset)
- set the start offset for the line
-
-
-
Parameters:
-
offset
-
setCharEnd
public void setCharEnd(int offset)
- set the end offset for the line
-
-
-
Parameters:
-
offset
-
getCharStart
public int getCharStart()
- Gets the associated char start offset for the line
-
-
Specified by:
-
getCharStart
in interface
IRemoteLineReference
-
-
Returns:
- the offset
getCharEnd
public int getCharEnd()
- Gets the associated char end offset for the line
-
-
Specified by:
-
getCharEnd
in interface
IRemoteLineReference
-
-
Returns:
- the offset
toString
public
String toString()
-
-
Overrides:
-
toString
in class
Object
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.