Classes Files

com::wombat::mama::MamaMdDataType

Public Functions

  Name
String toString()
int getValue()
boolean equals(MamaMdDataType appDataType)
String valueToString(int value)
MamaMdDataType enumObjectForValue(int value)

Public Attributes

  Name
final int STANDARD_VALUE
final MamaMdDataType STANDARD
final int ORDER_BOOK_VALUE
final MamaMdDataType ORDER_BOOK
final int NEWS_STORY_VALUE
final MamaMdDataType NEWS_STORY
final int WORLDVIEW_VALUE
final MamaMdDataType WORLDVIEW
final int PROPERTY_VALUE
final MamaMdDataType PROPERTY
final int USAGE_LOG_VALUE
final MamaMdDataType USAGE_LOG
final int NEWS_QUERY_VALUE
final MamaMdDataType NEWS_QUERY
final int TEMPLATE_VALUE
final MamaMdDataType TEMPLATE

Public Functions Documentation

function toString

inline String toString()

Return: Name for the type.

Returns the stringified name for the enumerated type.

function getValue

inline int getValue()

Return: The integer type.

Returns the integer value for the type. This value can be used in switch statements against the public XXX_VALUE static members of the class.

function equals

inline boolean equals(
    MamaMdDataType appDataType
)

Parameters:

  • appDataType The object to check equality against.

Return: Whether the two objects are equal.

Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.

function valueToString

static inline String valueToString(
    int value
)

Parameters:

Return: The string name value of the specified MamaMdDataType integer value.

Utility method for mapping type integer values to corresponding string values.

Returns “UNKNOWN” is the int type value is not recognised.

function enumObjectForValue

static inline MamaMdDataType enumObjectForValue(
    int value
)

Parameters:

Return: Instance of a MamaMdDataType if a mapping exists.

Return an instance of a MamaMdDataType corresponding to the specified integer value. Returns null if the integer value is not recognised.

Public Attributes Documentation

variable STANDARD_VALUE

static final int STANDARD_VALUE = 0;

variable STANDARD

static final MamaMdDataType STANDARD = new MamaMdDataType
                             (valueToString (STANDARD_VALUE), STANDARD_VALUE);

variable ORDER_BOOK_VALUE

static final int ORDER_BOOK_VALUE = 1;

variable ORDER_BOOK

static final MamaMdDataType ORDER_BOOK = new MamaMdDataType
                             (valueToString (ORDER_BOOK_VALUE), ORDER_BOOK_VALUE);

variable NEWS_STORY_VALUE

static final int NEWS_STORY_VALUE = 2;

variable NEWS_STORY

static final MamaMdDataType NEWS_STORY = new MamaMdDataType
                             (valueToString (NEWS_STORY_VALUE), NEWS_STORY_VALUE);

variable WORLDVIEW_VALUE

static final int WORLDVIEW_VALUE = 3;

variable WORLDVIEW

static final MamaMdDataType WORLDVIEW = new MamaMdDataType
                             (valueToString (WORLDVIEW_VALUE), WORLDVIEW_VALUE);

variable PROPERTY_VALUE

static final int PROPERTY_VALUE = 4;

variable PROPERTY

static final MamaMdDataType PROPERTY = new MamaMdDataType
                             (valueToString (PROPERTY_VALUE), PROPERTY_VALUE);

variable USAGE_LOG_VALUE

static final int USAGE_LOG_VALUE = 5;

variable USAGE_LOG

static final MamaMdDataType USAGE_LOG = new MamaMdDataType
                             (valueToString (USAGE_LOG_VALUE), USAGE_LOG_VALUE);

variable NEWS_QUERY_VALUE

static final int NEWS_QUERY_VALUE = 6;

variable NEWS_QUERY

static final MamaMdDataType NEWS_QUERY = new MamaMdDataType
                             (valueToString (NEWS_QUERY_VALUE), NEWS_QUERY_VALUE);

variable TEMPLATE_VALUE

static final int TEMPLATE_VALUE = 7;

variable TEMPLATE

static final MamaMdDataType TEMPLATE = new MamaMdDataType
                             (valueToString (TEMPLATE_VALUE), TEMPLATE_VALUE);

Updated on 2023-03-31 at 15:29:43 +0100