All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.module.extension.internal.introspection.SimpleTypeDataQualifierVisitor Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
/*
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.module.extension.internal.introspection;

import org.mule.extension.introspection.DataQualifier;
import org.mule.extension.introspection.DataQualifierVisitor;

/**
 * Base implementation for a {@link DataQualifierVisitor} which adds the new
 * method {@link #onSimpleType()} which is invoked by all the {@link DataQualifier}s
 * which refer to a simple type. Those would be:
 * 

*

    *
  • {@link #onBoolean()}
  • *
  • {@link #onInteger()}
  • *
  • {@link #onDouble()}
  • *
  • {@link #onDecimal()}
  • *
  • {@link #onString()}
  • *
  • {@link #onLong()}
  • *
  • {@link #onEnum()}
  • *
*

* All other qualifiers delegate into {@link #defaultOperation()} by default, but they * can be overridden at will * * @since 3.7.0 */ public abstract class SimpleTypeDataQualifierVisitor extends AbstractDataQualifierVisitor { protected abstract void onSimpleType(); @Override public void onBoolean() { onSimpleType(); } @Override public void onInteger() { onSimpleType(); } @Override public void onDouble() { onSimpleType(); } @Override public void onDecimal() { onSimpleType(); } @Override public void onString() { onSimpleType(); } @Override public void onLong() { onSimpleType(); } @Override public void onEnum() { onSimpleType(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy