|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<T>
public abstract class OptionalIdentifiedDefinition<T extends OptionalIdentifiedDefinition<T>>
Allows an element to have an optional ID specified
Constructor Summary | |
---|---|
OptionalIdentifiedDefinition()
|
Method Summary | |
---|---|
T |
description(String id,
String text,
String lang)
Sets the description of this node |
DescriptionDefinition |
getDescription()
|
String |
getDescriptionText()
Returns the description text or null if there is no description text associated with this node |
String |
getId()
Gets the value of the id property. |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
boolean |
hasCustomIdAssigned()
Returns whether a custom id has been assigned |
T |
id(String id)
Sets the id of this node |
String |
idOrCreate(NodeIdFactory factory)
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 |
Constructor Detail |
---|
public OptionalIdentifiedDefinition()
Method Detail |
---|
public String getId()
getId
in interface NamedNode
public void setId(String value)
public DescriptionDefinition getDescription()
public void setDescription(DescriptionDefinition description)
public String getShortName()
getShortName
in interface NamedNode
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 T id(String id)
id
- the id
public String idOrCreate(NodeIdFactory factory)
public boolean hasCustomIdAssigned()
public String getDescriptionText()
getDescriptionText
in interface NamedNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |