Package com.wombat.mama
Class MamaMdDataType
- java.lang.Object
-
- com.wombat.mama.MamaMdDataType
-
public final class MamaMdDataType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static MamaMdDataType
NEWS_QUERY
static int
NEWS_QUERY_VALUE
static MamaMdDataType
NEWS_STORY
static int
NEWS_STORY_VALUE
static MamaMdDataType
ORDER_BOOK
static int
ORDER_BOOK_VALUE
static MamaMdDataType
PROPERTY
static int
PROPERTY_VALUE
static MamaMdDataType
STANDARD
static int
STANDARD_VALUE
static MamaMdDataType
TEMPLATE
static int
TEMPLATE_VALUE
static MamaMdDataType
USAGE_LOG
static int
USAGE_LOG_VALUE
static MamaMdDataType
WORLDVIEW
static int
WORLDVIEW_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MamaMdDataType
enumObjectForValue(int value)
Return an instance of a MamaMdDataType corresponding to the specified integer value.boolean
equals(MamaMdDataType appDataType)
Compare the two types for equality.int
getValue()
Returns the integer value for the type.java.lang.String
toString()
Returns the stringified name for the enumerated type.static java.lang.String
valueToString(int value)
Utility method for mapping type integer values to corresponding string values.
-
-
-
Field Detail
-
STANDARD_VALUE
public static final int STANDARD_VALUE
- See Also:
- Constant Field Values
-
STANDARD
public static final MamaMdDataType STANDARD
-
ORDER_BOOK_VALUE
public static final int ORDER_BOOK_VALUE
- See Also:
- Constant Field Values
-
ORDER_BOOK
public static final MamaMdDataType ORDER_BOOK
-
NEWS_STORY_VALUE
public static final int NEWS_STORY_VALUE
- See Also:
- Constant Field Values
-
NEWS_STORY
public static final MamaMdDataType NEWS_STORY
-
WORLDVIEW_VALUE
public static final int WORLDVIEW_VALUE
- See Also:
- Constant Field Values
-
WORLDVIEW
public static final MamaMdDataType WORLDVIEW
-
PROPERTY_VALUE
public static final int PROPERTY_VALUE
- See Also:
- Constant Field Values
-
PROPERTY
public static final MamaMdDataType PROPERTY
-
USAGE_LOG_VALUE
public static final int USAGE_LOG_VALUE
- See Also:
- Constant Field Values
-
USAGE_LOG
public static final MamaMdDataType USAGE_LOG
-
NEWS_QUERY_VALUE
public static final int NEWS_QUERY_VALUE
- See Also:
- Constant Field Values
-
NEWS_QUERY
public static final MamaMdDataType NEWS_QUERY
-
TEMPLATE_VALUE
public static final int TEMPLATE_VALUE
- See Also:
- Constant Field Values
-
TEMPLATE
public static final MamaMdDataType TEMPLATE
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the stringified name for the enumerated type.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Name for the type.
-
getValue
public int getValue()
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.- Returns:
- The integer type.
-
equals
public boolean equals(MamaMdDataType appDataType)
Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.- Parameters:
appDataType
- The object to check equality against.- Returns:
- Whether the two objects are equal.
-
valueToString
public static java.lang.String valueToString(int value)
Utility method for mapping type integer values to corresponding string values. Returns "UNKNOWN" is the int type value is not recognised.- Parameters:
value
- The int value for a MamaMdDataType.- Returns:
- The string name value of the specified MamaMdDataType integer value.
-
enumObjectForValue
public static MamaMdDataType enumObjectForValue(int value)
Return an instance of a MamaMdDataType corresponding to the specified integer value. Returns null if the integer value is not recognised.- Parameters:
value
- Int value for a MamaMdDataType.- Returns:
- Instance of a MamaMdDataType if a mapping exists.
-
-