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 o)
           
 URI getHref()
           
 String getName()
           
 String getType()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 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>

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.