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

com.exactpro.sf.common.messages.DefaultMessageStructureVisitor Maven / Gradle / Ivy

There is a newer version: 3.4.260
Show newest version
/******************************************************************************
 * Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.exactpro.sf.common.messages;

import java.math.BigDecimal;
import java.util.List;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

import com.exactpro.sf.common.messages.structures.IFieldStructure;
import com.exactpro.sf.common.util.EPSCommonException;

public class DefaultMessageStructureVisitor implements IMessageStructureVisitor
{
	public void visit(String fieldName, Boolean value,
			IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + boolean.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitBooleanCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "boolean[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, Byte value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + byte.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitByteCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "byte[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, Character value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + char.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitCharCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "char[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, LocalDateTime value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + LocalDateTime.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitDateTimeCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + LocalDateTime[].class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}

    public void visit(String fieldName, LocalDate value, IFieldStructure fldStruct, boolean isDefault)
    {
        throw new EPSCommonException("There is no implementation for " + LocalDate.class.getName() +
                " type. Details: (FieldName = [" + fieldName + "]" );
    }


    public void visitDateCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
    {
        throw new EPSCommonException("There is no implementation for " + LocalDate[].class.getName() +
                " type. Details: (FieldName = [" + fieldName + "]" );
    }


    public void visit(String fieldName, LocalTime value, IFieldStructure fldStruct, boolean isDefault)
    {
        throw new EPSCommonException("There is no implementation for " + LocalTime.class.getName() +
                " type. Details: (FieldName = [" + fieldName + "]" );
    }


    public void visitTimeCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
    {
        throw new EPSCommonException("There is no implementation for " + LocalTime[].class.getName() +
                " type. Details: (FieldName = [" + fieldName + "]" );
    }


	public void visit(String fieldName, Double value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + double.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitDoubleCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "double[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, Float value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + float.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitFloatCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "float[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, Integer value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + int.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitIntCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "int[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, Long value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + long.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitLongCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "long[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, BigDecimal value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + BigDecimal.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitBigDecimalCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "BigDecimal[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, Short value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + short.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitShortCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "short[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visit(String fieldName, String value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + String.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitStringCollection(String fieldName, List value, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "String[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}

	public void visit(String fieldName, IMessage message, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + IMessage.class.getName() +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}


	public void visitMessageCollection(String fieldName, List message, IFieldStructure fldStruct, boolean isDefault)
	{
		throw new EPSCommonException("There is no implementation for " + "IMessage[]" +
				" type. Details: (FieldName = [" + fieldName + "]" );
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy