iSeries Remote Systems
v6.0.1

com.ibm.etools.systems.as400jobsubsys.impl
Class JobCategoryImpl

java.lang.Object
  extended bycom.ibm.etools.systems.as400jobsubsys.impl.JobCategoryImpl
All Implemented Interfaces:
IAdaptable, IJobCategory

public class JobCategoryImpl
extends Object
implements IJobCategory, IAdaptable

This is a simple class to represent a job category,


Field Summary
protected static ISeriesJobCategoryAdapter _adapterInst
           
protected  List _jobs
           
protected  String _jobSubsys
           
protected  String _name
           
protected  com.ibm.etools.systems.subsystems.SubSystem _subsystem
           
static String Copyright
           
protected  Object parent
           
 
Constructor Summary
JobCategoryImpl(com.ibm.etools.systems.subsystems.SubSystem subsystem, String name, String jobSubsys)
          Constructor JobCategoryImpl.
JobCategoryImpl(com.ibm.etools.systems.subsystems.SubSystem subsystem, String name, String jobSubsys, Object parent)
          Constructor JobCategoryImpl.
 
Method Summary
 void addJob(Object job)
          Add a job object to the list of jobs for this job category
 void addJobs(Object[] jobs)
          Add a list of job objects to the list of jobs for this job category
 Object getAdapter(Class adapterType)
           
 Object[] getChildren()
          Get the list of jobs contained in this job category.
 int getChildrenNumber()
          Gets the number of jobs contained in this job category.
 String getJobSubsys()
          Gets the subsystem associated with the jobs contained in this job category.
 String getName()
          Gets the name of the job category.
 Object getParent()
           
 com.ibm.etools.systems.subsystems.SubSystem getSubSystem()
           
 String getType()
          Gets the type of the job category
 boolean hasChild()
           
 void removeAllJobs()
          Remove all jobs from the list of jobs of this job category
 void setJobs(Object[] jobs)
          Set a list of job objects as the jobs for this job category
 void setParent(Object parent)
           
 
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

_adapterInst

protected static ISeriesJobCategoryAdapter _adapterInst

_name

protected String _name

_jobSubsys

protected String _jobSubsys

_jobs

protected List _jobs

_subsystem

protected com.ibm.etools.systems.subsystems.SubSystem _subsystem

parent

protected Object parent
Constructor Detail

JobCategoryImpl

public JobCategoryImpl(com.ibm.etools.systems.subsystems.SubSystem subsystem,
                       String name,
                       String jobSubsys)
Constructor JobCategoryImpl.

Parameters:
subsystem - the iSeries job subsystem
name - the name of this job category
jobSubsys - the subsystem associated with the jobs in this category

JobCategoryImpl

public JobCategoryImpl(com.ibm.etools.systems.subsystems.SubSystem subsystem,
                       String name,
                       String jobSubsys,
                       Object parent)
Constructor JobCategoryImpl.

Parameters:
subsystem - the iSeries job subsystem
name - the name of this job category
jobSubsys - the subsystem associated with the jobs in this category
parent - the parent filter that contains this job category
Method Detail

getSubSystem

public com.ibm.etools.systems.subsystems.SubSystem getSubSystem()
Specified by:
getSubSystem in interface IJobCategory
See Also:
IJobCategory.getSubSystem()

getName

public String getName()
Gets the name of the job category.

Specified by:
getName in interface IJobCategory
Returns:
the name of the job category

getJobSubsys

public String getJobSubsys()
Gets the subsystem associated with the jobs contained in this job category.

Specified by:
getJobSubsys in interface IJobCategory
Returns:
the subsystem associated with the jobs contained in this job category.

getType

public String getType()
Gets the type of the job category

Specified by:
getType in interface IJobCategory
Returns:
the type of the job category

getParent

public Object getParent()
Specified by:
getParent in interface IJobCategory
See Also:
IJobCategory.getParent()

getChildren

public Object[] getChildren()
Get the list of jobs contained in this job category.

Specified by:
getChildren in interface IJobCategory
Returns:
the list of job objects

getChildrenNumber

public int getChildrenNumber()
Gets the number of jobs contained in this job category.

Specified by:
getChildrenNumber in interface IJobCategory
Returns:
the number of jobs contained in this job category.

hasChild

public boolean hasChild()
Specified by:
hasChild in interface IJobCategory
See Also:
IJobCategory.hasChild()

addJob

public void addJob(Object job)
Add a job object to the list of jobs for this job category

Specified by:
addJob in interface IJobCategory
Parameters:
job - the job object to add

addJobs

public void addJobs(Object[] jobs)
Add a list of job objects to the list of jobs for this job category

Specified by:
addJobs in interface IJobCategory
Parameters:
jobs - the list of job objects to add

removeAllJobs

public void removeAllJobs()
Remove all jobs from the list of jobs of this job category


setJobs

public void setJobs(Object[] jobs)
Set a list of job objects as the jobs for this job category

Specified by:
setJobs in interface IJobCategory
Parameters:
jobs - the list of job objects to set

getAdapter

public Object getAdapter(Class adapterType)
Specified by:
getAdapter in interface IAdaptable
See Also:
IAdaptable.getAdapter(Class)

setParent

public void setParent(Object parent)
Specified by:
setParent in interface IJobCategory

iSeries Remote Systems
v6.0.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.