org.jclouds.vcloud.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.vcloud.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, ReferenceType org, String description, Map<String,ReferenceType> contents, Iterable<Task> tasks, boolean published, boolean readOnly)
           
 
Method Summary
 int compareTo(ReferenceType o)
           
 boolean equals(Object obj)
           
 String getDescription()
          optional description
 URI getHref()
          
 String getName()
          
 ReferenceType getOrg()
          Reference to the org containing this vDC.
 List<Task> getTasks()
          read‐only container for Task elements.
 String getType()
          
 int hashCode()
           
 boolean isPublished()
          read‐only element, true if the catalog is published
 boolean isReadOnly()
          
 
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,
                   ReferenceType org,
                   @Nullable
                   String description,
                   Map<String,ReferenceType> contents,
                   Iterable<Task> tasks,
                   boolean published,
                   boolean readOnly)
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.

getOrg

public ReferenceType getOrg()
Reference to the org containing this vDC.

Specified by:
getOrg in interface Catalog
Returns:
org, or null if this is a version before 1.0 where the org isn't present

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

getTasks

public List<Task> getTasks()
read‐only container for Task elements. Each element in the container represents a queued, running, or failed task owned by this object.

Specified by:
getTasks in interface Catalog

isPublished

public boolean isPublished()
read‐only element, true if the catalog is published

Specified by:
isPublished in interface Catalog

isReadOnly

public boolean isReadOnly()

Specified by:
isReadOnly in interface Catalog
Returns:
true, if the current user cannot modify the catalog

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-2011 jclouds. All Rights Reserved.