org.jclouds.vcloud.domain.internal
Class CatalogImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,ReferenceType>
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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
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)
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-2012 jclouds. All Rights Reserved.