uk.co.petertribble.pkgview
Class MetaCluster

java.lang.Object
  extended by uk.co.petertribble.pkgview.MetaCluster

public class MetaCluster
extends java.lang.Object


Constructor Summary
MetaCluster(java.lang.String cname)
           
 
Method Summary
 void addCluster(PackageCluster pc)
           
 void addPackage(SolarisPackage pkg)
           
 boolean containsCluster(PackageCluster pc)
          Gets whether this metacluster explicitly contains the specified package cluster.
 boolean containsCluster(java.lang.String pcname)
          Gets whether this metacluster explicitly contains the specified package cluster.
 boolean containsPackage(SolarisPackage p)
          Gets whether this metacluster explicitly contains the specified package.
 boolean containsPackage(java.lang.String pname)
          Gets whether this metacluster explicitly contains the specified package.
 void forceSelected()
          Sets whether the packages and clusters in this metacluster are unselectable.
 java.lang.String getClusterName()
           
 java.util.List<PackageCluster> getClusters()
          Returns all the clustrs of packages that are contained in this MetaCluster.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.util.List<SolarisPackage> getPackages()
          Returns all the individual packages that are explicitly contained in this MetaCluster.
 boolean getSelected()
          Gets whether this metacluster is selected
 boolean includesPackage(SolarisPackage p)
          Gets whether this metacluster contains the specified package, either explicitly or implictly via membership of a cluster.
 boolean includesPackage(java.lang.String pname)
          Gets whether this metacluster contains the specified package, either explicitly or implictly via membership of a cluster.
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setSelected(boolean selected)
          Sets whether this metacluster is selected.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaCluster

public MetaCluster(java.lang.String cname)
Method Detail

setName

public void setName(java.lang.String name)

setDescription

public void setDescription(java.lang.String description)

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getClusterName

public java.lang.String getClusterName()

addCluster

public void addCluster(PackageCluster pc)

addPackage

public void addPackage(SolarisPackage pkg)

getClusters

public java.util.List<PackageCluster> getClusters()
Returns all the clustrs of packages that are contained in this MetaCluster.


getPackages

public java.util.List<SolarisPackage> getPackages()
Returns all the individual packages that are explicitly contained in this MetaCluster. Does not recurse into clusters.


containsCluster

public boolean containsCluster(PackageCluster pc)
Gets whether this metacluster explicitly contains the specified package cluster.


containsCluster

public boolean containsCluster(java.lang.String pcname)
Gets whether this metacluster explicitly contains the specified package cluster.


containsPackage

public boolean containsPackage(SolarisPackage p)
Gets whether this metacluster explicitly contains the specified package.


containsPackage

public boolean containsPackage(java.lang.String pname)
Gets whether this metacluster explicitly contains the specified package.


includesPackage

public boolean includesPackage(SolarisPackage p)
Gets whether this metacluster contains the specified package, either explicitly or implictly via membership of a cluster.


includesPackage

public boolean includesPackage(java.lang.String pname)
Gets whether this metacluster contains the specified package, either explicitly or implictly via membership of a cluster.


setSelected

public void setSelected(boolean selected)
Sets whether this metacluster is selected. Propagates this selection to contained clusters and packages.


getSelected

public boolean getSelected()
Gets whether this metacluster is selected


forceSelected

public void forceSelected()
Sets whether the packages and clusters in this metacluster are unselectable. Normally used only for the SUNWCmreq metacluster.