|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FudgeField
A single field in the Fudge system.
Each Fudge message consists of a list of fields. Each field consists of a Fudge type and value, with an optional name and ordinal. All four combinations of name and ordinal are possible - from both present to both absent.
The type of the value should match the stored Fudge type:
getType().getJavaType().isAssignableFrom(getValue().getClass())
should be true.
Applications are recommended to use this interface rather than a concrete class.
This interface makes no guarantees about the mutability or thread-safety of implementations.
Method Summary | |
---|---|
String |
getName()
Gets the optional field name. |
Short |
getOrdinal()
Gets the optional field ordinal. |
FudgeFieldType<?> |
getType()
Gets the Fudge type of the value. |
Object |
getValue()
Gets the field value. |
Method Detail |
---|
FudgeFieldType<?> getType()
The type should match the value.
Object getValue()
The value is the payload of the field.
Short getOrdinal()
The ordinal is a number that identifies the meaning of the data. It is typically a reference into the taxonomy.
String getName()
The name is a string that identifies the meaning of the data. This is similar to the tag name in XML.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |