You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field attributes such as presence do not seem to be accessible
<field description="Account mnemonic as agreed between buy and sell sides, e.g. broker and institution or investor/intermediary and fund manager." id="1" name="Account" semanticType="String" presence="required" offset="25" type="String12"/>
//String example in rlsbe
public static int accountId()
{
return 1;
}
public static int accountSinceVersion()
{
return 0;
}
public static String accountMetaAttribute(final MetaAttribute metaAttribute)
{
switch (metaAttribute)
{
case EPOCH: return "unix";
case TIME_UNIT: return "nanosecond";
case SEMANTIC_TYPE: return "String";
}
return "";
}
public static byte accountNullValue()
{
return (byte)0;
}
public static byte accountMinValue()
{
return (byte)32;
}
public static byte accountMaxValue()
{
return (byte)126;
}
public static int accountLength()
{
return 12;
}
public byte account(final int index)
{
if (index < 0 || index >= 12)
{
throw new IndexOutOfBoundsException("index out of range: index=" + index);
}
final int pos = this.offset + 25 + (index * 1);
return buffer.getByte(pos);
}
public static String accountCharacterEncoding()
{
return "UTF-8";
}
public int getAccount(final byte[] dst, final int dstOffset)
{
final int length = 12;
if (dstOffset < 0 || dstOffset > (dst.length - length))
{
throw new IndexOutOfBoundsException("dstOffset out of range for copy: offset=" + dstOffset);
}