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

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

public class ResourceFlyweight
extends Object
implements Serializable

Contains only a minimal subset of properties of a Resource that are needed for display purposes.

See Also:
Serialized Form

Constructor Summary
ResourceFlyweight()
           
 
Method Summary
 boolean equals(Object o)
           
 List<ResourceFlyweight> getChildResources()
           
 ResourceAvailabilityFlyweight getCurrentAvailability()
           
 int getId()
           
 String getName()
           
 ResourceFlyweight getParentResource()
           
 String getResourceKey()
           
 ResourceTypeFlyweight getResourceType()
           
 String getUuid()
           
 int hashCode()
           
 boolean isLocked()
           
 void setCurrentAvailability(ResourceAvailabilityFlyweight currentAvailability)
           
 void setId(int id)
           
 void setLocked(boolean locked)
           
 void setName(String name)
           
 void setParentResource(ResourceFlyweight parent)
           
 void setResourceKey(String resourceKey)
           
 void setResourceType(ResourceTypeFlyweight resourceType)
           
 void setUuid(String uuid)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFlyweight

public ResourceFlyweight()
Method Detail

getParentResource

public ResourceFlyweight getParentResource()

setParentResource

public void setParentResource(ResourceFlyweight parent)

getUuid

public String getUuid()

setUuid

public void setUuid(String uuid)

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()

setName

public void setName(String name)

getResourceKey

public String getResourceKey()

setResourceKey

public void setResourceKey(String resourceKey)

getCurrentAvailability

public ResourceAvailabilityFlyweight getCurrentAvailability()

setCurrentAvailability

public void setCurrentAvailability(ResourceAvailabilityFlyweight currentAvailability)

getResourceType

public ResourceTypeFlyweight getResourceType()

setResourceType

public void setResourceType(ResourceTypeFlyweight resourceType)

getChildResources

public List<ResourceFlyweight> getChildResources()

isLocked

public boolean isLocked()

setLocked

public void setLocked(boolean locked)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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