public abstract class OptionalIdentifiedDefinition<T extends OptionalIdentifiedDefinition<T>> extends Object implements org.apache.camel.NamedNode, DefinitionPropertyPlaceholderConfigurer
| Constructor and Description |
|---|
OptionalIdentifiedDefinition() |
| Modifier and Type | Method and Description |
|---|---|
T |
description(String text)
Sets the description of this node
|
T |
description(String id,
String text,
String lang)
Sets the description of this node
|
Boolean |
getCustomId() |
DescriptionDefinition |
getDescription() |
String |
getDescriptionText()
Returns the description text or null if there is no description text
associated with this node
|
String |
getId() |
org.apache.camel.NamedNode |
getParent() |
boolean |
hasCustomIdAssigned()
Returns whether a custom id has been assigned
|
T |
id(String id)
Sets the id of this node.
|
String |
idOrCreate(org.apache.camel.spi.NodeIdFactory factory)
Gets the node id, creating one if not already set.
|
void |
setCustomId(Boolean customId)
Whether the node id was explicit set, or was auto generated by Camel.
|
void |
setDescription(DescriptionDefinition description)
Sets the description of this node
|
void |
setId(String value)
Sets the id of this node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptionspublic OptionalIdentifiedDefinition()
public DescriptionDefinition getDescription()
public void setDescription(DescriptionDefinition description)
description - sets the text description, use null to not set a textpublic org.apache.camel.NamedNode getParent()
getParent in interface org.apache.camel.NamedNodepublic T description(String text)
text - sets the text description, use null to not set a textpublic T description(String id, String text, String lang)
id - sets the id, use null to not set an idtext - sets the text description, use null to not set a textlang - sets the language for the description, use null to not set a
languagepublic T id(String id)
id - the idpublic String idOrCreate(org.apache.camel.spi.NodeIdFactory factory)
public Boolean getCustomId()
public void setCustomId(Boolean customId)
public boolean hasCustomIdAssigned()
public String getDescriptionText()
getDescriptionText in interface org.apache.camel.NamedNodeApache Camel