org.apache.camel.model
Class OptionalIdentifiedType<T extends OptionalIdentifiedType>

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedType<T>
Direct Known Subclasses:
FromType, ProcessorType, RoutesType

public abstract class OptionalIdentifiedType<T extends OptionalIdentifiedType>
extends Object

Allows an element to have an optional ID specified

Version:
$Revision: 41788 $

Field Summary
protected static AtomicInteger nodeCounter
           
 
Constructor Summary
OptionalIdentifiedType()
           
 
Method Summary
 T description(String text)
           
 T description(String text, String lang)
           
 Description getDescription()
           
 String getId()
          Gets the value of the id property.
 T id(String id)
           
 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

nodeCounter

protected static AtomicInteger nodeCounter
Constructor Detail

OptionalIdentifiedType

public OptionalIdentifiedType()
Method Detail

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getDescription

public Description getDescription()

setDescription

public void setDescription(Description description)

description

public T description(String text)

description

public T description(String text,
                     String lang)

id

public T id(String id)

idOrCreate

public String idOrCreate()


Copyright © 2008 IONA Open Source Community. All Rights Reserved.