org.rhq.core.domain.resource.composite
Class DisambiguationReport<T>

java.lang.Object
  extended by 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

Nested Class Summary
static class DisambiguationReport.Resource
           
static class DisambiguationReport.ResourceType
           
 
Constructor Summary
protected DisambiguationReport()
           
  DisambiguationReport(T original, List<DisambiguationReport.Resource> parents, DisambiguationReport.Resource resource)
           
 
Method Summary
 int getId()
          Deprecated. use getResource().getId()
 String getName()
          Deprecated. use getResource().getName()
 T getOriginal()
           
 List<DisambiguationReport.Resource> getParents()
           
 DisambiguationReport.Resource getResource()
           
 DisambiguationReport.ResourceType getResourceType()
          Deprecated. use getResource().getType()
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisambiguationReport

protected DisambiguationReport()

DisambiguationReport

public DisambiguationReport(T original,
                            List<DisambiguationReport.Resource> parents,
                            DisambiguationReport.Resource resource)
Method Detail

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.