org.jclouds.trmk.vcloud_0_8.domain.internal
Class CatalogImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,ReferenceType>
              extended by org.jclouds.trmk.vcloud_0_8.domain.internal.CatalogImpl
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ReferenceType>, Map<String,ReferenceType>, Catalog, ReferenceType

public class CatalogImpl
extends LinkedHashMap<String,ReferenceType>
implements Catalog

Locations of resources in vCloud

Author:
Adrian Cole
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
CatalogImpl(String name, String type, URI href, String description, Map<String,ReferenceType> contents)
           
 
Method Summary
 int compareTo(ReferenceType o)
           
 boolean equals(Object obj)
           
 String getDescription()
          optional description
 URI getHref()
          
 String getName()
          
 String getType()
          
 int hashCode()
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

CatalogImpl

public CatalogImpl(String name,
                   String type,
                   URI href,
                   @Nullable
                   String description,
                   Map<String,ReferenceType> contents)
Method Detail

getHref

public URI getHref()

Specified by:
getHref in interface ReferenceType
Returns:
hyperlink to the referenced object

getName

public String getName()

Specified by:
getName in interface ReferenceType
Returns:
name of the referenced object.

getDescription

public String getDescription()
optional description

Specified by:
getDescription in interface Catalog

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

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,ReferenceType>
Overrides:
hashCode in class AbstractMap<String,ReferenceType>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map<String,ReferenceType>
Overrides:
equals in class AbstractMap<String,ReferenceType>

compareTo

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


Copyright © 2009-2012 jclouds. All Rights Reserved.