public abstract class OptionalIdentifiedDefinition<T extends OptionalIdentifiedDefinition<T>> extends Object implements org.apache.camel.NamedNode, org.apache.camel.spi.IdAware
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 |
setGeneratedId(String id) |
void |
setId(String id)
Sets the id of this node
|
public String getId()
getId
in interface org.apache.camel.NamedNode
getId
in interface org.apache.camel.spi.HasId
@Metadata(description="The id of this node") public void setId(String id)
setId
in interface org.apache.camel.spi.IdAware
public void setGeneratedId(String id)
setGeneratedId
in interface org.apache.camel.spi.IdAware
public DescriptionDefinition getDescription()
@Metadata(description="The description for this node") 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.NamedNode
public 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.NamedNode
Apache Camel