Java Code Examples for com.gs.fw.common.mithra.attribute.Attribute#getAttributeName()

The following examples show how to use com.gs.fw.common.mithra.attribute.Attribute#getAttributeName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BinaryCompressor.java    From reladomo with Apache License 2.0 5 votes vote down vote up
private byte getType(Attribute a)
{
    byte result = CLASS_TO_TYPE_MAP.getIfAbsent(a.valueType(), (byte) -1);
    if (result < 0)
        throw new RuntimeException("Unrecognized type for attribute "+a.getAttributeName());
    return result;
}
 
Example 2
Source File: ExercisesAdvancedFinder.java    From reladomo-kata with Apache License 2.0 4 votes vote down vote up
public String valueOf(Attribute attribute)
{
    return attribute.getAttributeName();
}