com.ibm.cics.server
Class Resource
java.lang.Object
|
+--com.ibm.cics.server.API
|
+--com.ibm.cics.server.Resource
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- RemotableResource
- public abstract class Resource
- extends API
- implements java.io.Serializable
This abstract class provides the common implementation for named resources.
It provides the following properties:
-
name
-
A
String
which is the name of the CICS resource
(program, TSQ etc.).
-
description
-
A
String
which is a brief description of the resource.
- See Also:
- Serialized Form
Constructor Summary |
Resource()
Construct a default resource. |
Method Summary |
java.lang.String |
getDescription()
Return the description of the resource. |
java.lang.String |
getName()
Return the name of the CICS resource. |
void |
setDescription(java.lang.String description)
Sets the description of the resource. |
void |
setName(java.lang.String name)
Sets the CICS resource name corresponding to this object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
public Resource()
- Construct a default resource.
getDescription
public java.lang.String getDescription()
- Return the description of the resource.
- Returns:
- the resource description
getName
public java.lang.String getName()
- Return the name of the CICS resource.
- Returns:
- the resource name
setDescription
public void setDescription(java.lang.String description)
- Sets the description of the resource.
- Parameters:
description
- the description of the CICS resource
setName
public void setName(java.lang.String name)
throws java.lang.NullPointerException
- Sets the CICS resource name corresponding to this object.
- Parameters:
name
- the name of the CICS resource