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

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.core.model
Class AbstractSystemResourceSet

java.lang.Object
  extended by 
org.eclipse.rse.core.model.AbstractSystemResourceSet
All Implemented Interfaces:
ISystemResourceSet
Direct Known Subclasses:
SystemRemoteElementResourceSet, SystemRemoteResourceSet, SystemWorkspaceResourceSet

public abstract class AbstractSystemResourceSet
extends Object
implements ISystemResourceSet

The common abstract implementation of a ISystemResourceSet. Extenders can use this to inherit the basic implementations.


Constructor Summary
AbstractSystemResourceSet ()
           
AbstractSystemResourceSet ( List set)
           
AbstractSystemResourceSet ( Object[] set)
           
 
Method Summary
 void addResource ( Object src)
           
 long byteSize ()
          Returns the total number of bytes in this collection of resources
  Object get (int index)
          Returns the resource at the specified index
  Object get ( String absoluteName)
          Returns the resource in the set with the specified absoluteName
  SystemMessage getMessage ()
          Returns a message if a problem occurs when using this resource set
  List getResourceSet ()
          Returns the set of resources as a List
 boolean hasByteSize ()
          Indicates whether the set of resources has a size in bytes greater than zero
 boolean hasMessage ()
          Indicates whether a message was set corresponding to this resource set during an operation against it.
  String pathFor ( Object resource)
          Returns the path of a specified resource.
 void removeResource ( Object src)
           
 void setByteSize (long byteSize)
          Sets the total number of bytes in this collection of resources
 void setMessage ( SystemMessage message)
           
 int size ()
          Returns the number of resources in the set
  String toString ()
           
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSystemResourceSet

public AbstractSystemResourceSet()

AbstractSystemResourceSet

public AbstractSystemResourceSet(
Object[] set)

AbstractSystemResourceSet

public AbstractSystemResourceSet(
List set)
Method Detail

size

public int size()
Description copied from interface: ISystemResourceSet
Returns the number of resources in the set

Specified by:
size in interface ISystemResourceSet
Returns:
the number of resources in the set

get

public 
Object get(
String absoluteName)
Description copied from interface: ISystemResourceSet
Returns the resource in the set with the specified absoluteName

Specified by:
get in interface ISystemResourceSet
Parameters:
absoluteName - the path of the resource to return
Returns:
the resource

get

public 
Object get(int index)
Description copied from interface: ISystemResourceSet
Returns the resource at the specified index

Specified by:
get in interface ISystemResourceSet
Parameters:
index - the index of the resource to return
Returns:
the resource

getResourceSet

public 
List getResourceSet()
Description copied from interface: ISystemResourceSet
Returns the set of resources as a List

Specified by:
getResourceSet in interface ISystemResourceSet
Returns:
the set of resources as a List

addResource

public void addResource(
Object src)

removeResource

public void removeResource(
Object src)

pathFor

public 
String pathFor(
Object resource)
Description copied from interface: ISystemResourceSet
Returns the path of a specified resource. This is the same path that is used be the get(absoluteName) method to retrieve the object

Specified by:
pathFor in interface ISystemResourceSet
Parameters:
resource - the resource to return the path for
Returns:
the path of the resource

toString

public 
String toString()
Overrides:
toString in class Object

setMessage

public void setMessage(
SystemMessage message)

getMessage

public 
SystemMessage getMessage()
Description copied from interface: ISystemResourceSet
Returns a message if a problem occurs when using this resource set

Specified by:
getMessage in interface ISystemResourceSet
Returns:
the message

hasMessage

public boolean hasMessage()
Description copied from interface: ISystemResourceSet
Indicates whether a message was set corresponding to this resource set during an operation against it.

Specified by:
hasMessage in interface ISystemResourceSet
Returns:
true if there is a message

hasByteSize

public boolean hasByteSize()
Description copied from interface: ISystemResourceSet
Indicates whether the set of resources has a size in bytes greater than zero

Specified by:
hasByteSize in interface ISystemResourceSet
Returns:
true if there are more than 0 bytes in this set

byteSize

public long byteSize()
Description copied from interface: ISystemResourceSet
Returns the total number of bytes in this collection of resources

Specified by:
byteSize in interface ISystemResourceSet
Returns:
the number of bytes

setByteSize

public void setByteSize(long byteSize)
Description copied from interface: ISystemResourceSet
Sets the total number of bytes in this collection of resources

Specified by:
setByteSize in interface ISystemResourceSet
Parameters:
byteSize - the number of bytes

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