org.eclipse.rse.core.model
Class AbstractSystemResourceSet
java.lang.Object
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.
AbstractSystemResourceSet
public AbstractSystemResourceSet()
AbstractSystemResourceSet
public AbstractSystemResourceSet(
Object[] set)
AbstractSystemResourceSet
public AbstractSystemResourceSet(
List set)
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
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.