Class OptionalIdentifiedDefinition<T extends OptionalIdentifiedDefinition<T>>

    • Constructor Detail

      • OptionalIdentifiedDefinition

        public OptionalIdentifiedDefinition()
    • Method Detail

      • getCamelContext

        public org.apache.camel.CamelContext getCamelContext()
        Specified by:
        getCamelContext in interface org.apache.camel.CamelContextAware
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.camel.spi.HasId
        Specified by:
        getId in interface org.apache.camel.NamedNode
      • setId

        @Metadata(description="The id of this node")
        public void setId​(String id)
        Sets the id of this node
        Specified by:
        setId in interface org.apache.camel.spi.IdAware
      • setGeneratedId

        public void setGeneratedId​(String id)
        Specified by:
        setGeneratedId in interface org.apache.camel.spi.IdAware
      • setDescription

        @Metadata(description="The description for this node")
        public void setDescription​(DescriptionDefinition description)
        Sets the description of this node
        Parameters:
        description - sets the text description, use null to not set a text
      • getParent

        public org.apache.camel.NamedNode getParent()
        Specified by:
        getParent in interface org.apache.camel.NamedNode
      • getLineNumber

        public int getLineNumber()
        Specified by:
        getLineNumber in interface org.apache.camel.LineNumberAware
      • setLineNumber

        public void setLineNumber​(int lineNumber)
        Specified by:
        setLineNumber in interface org.apache.camel.LineNumberAware
      • getLocation

        public String getLocation()
        Specified by:
        getLocation in interface org.apache.camel.LineNumberAware
      • setLocation

        public void setLocation​(String location)
        Specified by:
        setLocation in interface org.apache.camel.LineNumberAware
      • description

        public T description​(String text)
        Sets the description of this node
        Parameters:
        text - sets the text description, use null to not set a text
        Returns:
        the builder
      • description

        @Deprecated
        public T description​(String id,
                             String text,
                             String lang)
        Deprecated.
        Sets the description of this node
        Parameters:
        id - sets the id, use null to not set an id
        text - sets the text description, use null to not set a text
        lang - sets the language for the description, use null to not set a language
        Returns:
        the builder
      • id

        public T id​(String id)
        Sets the id of this node.

        Important: If you want to set the id of the route, then you must use routeId(String) instead.

        Parameters:
        id - the id
        Returns:
        the builder
      • idOrCreate

        public String idOrCreate​(org.apache.camel.spi.NodeIdFactory factory)
        Gets the node id, creating one if not already set.
      • getCustomId

        public Boolean getCustomId()
      • setCustomId

        public void setCustomId​(Boolean customId)
        Whether the node id was explicit set, or was auto generated by Camel.
      • hasCustomIdAssigned

        public boolean hasCustomIdAssigned()
        Returns whether a custom id has been assigned
      • getDescriptionText

        public String getDescriptionText()
        Returns the description text or null if there is no description text associated with this node
        Specified by:
        getDescriptionText in interface org.apache.camel.NamedNode