org.rhq.core.domain.resource.composite
Class DisambiguationReport<T>
java.lang.Object
org.rhq.core.domain.resource.composite.DisambiguationReport<T>
- All Implemented Interfaces:
- Serializable
public class DisambiguationReport<T>
- extends Object
- implements Serializable
Contains information about disambiguation of a Resource name.
- See Also:
- Serialized Form
DisambiguationReport
protected DisambiguationReport()
DisambiguationReport
public DisambiguationReport(T original,
List<DisambiguationReport.Resource> parents,
DisambiguationReport.Resource resource)
getOriginal
public T getOriginal()
- Returns:
- an object from the original result list that this disambiguation report represents.
getParents
public List<DisambiguationReport.Resource> getParents()
- Returns:
- the list of parents to disambiguate the original. Empty if no disambiguation using
parents is needed.
getResource
public DisambiguationReport.Resource getResource()
- Returns:
- the resource that the
original
represents.
getResourceType
@Deprecated
public DisambiguationReport.ResourceType getResourceType()
- Deprecated. use
getResource()
.getType()
- Returns:
- the ResourceType of the resource represented by the
getOriginal()
or null if type disambiguation isn't needed.
getName
@Deprecated
public String getName()
- Deprecated. use
getResource()
.getName()
- Returns:
- the Resource name
getId
@Deprecated
public int getId()
- Deprecated. use
getResource()
.getId()
- Returns:
- the Resource id
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.