|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.resource.ResourceSubCategory
public class ResourceSubCategory
Class representing a sub category, where a sub category is meant to group similar Resource types together.
Field Summary | |
---|---|
static String |
QUERY_FIND_BY_NAME_AND_PLUGIN
|
Constructor Summary | |
---|---|
ResourceSubCategory()
|
|
ResourceSubCategory(String name)
|
Method Summary | |
---|---|
void |
addChildSubCategory(ResourceSubCategory childSubCategory)
add a child ResourceSubCategory to this instance |
int |
compareTo(ResourceSubCategory that)
|
boolean |
equals(Object o)
|
ResourceType |
findParentResourceType()
|
Set<ResourceType> |
findTaggedResourceTypes()
Returns the resource types that belong to this subcategory; the Set of types is sorted by name. |
List<ResourceSubCategory> |
getChildSubCategories()
|
long |
getCtime()
|
String |
getDescription()
|
String |
getDisplayName()
|
int |
getId()
|
long |
getMtime()
|
String |
getName()
|
ResourceSubCategory |
getParentSubCategory()
Returns this subcategory's parent subcategory, or null if this subcategory has no parent. |
ResourceType |
getResourceType()
|
int |
hashCode()
|
boolean |
isCreatable()
|
void |
removeChildSubCategory(ResourceSubCategory oldChildSubCategory)
Removes the given ResourceSubCategory as a child of this ResourceSubCategory |
void |
setChildSubCategories(List<ResourceSubCategory> childSubCategories)
|
void |
setDescription(String description)
|
void |
setDisplayName(String displayName)
|
void |
setId(int id)
|
void |
setName(String name)
|
void |
setParentSubCategory(ResourceSubCategory parentSubCategory)
|
void |
setResourceType(ResourceType resourceType)
|
String |
toString()
|
void |
update(ResourceSubCategory newSubCategory)
Updates the contents of this definition with values from the specified new definition. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_BY_NAME_AND_PLUGIN
Constructor Detail |
---|
public ResourceSubCategory()
public ResourceSubCategory(String name)
Method Detail |
---|
@NotNull public Set<ResourceType> findTaggedResourceTypes()
@NotNull public ResourceType findParentResourceType()
public boolean isCreatable()
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getDescription()
public void setDescription(String description)
public long getCtime()
public long getMtime()
public void update(@NotNull ResourceSubCategory newSubCategory)
newSubCategory
- contains new data to merge into this definition; cannot be null
public void removeChildSubCategory(ResourceSubCategory oldChildSubCategory)
public void addChildSubCategory(ResourceSubCategory childSubCategory)
public List<ResourceSubCategory> getChildSubCategories()
public void setChildSubCategories(List<ResourceSubCategory> childSubCategories)
public void setParentSubCategory(ResourceSubCategory parentSubCategory)
public ResourceSubCategory getParentSubCategory()
public ResourceType getResourceType()
public void setResourceType(ResourceType resourceType)
public int compareTo(ResourceSubCategory that)
compareTo
in interface Comparable<ResourceSubCategory>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |