org.marketcetera.util.quickfix
Class AnalyzedField

java.lang.Object
  extended by org.marketcetera.util.quickfix.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 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Method Summary
 List<AnalyzedGroup> getGroups()
          Returns the receiver's groups.
 String getName()
          Returns the receiver's name.
 Field<?> getQField()
          Returns the receiver's QuickFIX/J field.
 int getQFieldTag()
          Returns the receiver's QuickFIX/J field tag.
 Object getQFieldValue()
          Returns the receiver's QuickFIX/J field value.
 String getQFieldValueAsString()
          Returns the receiver's QuickFIX/J field value in string form.
 FieldType getQType()
          Returns the receiver's QuickFIX/J field type.
 boolean getRequired()
          Returns true if the receiver is a required field.
 String getValue()
          Returns the receiver's (analyzed) value.
 void print(PrintStream stream, String prefix)
          Prints the receiver onto the given stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getQField

public Field<?> getQField()
Returns the receiver's QuickFIX/J field.

Returns:
The field.

getQType

public 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.


Copyright © 2012. All Rights Reserved.