vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.data.query
Interface ObjectReferenceService

All Known Subinterfaces:
VimObjectReferenceService

public interface ObjectReferenceService

Collection of methods that provide : - mappings between reference and UID. - fragments of the reference.


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

Method Detail

getResourceObjectType

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

Parameters:
reference - The reference object.
Returns:
The reference type. A null return value may indicate that no ObjectRefAdapter could be found for the reference, or that the reference was not supported by its ObjectRefAdapter.
Throws:
IllegalArgumentException - If the reference reference is null.

getServerGuid

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

Parameters:
reference - The reference object.
Returns:
The Guid of the server that owns the given reference object. A null return value may indicate that no ObjectRefAdapter could be found for the reference, or that the reference was not supported by its ObjectRefAdapter.
Throws:
IllegalArgumentException - If the reference reference is null.

getUid

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

Parameters:
reference - The reference object.
Returns:
The reference uid. A null return value may indicate that no ObjectRefAdapter could be found for the reference, or that the reference was not supported by its ObjectRefAdapter.
Throws:
IllegalArgumentException - If the reference reference is null.

getReference

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

Parameters:
uid - The uid.
Returns:
The entity reference. A null return value may indicate that no ObjectRefAdapter could be found for the uid, or that the uid was not supported by its ObjectRefAdapter.
Throws:
IllegalArgumentException - if the uid is null.

vSphere Client SDK API Documentation : version 5.5.0.1300321

Copyright @ 2012 VMware, Inc. All rights reserved.