public class CatalogItemDo<T,SpecT> extends java.lang.Object implements CatalogItem<T,SpecT>, BrooklynObjectInternal
CatalogItem.CatalogBundle, CatalogItem.CatalogItemLibraries, CatalogItem.CatalogItemTypeBrooklynObjectInternal.ConfigurationSupportInternalBrooklynObject.TagSupportConfigurable.ConfigurationSupport| Constructor and Description |
|---|
CatalogItemDo(CatalogDo catalog,
CatalogItem<T,SpecT> itemDto) |
| Modifier and Type | Method and Description |
|---|---|
BrooklynObjectInternal.ConfigurationSupportInternal |
config()
Config not supported for catalog item.
|
java.lang.String |
getCatalogItemId()
Built up from
CatalogItem.getSymbolicName() and CatalogItem.getVersion(). |
java.lang.Class<T> |
getCatalogItemJavaType() |
CatalogItem.CatalogItemType |
getCatalogItemType() |
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName()
A display name; recommended to be a concise single-line description.
|
CatalogItem<T,SpecT> |
getDto() |
java.lang.String |
getIconUrl() |
java.lang.String |
getId() |
java.lang.Class<T> |
getJavaClass()
Deprecated.
since 0.7.0 this is the legacy mechanism; still needed for policies and apps, but being phased out.
new items should use
getPlanYaml() and #newClassLoadingContext |
java.lang.String |
getJavaType() |
java.util.Collection<CatalogItem.CatalogBundle> |
getLibraries() |
java.lang.String |
getName()
Deprecated.
|
java.lang.String |
getPlanYaml() |
RebindSupport<CatalogItemMemento> |
getRebindSupport() |
java.lang.String |
getRegisteredTypeName()
Deprecated.
|
java.lang.Class<SpecT> |
getSpecType() |
java.lang.String |
getSymbolicName() |
BrooklynObject.TagSupport |
getTagSupport()
Deprecated.
|
java.lang.String |
getVersion() |
boolean |
isDeprecated() |
void |
setCatalogItemId(java.lang.String id) |
<U> U |
setConfig(ConfigKey<U> key,
U val) |
void |
setDeprecated(boolean deprecated) |
BrooklynObject.TagSupport |
tags()
Tags are arbitrary objects which can be attached to an entity for subsequent reference.
|
java.lang.String |
toString() |
java.lang.String |
toXmlString() |
public CatalogItemDo(CatalogDo catalog, CatalogItem<T,SpecT> itemDto)
public CatalogItem<T,SpecT> getDto()
public BrooklynObjectInternal.ConfigurationSupportInternal config()
getPlanYaml().config in interface BrooklynObjectInternalconfig in interface Configurablepublic <U> U setConfig(ConfigKey<U> key, U val)
setConfig in interface Configurablepublic CatalogItem.CatalogItemType getCatalogItemType()
getCatalogItemType in interface CatalogItem<T,SpecT>public java.lang.Class<T> getCatalogItemJavaType()
getCatalogItemJavaType in interface CatalogItem<T,SpecT>public java.lang.String getId()
getId in interface Identifiablepublic java.lang.String getCatalogItemId()
CatalogItemCatalogItem.getSymbolicName() and CatalogItem.getVersion().
(It is a bit self-referential having this method on this type of BrooklynObject,
but it is easier this than making the interface hierarchy more complicated.)getCatalogItemId in interface BrooklynObjectgetCatalogItemId in interface CatalogItem<T,SpecT>public void setDeprecated(boolean deprecated)
setDeprecated in interface CatalogItem<T,SpecT>public boolean isDeprecated()
isDeprecated in interface CatalogItem<T,SpecT>public void setCatalogItemId(java.lang.String id)
setCatalogItemId in interface BrooklynObjectInternalpublic java.lang.String getJavaType()
getJavaType in interface CatalogItem<T,SpecT>@Deprecated public java.lang.String getName()
getName in interface CatalogItem<T,SpecT>@Deprecated public java.lang.String getRegisteredTypeName()
getRegisteredTypeName in interface CatalogItem<T,SpecT>public java.lang.String getDisplayName()
BrooklynObjectgetDisplayName in interface BrooklynObjectpublic BrooklynObject.TagSupport tags()
BrooklynObjectImmutableMap may be used under the covers; also there is little point!);
and they should be amenable to our persistence (on-disk serialization) and our JSON serialization in the REST API.tags in interface BrooklynObject@Deprecated public BrooklynObject.TagSupport getTagSupport()
getTagSupport in interface BrooklynObjectpublic java.lang.String getDescription()
getDescription in interface CatalogItem<T,SpecT>public java.lang.String getIconUrl()
getIconUrl in interface CatalogItem<T,SpecT>public java.lang.String getSymbolicName()
getSymbolicName in interface CatalogItem<T,SpecT>public java.lang.String getVersion()
getVersion in interface CatalogItem<T,SpecT>@Nonnull public java.util.Collection<CatalogItem.CatalogBundle> getLibraries()
getLibraries in interface CatalogItem<T,SpecT>@Deprecated public java.lang.Class<T> getJavaClass()
getPlanYaml() and #newClassLoadingContextpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toXmlString()
toXmlString in interface CatalogItem<T,SpecT>public java.lang.Class<SpecT> getSpecType()
getSpecType in interface CatalogItem<T,SpecT>CatalogItem.getCatalogItemJavaType()@Nullable public java.lang.String getPlanYaml()
getPlanYaml in interface CatalogItem<T,SpecT>public RebindSupport<CatalogItemMemento> getRebindSupport()
getRebindSupport in interface BrooklynObjectInternalgetRebindSupport in interface CatalogItem<T,SpecT>getRebindSupport in interface Rebindable