Class XMLTokenizeLanguage

  • All Implemented Interfaces:
    org.apache.camel.CamelContextAware, org.apache.camel.IsSingleton, org.apache.camel.spi.Language, org.apache.camel.spi.PropertyConfigurer

    @Language("xtokenize")
    public class XMLTokenizeLanguage
    extends org.apache.camel.support.LanguageSupport
    implements org.apache.camel.spi.PropertyConfigurer
    A language for tokenizer expressions.

    This xmltokenizer language can operate in the following modes:

    • i - injecting the contextual namespace bindings into the extracted token (default)
    • w - wrapping the extracted token in its ancestor context
    • u - unwrapping the extracted token to its child content
    • t - extracting the text content of the specified element
    • Constructor Detail

      • XMLTokenizeLanguage

        public XMLTokenizeLanguage()
    • Method Detail

      • tokenize

        @Deprecated
        public static org.apache.camel.Expression tokenize​(String path)
        Deprecated.
      • tokenize

        @Deprecated
        public static org.apache.camel.Expression tokenize​(String path,
                                                           char mode)
        Deprecated.
      • tokenize

        @Deprecated
        public static org.apache.camel.Expression tokenize​(String headerName,
                                                           String path)
        Deprecated.
      • tokenize

        @Deprecated
        public static org.apache.camel.Expression tokenize​(String headerName,
                                                           String path,
                                                           char mode)
        Deprecated.
      • tokenize

        @Deprecated
        public static org.apache.camel.Expression tokenize​(String headerName,
                                                           String path,
                                                           char mode,
                                                           int group,
                                                           org.apache.camel.support.builder.Namespaces namespaces)
        Deprecated.
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(String expression)
        Specified by:
        createPredicate in interface org.apache.camel.spi.Language
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression)
        Creates a tokenize expression.
        Specified by:
        createExpression in interface org.apache.camel.spi.Language
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(String expression,
                                                          Object[] properties)
        Specified by:
        createPredicate in interface org.apache.camel.spi.Language
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression,
                                                            Object[] properties)
        Specified by:
        createExpression in interface org.apache.camel.spi.Language
      • getHeaderName

        public String getHeaderName()
      • setHeaderName

        public void setHeaderName​(String headerName)
      • getPath

        public String getPath()
      • setPath

        public void setPath​(String path)
      • getMode

        public char getMode()
      • setMode

        public void setMode​(char mode)
      • getGroup

        public int getGroup()
      • setGroup

        public void setGroup​(int group)
      • getNamespaces

        public org.apache.camel.support.builder.Namespaces getNamespaces()
      • setNamespaces

        public void setNamespaces​(org.apache.camel.support.builder.Namespaces namespaces)
      • configure

        public boolean configure​(org.apache.camel.CamelContext camelContext,
                                 Object target,
                                 String name,
                                 Object value,
                                 boolean ignoreCase)
        Specified by:
        configure in interface org.apache.camel.spi.PropertyConfigurer