vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.vim.data
Interface VimObjectReferenceService

All Superinterfaces:
ObjectReferenceService

public interface VimObjectReferenceService
extends ObjectReferenceService

Extension of the ObjectReferenceService interface to add some vSphere object reference specific utilities.


Method Summary
 Object getReference(String type, String value, String serverGuid)
          Returns the object reference given the type, value and serverGuid which constitute the reference.
 String getValue(Object reference)
          Returns the value of an object reference.
 
Methods inherited from interface com.vmware.vise.data.query.ObjectReferenceService
getReference, getResourceObjectType, getServerGuid, getUid
 

Method Detail

getValue

String getValue(Object reference)
Returns the value of an object reference. In case of a vSphere object references this would directly map to its value field while in other cases this would simply return the UID.

Parameters:
reference - The Reference object.
Returns:
Value of the reference.

getReference

Object getReference(String type,
                    String value,
                    String serverGuid)
Returns the object reference given the type, value and serverGuid which constitute the reference. This method is to be used to create references of object belonging to the vsphere system or default refrences where the namespaces to which the object belongs is not relevant to the implementation.

Parameters:
type - reference type.
value - value of the object refrence.
serverGuid - guid of the server that owns the required reference.
Returns:
object reference suitable to the type parameter. For types that are identified as vSphere types an object reference appropriate to the vSphere system will be returned.

vSphere Client SDK API Documentation : version 5.5.0.1300321

Copyright @ 2012 VMware, Inc. All rights reserved.