Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.perspective.model
Class AbstractISeriesContainer

java.lang.Object
  extended by com.ibm.etools.iseries.perspective.model.AbstractISeriesResource
      extended by com.ibm.etools.iseries.perspective.model.AbstractISeriesParent
          extended by com.ibm.etools.iseries.perspective.model.AbstractISeriesContainer
All Implemented Interfaces:
IISeriesResourceActionFilter
Direct Known Subclasses:
AbstractISeriesIFSContainer, AbstractISeriesIFSRoot, AbstractISeriesNativeLibrary, AbstractISeriesNativeObject, AbstractISeriesNativeRoot

public abstract class AbstractISeriesContainer
extends AbstractISeriesParent

The only special case where baseIContainer is associated with a Project instead of and IFolder is in the subclass AbstractiSeriesNativeFolder( REVISIT ).
In that class, if the root is collapsed up to the project, then baseIContainer references that project, otherwise baseIContainer references the IFolder with the "native root name" as it's name.
Also, we needed an extra flag here to cache at runtime whether or not a container inludes remote objects. This flag is false by default. This flag is set back to false if no remote objects are retrieved. This can be used for error checking. We also needed to cache remote objects for performance. if the cache Vector is null; it means that remote objects have not been retrieved, and so if remoteIncluded is true, a synchronize will retieve the remote objects.


Field Summary
protected  IContainer baseIContainer
           
protected  Vector<IQSYSResource> cachedRemoteObjects
           
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.perspective.model.AbstractISeriesResource
CONTAINER, IFS_CONTAINER, IFS_MEMBER, IFS_ROOT, LOCAL, LOCAL_AND_REMOTE, MEMBER, NATIVE_LIBRARY, NATIVE_MEMBER, NATIVE_OBJECT, NATIVE_ROOT, PROJECT, PROJECT_ROOT, REMOTE
 
Fields inherited from interface com.ibm.etools.iseries.perspective.model.IISeriesResourceActionFilter
IS_LEAF_OBJECT, IS_LOCAL, IS_NATIVE, IS_SOURCE_FILE, IS_SYNCHRONIZED, METADATA_LEVEL
 
Constructor Summary
AbstractISeriesContainer()
           
 
Method Summary
 void clearRemoteObjectsCache()
          Sets the value of the cachedRemoteObjects property.
 IContainer getBaseIContainer()
          Access method for the baseIContainer property.
 Vector<IQSYSResource> getCachedRemoteObjects()
          Access method for the cachedRemoteObjects property.
abstract  AbstractISeriesResource[] getChildren()
           
 boolean getRemoteIncluded()
          Determines if the remoteIncluded property is true.
 int getType()
          Returns the type of this resource.
The returned value will be one of static constants defined in this class.
abstract  boolean hasChildren()
           
 void setBaseIContainer(IContainer aBaseIContainer)
          Sets the value of the baseIContainer property.
 void setRemoteIncluded(boolean aRemoteIncluded)
          Sets the value of the remoteIncluded property.
 
Methods inherited from class com.ibm.etools.iseries.perspective.model.AbstractISeriesParent
collectAllChildren, findiSeriesResource
 
Methods inherited from class com.ibm.etools.iseries.perspective.model.AbstractISeriesResource
accept, getAdapter, getBaseIResource, getISeriesProject, getIsLocal, getIsNative, getIsSynchronized, getLocationMask, getMarkerSeverity, getParent, getPropertiesModel, refreshPropertiesModel, setIsLocal, setIsNative, setIsSynchronized, synchronize, testAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

cachedRemoteObjects

protected Vector<IQSYSResource> cachedRemoteObjects

baseIContainer

protected IContainer baseIContainer
Constructor Detail

AbstractISeriesContainer

public AbstractISeriesContainer()
Method Detail

getChildren

public abstract AbstractISeriesResource[] getChildren()
Specified by:
getChildren in class AbstractISeriesParent

hasChildren

public abstract boolean hasChildren()

getType

public int getType()
Description copied from class: AbstractISeriesResource
Returns the type of this resource.
The returned value will be one of static constants defined in this class.

Specified by:
getType in class AbstractISeriesResource
Returns:
the type of this resource.

getRemoteIncluded

public boolean getRemoteIncluded()
Determines if the remoteIncluded property is true.

Returns:
true if the remoteIncluded property is true

setRemoteIncluded

public void setRemoteIncluded(boolean aRemoteIncluded)
Sets the value of the remoteIncluded property.

Parameters:
aRemoteIncluded - the new value of the remoteIncluded property

getCachedRemoteObjects

public Vector<IQSYSResource> getCachedRemoteObjects()
Access method for the cachedRemoteObjects property.

Returns:
the current value of the cachedRemoteObjects property

clearRemoteObjectsCache

public void clearRemoteObjectsCache()
Sets the value of the cachedRemoteObjects property.


getBaseIContainer

public IContainer getBaseIContainer()
Access method for the baseIContainer property.

Returns:
the current value of the baseIContainer property

setBaseIContainer

public void setBaseIContainer(IContainer aBaseIContainer)
Sets the value of the baseIContainer property.

Parameters:
aBaseIContainer - the new value of the baseIContainer property

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.