Package org.apache.camel.tooling.model
Class BaseModel<O extends BaseOptionModel>
- java.lang.Object
-
- org.apache.camel.tooling.model.BaseModel<O>
-
- Direct Known Subclasses:
ArtifactModel
,EipModel
public abstract class BaseModel<O extends BaseOptionModel> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
deprecated
protected String
deprecatedSince
protected String
deprecationNote
protected String
description
protected String
firstVersion
protected String
javaType
protected String
label
protected Map<String,Object>
metadata
protected String
name
protected boolean
nativeSupported
protected List<O>
options
protected SupportLevel
supportLevel
protected String
title
-
Constructor Summary
Constructors Constructor Description BaseModel()
-
Method Summary
-
-
-
Field Detail
-
name
protected String name
-
title
protected String title
-
description
protected String description
-
firstVersion
protected String firstVersion
-
javaType
protected String javaType
-
label
protected String label
-
deprecated
protected boolean deprecated
-
deprecatedSince
protected String deprecatedSince
-
deprecationNote
protected String deprecationNote
-
options
protected final List<O extends BaseOptionModel> options
-
supportLevel
protected SupportLevel supportLevel
-
nativeSupported
protected boolean nativeSupported
-
-
Method Detail
-
compareTitle
public static Comparator<BaseModel<?>> compareTitle()
-
getKind
public abstract String getKind()
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getFirstVersion
public String getFirstVersion()
-
setFirstVersion
public void setFirstVersion(String firstVersion)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
isDeprecated
public boolean isDeprecated()
-
setDeprecated
public void setDeprecated(boolean deprecated)
-
getDeprecationNote
public String getDeprecationNote()
-
setDeprecationNote
public void setDeprecationNote(String deprecationNote)
-
getDeprecatedSince
public String getDeprecatedSince()
-
setDeprecatedSince
public void setDeprecatedSince(String deprecatedSince)
-
getJavaType
public String getJavaType()
-
setJavaType
public void setJavaType(String javaType)
-
addOption
public void addOption(O option)
-
getShortJavaType
public String getShortJavaType()
-
getFirstVersionShort
public String getFirstVersionShort()
-
getSupportLevel
public SupportLevel getSupportLevel()
-
setSupportLevel
public void setSupportLevel(SupportLevel supportLevel)
-
isNativeSupported
public boolean isNativeSupported()
- Returns:
true
if the part represented by this model supports compilation to native code;false
otherwise
-
setNativeSupported
public void setNativeSupported(boolean nativeSupported)
- Parameters:
nativeSupported
- seeisNativeSupported()
-
getMetadata
public Map<String,Object> getMetadata()
- Returns:
- a free form map of key value pair representing this
BaseModel
's metadata
-
-