|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.core.model.AbstractSystemResourceSet
public abstract class AbstractSystemResourceSet
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 |
|---|
public AbstractSystemResourceSet()
public AbstractSystemResourceSet(Object[] set)
public AbstractSystemResourceSet(List set)
| Method Detail |
|---|
public int size()
ISystemResourceSet
size in interface ISystemResourceSetpublic Object get(String absoluteName)
ISystemResourceSet
get in interface ISystemResourceSetabsoluteName - the path of the resource to return
public Object get(int index)
ISystemResourceSet
get in interface ISystemResourceSetindex - the index of the resource to return
public List getResourceSet()
ISystemResourceSet
getResourceSet in interface ISystemResourceSetpublic void addResource(Object src)
public void removeResource(Object src)
public String pathFor(Object resource)
ISystemResourceSet
pathFor in interface ISystemResourceSetresource - the resource to return the path for
public String toString()
toString in class Objectpublic void setMessage(SystemMessage message)
public SystemMessage getMessage()
ISystemResourceSet
getMessage in interface ISystemResourceSetpublic boolean hasMessage()
ISystemResourceSet
hasMessage in interface ISystemResourceSetpublic boolean hasByteSize()
ISystemResourceSet
hasByteSize in interface ISystemResourceSetpublic long byteSize()
ISystemResourceSet
byteSize in interface ISystemResourceSetpublic void setByteSize(long byteSize)
ISystemResourceSet
setByteSize in interface ISystemResourceSetbyteSize - the number of bytes
|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||