vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.data.query
Interface ResourceObjectReferenceAdapter


public interface ResourceObjectReferenceAdapter

An custom adapter registered to provide a mapping between references and uids. Also provides type lookup for references.


Method Summary
 Object getReference(String uid)
          Retuns a reference for a given uid.
 String getResourceType(Object reference)
          Returns the type for the given reference.
 String getServerGuid(Object reference)
          Returns the serverGuid of the server that owns the given reference.
 String getUid(Object reference)
          Returns the uid for the given reference.
 

Method Detail

getUid

String getUid(Object reference)
Returns the uid for the given reference.

Parameters:
reference - The reference to resolve.
Returns:
The reference uid. A null value may indicate that the reference is either null or is not recognized by the adapter.

getServerGuid

String getServerGuid(Object reference)
Returns the serverGuid of the server that owns the given reference.

Parameters:
reference - The reference to resolve.
Returns:
The serverGuid of the server that owns the given reference. A null value may indicate that the reference is null, the reference is not recognized by the adapter, or does not have an associated serverGuid.

getResourceType

String getResourceType(Object reference)
Returns the type for the given reference.

Parameters:
reference - The reference to resolve.
Returns:
The reference type. A null value may indicate that the reference is null or that the reference is not recognized by the adapter.

getReference

Object getReference(String uid)
Retuns a reference for a given uid.

Parameters:
uid - The uid to resolve.
Returns:
The reference.

vSphere Client SDK API Documentation : version 5.5.0.1300321

Copyright @ 2012 VMware, Inc. All rights reserved.