org.jclouds.vcloud.domain.internal
Class ReferenceTypeImpl

java.lang.Object
  extended by org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
All Implemented Interfaces:
Comparable<ReferenceType>, ReferenceType
Direct Known Subclasses:
CatalogItemImpl, OrgImpl, OrgNetworkImpl, TaskImpl, VAppImpl, VAppTemplateImpl, VDCImpl, VmImpl

public class ReferenceTypeImpl
extends Object
implements ReferenceType

Location of a Rest resource

Author:
Adrian Cole

Constructor Summary
ReferenceTypeImpl(String name, String type, URI href)
           
 
Method Summary
 int compareTo(ReferenceType that)
           
 boolean equals(Object obj)
           
 URI getHref()
           
 String getName()
           
 String getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceTypeImpl

public ReferenceTypeImpl(String name,
                         String type,
                         URI href)
Method Detail

getName

public String getName()
Specified by:
getName in interface ReferenceType
Returns:
name of the referenced object.

getType

public String getType()
Specified by:
getType in interface ReferenceType
Returns:
object type, expressed as the media type of the XML representing of the object
See Also:
VCloudMediaType

getHref

public URI getHref()
Specified by:
getHref in interface ReferenceType
Returns:
hyperlink to the referenced object

compareTo

public int compareTo(ReferenceType that)
Specified by:
compareTo in interface Comparable<ReferenceType>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.