Class AnalyzedField


  • public class AnalyzedField
    extends Object
    Analyzes a QuickFIX/J field, producing a human-readable representation of its contents.
    Since:
    1.0.0
    Version:
    $Id: AnalyzedField.java 17411 2017-04-28 14:50:38Z colin $
    Author:
    tlerios@marketcetera.com
    • Field Detail

      • mQField

        private final quickfix.Field<?> mQField
      • mQType

        private final quickfix.FieldType mQType
      • mName

        private final String mName
      • mRequired

        private final boolean mRequired
      • mValue

        private final String mValue
    • Constructor Detail

      • AnalyzedField

        AnalyzedField​(quickfix.DataDictionary nameQDict,
                      quickfix.DataDictionary scopeQDict,
                      quickfix.FieldMap qMap,
                      String msgType,
                      quickfix.Field<?> qField)
        Creates a new analyzed field for the given QuickFIX/J field. The field is part of the given QuickFIX/J field map, and the map is part of (or same as) the message with the given type. One data dictionary is used to translate field tags and enumerated values (the name dictionary); another (the scope dictionary) is used for scope-dependent lookups such as required flags and subgroup analysis.
        Parameters:
        nameQDict - The name dictionary.
        scopeQDict - The scope dictionary.
        qMap - The field map.
        msgType - The message type.
        qField - The field.
    • Method Detail

      • getQField

        public quickfix.Field<?> getQField()
        Returns the receiver's QuickFIX/J field.
        Returns:
        The field.
      • getQType

        public quickfix.FieldType getQType()
        Returns the receiver's QuickFIX/J field type.
        Returns:
        The type.
      • getName

        public String getName()
        Returns the receiver's name.
        Returns:
        The name.
      • getRequired

        public boolean getRequired()
        Returns true if the receiver is a required field.
        Returns:
        True if so.
      • getValue

        public String getValue()
        Returns the receiver's (analyzed) value.
        Returns:
        The value.
      • getGroups

        public List<AnalyzedGroup> getGroups()
        Returns the receiver's groups.
        Returns:
        The groups.
      • getQFieldTag

        public int getQFieldTag()
        Returns the receiver's QuickFIX/J field tag.
        Returns:
        The tag.
      • getQFieldValue

        public Object getQFieldValue()
        Returns the receiver's QuickFIX/J field value.
        Returns:
        The value. It may be null.
      • getQFieldValueAsString

        public String getQFieldValueAsString()
        Returns the receiver's QuickFIX/J field value in string form.
        Returns:
        The value. It may be null.
      • print

        public void print​(PrintStream stream,
                          String prefix)
        Prints the receiver onto the given stream. Each line printed is preceded by the given prefix.
        Parameters:
        stream - The stream.
        prefix - The prefix.