public class CatalogItemDo<T,SpecT> extends java.lang.Object implements CatalogItem<T,SpecT>
CatalogItem.CatalogItemLibraries, CatalogItem.CatalogItemType
BrooklynObject.TagSupport
Constructor and Description |
---|
CatalogItemDo(CatalogDo catalog,
CatalogItem<T,SpecT> itemDto) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogItemId()
Built up from
Identifiable.getId() 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() |
CatalogItem.CatalogItemLibraries |
getLibraries() |
java.lang.String |
getName()
Deprecated.
|
java.lang.String |
getPlanYaml() |
RebindSupport<CatalogItemMemento> |
getRebindSupport() |
java.lang.String |
getRegisteredTypeName() |
java.lang.Class<SpecT> |
getSpecType() |
BrooklynObject.TagSupport |
getTagSupport()
Deprecated.
|
java.lang.String |
getVersion() |
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 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 Identifiable
public java.lang.String getCatalogItemId()
CatalogItem
Identifiable.getId()
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 BrooklynObject
getCatalogItemId
in interface CatalogItem<T,SpecT>
public java.lang.String getRegisteredTypeName()
getRegisteredTypeName
in interface CatalogItem<T,SpecT>
public java.lang.String getJavaType()
getJavaType
in interface CatalogItem<T,SpecT>
@Deprecated public java.lang.String getName()
getName
in interface CatalogItem<T,SpecT>
public java.lang.String getDisplayName()
BrooklynObject
getDisplayName
in interface BrooklynObject
public BrooklynObject.TagSupport tags()
BrooklynObject
ImmutableMap
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 BrooklynObject
public 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 getVersion()
getVersion
in interface CatalogItem<T,SpecT>
@Nonnull public CatalogItem.CatalogItemLibraries getLibraries()
getLibraries
in interface CatalogItem<T,SpecT>
@Deprecated public java.lang.Class<T> getJavaClass()
getPlanYaml()
and #newClassLoadingContext
public java.lang.String toString()
toString
in class java.lang.Object
public 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 CatalogItem<T,SpecT>
getRebindSupport
in interface Rebindable