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

com.barchart.feed.ddf.message.api.DDF_BaseMessage Maven / Gradle / Ivy

There is a newer version: 4.2.73
Show newest version
/**
 * Copyright (C) 2011-2012 Barchart, Inc. 
 *
 * All rights reserved. Licensed under the OSI BSD License.
 *
 * http://www.opensource.org/licenses/bsd-license.php
 */
package com.barchart.feed.ddf.message.api;

import com.barchart.feed.ddf.message.enums.DDF_MessageType;
import com.barchart.util.common.anno.NotMutable;

/**
 * base type for all ddf/xml messasges;
 * 
 * includes: link control, market data, url lookup.
 */
@NotMutable
public interface DDF_BaseMessage {

	/**
	 * definitive ddf message type
	 */
	DDF_MessageType getMessageType();

	/**
	 * http://en.wikipedia.org/wiki/Visitor_pattern
	 */
	 Result accept(DDF_MessageVisitor visitor,
			Param param);

	/**
	 * print serialized message form
	 */
	@Override
	String toString();

	/**
	 * pretty print individual message fields
	 */
	String toStringFields();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy