|
||||||||||
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 |
describe(String id,
String text,
String lang)
Sets the description of this node |
T |
description(String text)
Deprecated. will be removed in Camel 2.0 |
T |
description(String text,
String lang)
Deprecated. will be removed in Camel 2.0 |
Description |
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 |
T |
id(String id)
Deprecated. will be removed in Camel 2.0 |
String |
idOrCreate()
|
void |
setDescription(Description 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 Description getDescription()
public void setDescription(Description description)
public String getShortName()
public T describe(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 T description(String text)
text
- the description
public T description(String text, String lang)
text
- the descriptionlang
- the language for the description
public T id(String id)
id
- the id
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 |