Class ValidatorAdapterDefinition

java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<Type>
org.apache.camel.model.ProcessorDefinition<Type>
org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
All Implemented Interfaces:
CamelContextAware, LineNumberAware, org.apache.camel.model.Block, org.apache.camel.model.OutputNode, NamedNode, HasId, IdAware

@Metadata(label="ipf,eip,transformation") public class ValidatorAdapterDefinition extends ProcessorAdapterDefinition
Author:
Martin Krasser, Christian Ohr
  • Field Summary

    Fields inherited from class org.apache.camel.model.OutputDefinition

    outputs

    Fields inherited from class org.apache.camel.model.ProcessorDefinition

    disabled, inheritErrorHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
     
    profile(Closure<Object> profileExpression)
    Defines the profile for the validation via the given closure
    profile(Expression profileExpression)
    Defines the profile for the validation via the given expression
    Interprets the defined profile as Schematron rules location and validates against it
    void
    setValidator(Validator<?,?> validator)
     
    Defines the static profile for the validation
     
    xsd()
    Interprets the defined profile as W3C schema location and validates against it

    Methods inherited from class org.openehealth.ipf.platform.camel.core.model.ProcessorAdapterDefinition

    getInputExpression, getParamsExpression, input, input, params, params, params, staticParams

    Methods inherited from class org.apache.camel.model.OutputDefinition

    getOutputs, setOutputs

    Methods inherited from class org.apache.camel.model.ProcessorDefinition

    addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, convertBodyTo, delay, delay, delay, disabled, disabled, disabled, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoCatch, endDoTry, endParent, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getDisabled, getIndex, getInterceptStrategies, getLabel, getParent, getRouteConfiguration, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, kamelet, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, nodePrefixId, onCompletion, onException, onException, pausable, pausable, pausable, pausable, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, resumable, resumable, resumable, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setDisabled, setExchangePattern, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, setRouteConfiguration, sort, sort, sort, split, split, split, split, startupOrder, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap

    Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition

    description, description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, hasCustomIdAssigned, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ValidatorAdapterDefinition

      public ValidatorAdapterDefinition()
    • ValidatorAdapterDefinition

      public ValidatorAdapterDefinition(Validator<?,?> validator)
    • ValidatorAdapterDefinition

      public ValidatorAdapterDefinition(String validatorBean)
  • Method Details

    • setValidator

      public void setValidator(Validator<?,?> validator)
    • staticProfile

      public ValidatorAdapterDefinition staticProfile(Object profile)
      Defines the static profile for the validation
      Parameters:
      profile - the profile to use
    • profile

      public ValidatorAdapterDefinition profile(Expression profileExpression)
      Defines the profile for the validation via the given expression
      Parameters:
      profileExpression - the profile expression
    • profile

      public ProcessorAdapterDefinition profile(Closure<Object> profileExpression)
      Defines the profile for the validation via the given closure
      Parameters:
      profileExpression - the profile closure
    • xsd

      Interprets the defined profile as W3C schema location and validates against it
    • schematron

      public ValidatorAdapterDefinition schematron()
      Interprets the defined profile as Schematron rules location and validates against it
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
    • getShortName

      public String getShortName()
      Specified by:
      getShortName in interface NamedNode
      Overrides:
      getShortName in class org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
    • getValidator

      public Validator<?,?> getValidator()
    • getValidatorBean

      public String getValidatorBean()
    • getProfile

      public Object getProfile()
    • getProfileExpression

      public Expression getProfileExpression()