org.vmguys.vmtools.ota
Class UniqueId

java.lang.Object
  |
  +--org.vmguys.vmtools.ota.UniqueId

public class UniqueId
extends java.lang.Object

This class represents the UniqueId element used in some OTA messages.


Constructor Summary
UniqueId()
          No-args constructor.
UniqueId(java.lang.String type, java.lang.String id)
          Constructor that sets the mandatory attributes.
UniqueId(java.lang.String url, java.lang.String type, java.lang.String id, java.lang.String instance)
          Constructor that sets all attributes.
 
Method Summary
 org.jdom.Element asJdomElement()
          Creates a UniqueId Element containing the attributes specified in this object.
 java.lang.String getId()
          Gets the id attribute.
 java.lang.String getInstance()
          Gets the instance attribute.
 java.lang.String getType()
          Gets the type attribute.
 java.lang.String getUrl()
          Gets the url attribute.
 void setId(java.lang.String id)
          Sets the id attribute.
 void setInstance(java.lang.String instance)
          Sets the instance attribute.
 void setType(java.lang.String type)
          Sets the type attribute.
 void setUrl(java.lang.String url)
          Sets the url attribute.
 java.lang.String toString()
          Returns a String representation of this unique id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniqueId

public UniqueId()
No-args constructor. All attributes remain null.

UniqueId

public UniqueId(java.lang.String type,
                java.lang.String id)
Constructor that sets the mandatory attributes. Optional attributes remain null.

UniqueId

public UniqueId(java.lang.String url,
                java.lang.String type,
                java.lang.String id,
                java.lang.String instance)
Constructor that sets all attributes.
Method Detail

setUrl

public void setUrl(java.lang.String url)
Sets the url attribute.

getUrl

public java.lang.String getUrl()
Gets the url attribute.

setType

public void setType(java.lang.String type)
Sets the type attribute.

getType

public java.lang.String getType()
Gets the type attribute.

setId

public void setId(java.lang.String id)
Sets the id attribute.

getId

public java.lang.String getId()
Gets the id attribute.

setInstance

public void setInstance(java.lang.String instance)
Sets the instance attribute.

getInstance

public java.lang.String getInstance()
Gets the instance attribute.

asJdomElement

public org.jdom.Element asJdomElement()
                               throws org.jdom.JDOMException
Creates a UniqueId Element containing the attributes specified in this object. Throws an exception if the mandatory attributes have not been specified.

toString

public java.lang.String toString()
Returns a String representation of this unique id.
Overrides:
toString in class java.lang.Object


Copyright © 2001 VM Systems, Inc. All Rights Reserved.