com.teraspaces.qwfix
Class FIXSchemaField

java.lang.Object
  extended by com.teraspaces.qwfix.FIXObject
      extended by com.teraspaces.qwfix.FIXSchemaField

public final class FIXSchemaField
extends FIXObject

Represents the definition of a Field in FIX schema. This class cannot be inherited.


Field Summary
static int INVALID_TAG
           
 
Fields inherited from class com.teraspaces.qwfix.FIXObject
DOCUMENT_TYPE_FAST_SCHEMA, DOCUMENT_TYPE_FIX_ENGINE, DOCUMENT_TYPE_FIX_SCHEMA, DOCUMENT_TYPE_PROCESS, DOCUMENT_TYPE_SCHEDULER, DOCUMENT_TYPE_SESSION, DOCUMENT_TYPE_VISUAL_LAMBDA
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 String getDescription()
          Gets the description.
 FIXSchemaField getEncodedDataField()
          Gets the encoded data field.
 int getEncodedDataTag()
          Gets the encoded data tag.
 FIXSchemaField getEncodedLenField()
          Gets the encoded len field.
 int getEncodedLenTag()
          Gets the encoded len tag.
 FIXSchemaFieldGroup getFieldGroup()
          Gets the field group.
 String getName()
          Gets the name.
 Class<?> getNativeType()
          Gets the native type.
 FIXSchema getSchema()
          Gets the schema.
 int getTag()
          Gets the tag.
 String getType()
          Gets the type.
 FIXSchemaValidValues getValidValues()
          Gets the list of valid values.
 boolean getValidValuesExclusive()
          Gets a value indicating whether the valid values are exclusive.
 int hashCode()
           
 boolean isEncodedData()
          Checks if the field is an encoded data field.
 boolean isEncodedLen()
          Checks if it is encoded len field.
 boolean isMultipleValueString()
          Checks if is multiple value string.
 boolean isValidValue(char value)
          Checks if is valid value.
 boolean isValidValue(int value)
          Checks if is valid value.
 boolean isValidValue(String value)
          Checks if is valid value.
 Object typeValueFromString(String value)
          Type value from string.
 
Methods inherited from class com.teraspaces.qwfix.FIXObject
createXmlDocument, getGuid, parseXmlDocument, readXmlDocumentInfo, writeXmlDocumentInfo
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_TAG

public static final int INVALID_TAG
See Also:
Constant Field Values
Method Detail

getSchema

public FIXSchema getSchema()
Gets the schema.

Returns:
the schema

getTag

public int getTag()
Gets the tag.

Returns:
the tag

getName

public String getName()
Gets the name.

Returns:
the name

getType

public String getType()
Gets the type.

Returns:
the type

getDescription

public String getDescription()
Gets the description.

Returns:
the description

getValidValues

public FIXSchemaValidValues getValidValues()
Gets the list of valid values.

Returns:
the list of valid values

getValidValuesExclusive

public boolean getValidValuesExclusive()
Gets a value indicating whether the valid values are exclusive. If valid values are exclusive only the values defined in the ValidValues list are valid for this field.

Returns:
the valid values exclusive

isEncodedData

public boolean isEncodedData()
Checks if the field is an encoded data field.

Returns:
true, if it is encoded data field

getEncodedLenField

public FIXSchemaField getEncodedLenField()
Gets the encoded len field.

Returns:
the encoded len field; or null if this field is not an encoded data field.

isEncodedLen

public boolean isEncodedLen()
Checks if it is encoded len field.

Returns:
true, if is encoded len field

getEncodedDataTag

public int getEncodedDataTag()
Gets the encoded data tag.

Returns:
the encoded data tag, or -1

getEncodedLenTag

public int getEncodedLenTag()
Gets the encoded len tag.

Returns:
the encoded len tag; or -1

getFieldGroup

public FIXSchemaFieldGroup getFieldGroup()
Gets the field group.

Returns:
the field group

getEncodedDataField

public FIXSchemaField getEncodedDataField()
Gets the encoded data field.

Returns:
the encoded data field; or null

getNativeType

public Class<?> getNativeType()
Gets the native type.

Returns:
the native type

isMultipleValueString

public boolean isMultipleValueString()
Checks if is multiple value string.

Returns:
true, if is multiple value string

typeValueFromString

public Object typeValueFromString(String value)
Type value from string.

Parameters:
value - the value
Returns:
the object

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isValidValue

public boolean isValidValue(int value)
Checks if is valid value.

Parameters:
value - the value
Returns:
true, if is valid value

isValidValue

public boolean isValidValue(char value)
Checks if is valid value.

Parameters:
value - the value
Returns:
true, if is valid value

isValidValue

public boolean isValidValue(String value)
Checks if is valid value.

Parameters:
value - the value
Returns:
true, if is valid value