com.barchart.feed.ddf.message.api.DDF_BaseMessage Maven / Gradle / Ivy
/**
* 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();
}