Remote Systems
v6.4.1

com.ibm.etools.systems.subsystems.impl
Class RemoteOutputImpl

java.lang.Object
  extended bycom.ibm.etools.systems.subsystems.impl.RemoteOutputImpl
All Implemented Interfaces:
IAdaptable, IRemoteLineReference, IRemoteOutput
Direct Known Subclasses:
RemoteErrorImpl, UniversalOutputImpl

public class RemoteOutputImpl
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
           
static String Copyright
           
 
Constructor Summary
RemoteOutputImpl(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_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

RemoteOutputImpl

public RemoteOutputImpl(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

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.