Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.subsystems.shells.core.model
Class RemoteOutput


java.lang.Object
  extended by 
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


Field Summary
protected  int _endOffset
           
protected  int _line
           
protected   String _path
           
protected  int _startOffset
           
protected   String _text
           
protected   String _type
           
 
Constructor Summary
RemoteOutput ( Object parent, String type)
          Constructor
 
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 ()
           
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_type

protected 
String _type

_text

protected 
String _text

_path

protected 
String _path

_line

protected int _line

_startOffset

protected int _startOffset

_endOffset

protected int _endOffset
Constructor Detail

RemoteOutput

public RemoteOutput(
Object parent,
                    
String type)
Constructor

Parameters:
parent - container of the output
Method Detail

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

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire