|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<T>
public abstract class OptionalIdentifiedType<T extends OptionalIdentifiedType>
Allows an element to have an optional ID specified
| Field Summary | |
|---|---|
protected static Map<String,AtomicInteger> |
nodeCounters
|
| Constructor Summary | |
|---|---|
OptionalIdentifiedType()
|
|
| Method Summary | |
|---|---|
protected String |
createId()
A helper method to create a new id for this node |
T |
description(String id,
String text,
String lang)
Sets the description of this node |
DescriptionDefinition |
getDescription()
|
String |
getId()
Gets the value of the id property. |
protected static AtomicInteger |
getNodeCounter(String key)
Returns the counter for the given node key, lazily creating one if necessary |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
String |
idOrCreate()
Gets the node id, creating one if not already set. |
void |
setDescription(DescriptionDefinition description)
|
void |
setId(String value)
Sets the value of the id property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<String,AtomicInteger> nodeCounters
| Constructor Detail |
|---|
public OptionalIdentifiedType()
| Method Detail |
|---|
public String getId()
public void setId(String value)
public DescriptionDefinition getDescription()
public void setDescription(DescriptionDefinition description)
public String getShortName()
public 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 language
public String idOrCreate()
protected String createId()
protected static AtomicInteger getNodeCounter(String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||