public final class CodecConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_FIX_TAGS_IN_JAVADOC |
static java.lang.String |
DEFAULT_PARENT_PACKAGE |
static java.lang.String |
FIX_CODECS_ALLOW_DUPLICATE_FIELDS_PROPERTY
Boolean system property to turn on or off duplicated fields validation.
|
static java.lang.String |
FIX_TAGS_IN_JAVADOC |
static java.lang.String |
FLYWEIGHTS_ENABLED_PROPERTY |
static java.lang.String |
PARENT_PACKAGE_PROPERTY |
static java.lang.String |
REJECT_UNKNOWN_ENUM_VALUE_PROPERTY |
static java.lang.String |
WRAP_EMPTY_BUFFER
Boolean system property to avoid throwing when an optional string field is unset.
|
| Constructor and Description |
|---|
CodecConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CodecConfiguration |
allowDuplicateFields(boolean allowDuplicateFields)
Allow duplicate fields.
|
CodecConfiguration |
codecRejectUnknownEnumValueEnabled(java.lang.String codecRejectUnknownEnumValueEnabled)
String representing a Java expressions that evaluates to a boolean within the codec that states whether
an unknown enum value within a codec should be rejected or not.
|
CodecConfiguration |
fileNames(java.lang.String... fileNames)
Provide the XML file, or files, that are used to generate the Dictionaries.
|
CodecConfiguration |
fileStreams(java.io.InputStream... fileStreams)
Provide the XML document, or documents, that are used to generate the Dictionaries as instance of
InputStream. |
boolean |
fixTagsInJavadoc() |
CodecConfiguration |
fixTagsInJavadoc(boolean fixTagsInJavadoc)
Sets whether to generate javadoc tags with the FIX tags in.
|
CodecConfiguration |
flyweightsEnabled(boolean flyweightsEnabled) |
uk.co.real_logic.artio.dictionary.generation.GeneratorDictionaryConfiguration |
nonSharedDictionary() |
CodecConfiguration |
outputPath(java.lang.String outputPath)
Sets the output path where codecs are generated.
|
CodecConfiguration |
parentPackage(java.lang.String parentPackage)
Sets the parent package where classes are generated.
|
SharedCodecConfiguration |
sharedCodecsEnabled()
Enable the generation of shared codecs.
|
CodecConfiguration |
wrapEmptyBuffer(boolean wrapEmptyBuffer)
Suppresses checks for the presence of optional string fields (i.e.
|
public static final java.lang.String FIX_CODECS_ALLOW_DUPLICATE_FIELDS_PROPERTY
Fix specification vol 1: A tag number (field) should only appear in a message once. If it appears more than once in the message it should be considered an error with the specification document.
Turning this option on may break parsing: this option should be used for support fix specification with error
only. It is recommended, where possible, to correct your FIX XML file instead of using this option in order
to support an invalid XML file.
The duplicated fields is allowed in the following case:
message body: field; repeating group: the_other_field+ field;
public static final java.lang.String WRAP_EMPTY_BUFFER
This is useful to call getters accepting an AsciiSequenceView
without checking whether the field is set.
public static final java.lang.String PARENT_PACKAGE_PROPERTY
public static final java.lang.String FLYWEIGHTS_ENABLED_PROPERTY
public static final java.lang.String REJECT_UNKNOWN_ENUM_VALUE_PROPERTY
public static final java.lang.String FIX_TAGS_IN_JAVADOC
public static final java.lang.String DEFAULT_PARENT_PACKAGE
public static final java.lang.String DEFAULT_FIX_TAGS_IN_JAVADOC
public CodecConfiguration outputPath(java.lang.String outputPath)
outputPath - the output path where codecs are generatedpublic CodecConfiguration parentPackage(java.lang.String parentPackage)
DEFAULT_PARENT_PACKAGE.
Different parent packages can be used to use multiple different fix dictionary versions, see the
wiki for details.parentPackage - the parent package where classes are generated.public CodecConfiguration flyweightsEnabled(boolean flyweightsEnabled)
public CodecConfiguration wrapEmptyBuffer(boolean wrapEmptyBuffer)
WRAP_EMPTY_BUFFER system property.wrapEmptyBuffer - true to suppress check of optional strings, false to keep checking (default)public CodecConfiguration allowDuplicateFields(boolean allowDuplicateFields)
FIX_CODECS_ALLOW_DUPLICATE_FIELDS_PROPERTY if set.
Can be overridden for individual dictionaries in shared codec mode using
SharedCodecConfiguration.withDictionary(String, boolean, String...) and
SharedCodecConfiguration.withDictionary(String, boolean, InputStream...). If not overridden
then shared codecs default to this value.allowDuplicateFields - true to enable, false to disablepublic CodecConfiguration fileNames(java.lang.String... fileNames)
SharedCodecConfiguration.withDictionary(String, boolean, String...) method and not
this one. fileStreams(InputStream...) is an alternative configuration option that lets you provide
inputstreams as the source of your XML files.fileNames - the file names to use as sources of XML documentspublic CodecConfiguration fileStreams(java.io.InputStream... fileStreams)
InputStream. Multiple dictionary files can be
used to provide split data and transport XML files as used by FIX 5.0 / FIXT. If you want to generate a shared
dictionary then please use SharedCodecConfiguration.withDictionary(String, boolean, InputStream...) method and not
this one. fileNames(String...) is an alternative configuration option that lets you provide
file names as the source of your XML files.fileStreams - the file streams to use as sources of XML documentspublic CodecConfiguration codecRejectUnknownEnumValueEnabled(java.lang.String codecRejectUnknownEnumValueEnabled)
"true" or "ExternalConfigClass.REJECT_UNKNOWN_ENUM".codecRejectUnknownEnumValueEnabled - the Stringpublic SharedCodecConfiguration sharedCodecsEnabled()
public CodecConfiguration fixTagsInJavadoc(boolean fixTagsInJavadoc)
-Dfix.codecs.tags_in_javadoc=false.fixTagsInJavadoc - true to generate javadoc tags with the FIX tags in.public uk.co.real_logic.artio.dictionary.generation.GeneratorDictionaryConfiguration nonSharedDictionary()
public boolean fixTagsInJavadoc()
Copyright © 2015-2022 Real Logic Limited. All Rights Reserved.