@Beta
public class CatalogDto
extends java.lang.Object
Constructor and Description |
---|
CatalogDto() |
Modifier and Type | Method and Description |
---|---|
static CatalogDto |
newDefaultLocalScanningDto(CatalogClasspathDo.CatalogScanningModes scanMode) |
static CatalogDto |
newDtoFromCatalogItems(java.util.Collection<CatalogItem<?,?>> entries)
Deprecated.
since 0.7.0 use
newDtoFromCatalogItems(Collection, String) , supplying a description for tracking |
static CatalogDto |
newDtoFromCatalogItems(java.util.Collection<CatalogItem<?,?>> entries,
java.lang.String description) |
static CatalogDto |
newDtoFromUrl(java.lang.String url)
Deprecated.
since 0.7.0 use
newDtoFromXmlUrl(String) if you must, but note the xml format itself is deprecated |
static CatalogDto |
newDtoFromXmlContents(java.lang.String xmlContents,
java.lang.String originDescription)
Deprecated.
since 0.7.0 the xml format is deprecated; use YAML parse routines on BasicBrooklynCatalog
|
static CatalogDto |
newDtoFromXmlUrl(java.lang.String url)
Deprecated.
since 0.7.0 the xml format is deprecated; use YAML parse routines on BasicBrooklynCatalog
|
static CatalogDto |
newEmptyInstance(java.lang.String optionalContentsDescription)
Used when caller wishes to create an explicitly empty catalog
|
static CatalogDto |
newLinkedInstance(java.lang.String url) |
static CatalogDto |
newNamedInstance(java.lang.String name,
java.lang.String description,
java.lang.String optionalContentsDescription)
Creates a DTO.
|
java.lang.String |
toString() |
public static CatalogDto newDefaultLocalScanningDto(CatalogClasspathDo.CatalogScanningModes scanMode)
@Deprecated public static CatalogDto newDtoFromUrl(java.lang.String url)
newDtoFromXmlUrl(String)
if you must, but note the xml format itself is deprecated@Deprecated public static CatalogDto newDtoFromXmlUrl(java.lang.String url)
@Deprecated public static CatalogDto newDtoFromXmlContents(java.lang.String xmlContents, java.lang.String originDescription)
public static CatalogDto newNamedInstance(java.lang.String name, java.lang.String description, java.lang.String optionalContentsDescription)
The way contents is treated may change; thus this (and much of catalog) should be treated as beta.
name
- description
- optionalContentsDescription
- optional description of contents; if null, we normally expect source 'contents' to be set later;
if the DTO has no 'contents' (ie XML source) then a description should be supplied so we know who is populating it
(e.g. manual additions); without this, warnings may be generatedpublic static CatalogDto newEmptyInstance(java.lang.String optionalContentsDescription)
public static CatalogDto newLinkedInstance(java.lang.String url)
@Deprecated public static CatalogDto newDtoFromCatalogItems(java.util.Collection<CatalogItem<?,?>> entries)
newDtoFromCatalogItems(Collection, String)
, supplying a description for trackingpublic static CatalogDto newDtoFromCatalogItems(java.util.Collection<CatalogItem<?,?>> entries, java.lang.String description)
public java.lang.String toString()
toString
in class java.lang.Object