org.rhq.core.domain.resource.flyweight
Class AutoGroupCompositeFlyweight

java.lang.Object
  extended by org.rhq.core.domain.resource.flyweight.AutoGroupCompositeFlyweight
All Implemented Interfaces:
Serializable

public class AutoGroupCompositeFlyweight
extends Object
implements Serializable

This class is mostly a copy of AutoGroupComposite but is linked together with ResourceFlyweight, ResourceTypeFlyweight and ResourceSubCategoryFlyweight instances as opposed to their fully featured counterparts which is what makes this class flyweight.

In addition to the AutoGroupComposite, this class contains some more properties used in the UI layer.

See Also:
AutoGroupComposite, Serialized Form

Constructor Summary
AutoGroupCompositeFlyweight(AutoGroupCompositeFlyweight other)
           
AutoGroupCompositeFlyweight(Double availability, ResourceFlyweight parentResource, ResourceSubCategoryFlyweight subcategory, long memberCount)
           
AutoGroupCompositeFlyweight(Double availability, ResourceFlyweight parentResource, ResourceTypeFlyweight resourceType, long memberCount)
           
AutoGroupCompositeFlyweight(Double availability, ResourceFlyweight parentResource, ResourceTypeFlyweight resourceType, long memberCount, boolean isDuplicateResourceTypeName)
           
 
Method Summary
 boolean equals(Object o)
           
 Double getAvailability()
           
 int getDepth()
           
 long getMemberCount()
           
 MembersAvailabilityHint getMembersAvailabilityHint()
           
 MembersCategoryHint getMembersCategoryHint()
           
 String getName()
           
 ResourceFlyweight getParentResource()
           
 List<ResourceFlyweight> getResources()
           
 ResourceTypeFlyweight getResourceType()
           
 ResourceSubCategoryFlyweight getSubcategory()
           
 int hashCode()
           
 int increaseDepth(int increment)
           
 boolean isMainResource()
           
 void setDepth(int depth)
           
 void setMainResource(boolean mainResource)
           
 void setMembersAvailabilityHint(MembersAvailabilityHint membersAvailabilityHint)
           
 void setMembersCategoryHint(MembersCategoryHint membersCategoryHint)
           
 void setParentResource(ResourceFlyweight parentResource)
           
 void setResources(List<ResourceFlyweight> resources)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoGroupCompositeFlyweight

public AutoGroupCompositeFlyweight(AutoGroupCompositeFlyweight other)

AutoGroupCompositeFlyweight

public AutoGroupCompositeFlyweight(Double availability,
                                   ResourceFlyweight parentResource,
                                   ResourceTypeFlyweight resourceType,
                                   long memberCount)

AutoGroupCompositeFlyweight

public AutoGroupCompositeFlyweight(Double availability,
                                   ResourceFlyweight parentResource,
                                   ResourceTypeFlyweight resourceType,
                                   long memberCount,
                                   boolean isDuplicateResourceTypeName)

AutoGroupCompositeFlyweight

public AutoGroupCompositeFlyweight(Double availability,
                                   ResourceFlyweight parentResource,
                                   ResourceSubCategoryFlyweight subcategory,
                                   long memberCount)
Method Detail

getAvailability

public Double getAvailability()

getResourceType

public ResourceTypeFlyweight getResourceType()

getMemberCount

public long getMemberCount()

setResources

public void setResources(List<ResourceFlyweight> resources)

getSubcategory

public ResourceSubCategoryFlyweight getSubcategory()

getParentResource

public ResourceFlyweight getParentResource()

setParentResource

public void setParentResource(ResourceFlyweight parentResource)

getResources

public List<ResourceFlyweight> getResources()

getDepth

public int getDepth()

setDepth

public void setDepth(int depth)

increaseDepth

public int increaseDepth(int increment)

isMainResource

public boolean isMainResource()

setMainResource

public void setMainResource(boolean mainResource)

getName

public String getName()

getMembersAvailabilityHint

public MembersAvailabilityHint getMembersAvailabilityHint()

setMembersAvailabilityHint

public void setMembersAvailabilityHint(MembersAvailabilityHint membersAvailabilityHint)

getMembersCategoryHint

public MembersCategoryHint getMembersCategoryHint()

setMembersCategoryHint

public void setMembersCategoryHint(MembersCategoryHint membersCategoryHint)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.