com.mindoo.domino.jna.internal.structs.IntlFormatStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.mindoo.domino.jna.internal.NotesConstants;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class IntlFormatStruct extends BaseStructure {
/**
* OR'd #defines for daylight
* savings, number, time, and date
* formats - see Symbolic Values
* CLOCK_24_HOUR, CURRENCY_SPACE,
* CURRENCY_SUFFIX, DATE_DMY,
* DATE_MDY, DATE_YMD,
* DAYLIGHT_SAVINGS,
* NUMBER_LEADING_ZERO
*/
public short Flags;
/**
* Number of decimal digits in
* fractional monetary amounts
*/
public byte CurrencyDigits;
/**
* Length of this structure If this structure is set from
* scratch, THIS MUST BE SET TO
* THE EXACT SIZE OF THE STRUCTURE
* WHEN ITS POINTER IS PASSED AS
* AN ARGUMENT
*/
public byte Length;
/**
* number of hours added to the time
* to get Greenwich Mean Time. May be
* positive or negative.
*/
public int TimeZone;
/**
* AM/am string used in countries
* with 12 hour time format
* C type : char[ISTRMAX]
*/
public byte[] AMString = new byte[NotesConstants.ISTRMAX];
/**
* PM/pm string used in countries
* with 12 hour time format
* C type : char[ISTRMAX]
*/
public byte[] PMString = new byte[NotesConstants.ISTRMAX];
/**
* Symbol for currency:
* $, Fr, SEK, etc.
* C type : char[ISTRMAX]
*/
public byte[] CurrencyString = new byte[NotesConstants.ISTRMAX];
/**
* Symbol formatting monetary
* amounts in thousands
* C type : char[ISTRMAX]
*/
public byte[] ThousandString = new byte[NotesConstants.ISTRMAX];
/**
* Symbol denoting decimal
* fraction of monetary amounts
* C type : char[ISTRMAX]
*/
public byte[] DecimalString = new byte[NotesConstants.ISTRMAX];
/**
* Character(s) separating
* components of date string
* C type : char[ISTRMAX]
*/
public byte[] DateString = new byte[NotesConstants.ISTRMAX];
/**
* Character(s) separating
* components of time string
* C type : char[ISTRMAX]
*/
public byte[] TimeString = new byte[NotesConstants.ISTRMAX];
/**
* String denoting previous
* day
* C type : char[YTSTRMAX]
*/
public byte[] YesterdayString = new byte[NotesConstants.YTSTRMAX];
/**
* String denoting current day
* C type : char[YTSTRMAX]
*/
public byte[] TodayString = new byte[NotesConstants.YTSTRMAX];
/** C type : char[YTSTRMAX] */
public byte[] TomorrowString = new byte[NotesConstants.YTSTRMAX];
public IntlFormatStruct() {
super();
setAlignType(Structure.ALIGN_NONE);
}
public static IntlFormatStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public IntlFormatStruct run() {
return new IntlFormatStruct();
}
});
}
protected List getFieldOrder() {
return Arrays.asList("Flags", "CurrencyDigits", "Length", "TimeZone", "AMString", "PMString", "CurrencyString", "ThousandString", "DecimalString", "DateString", "TimeString", "YesterdayString", "TodayString", "TomorrowString");
}
public IntlFormatStruct(Pointer peer) {
super(peer);
setAlignType(Structure.ALIGN_NONE);
}
public static IntlFormatStruct newInstance(final Pointer peer) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public IntlFormatStruct run() {
return new IntlFormatStruct(peer);
}
});
}
public static class ByReference extends IntlFormatStruct implements Structure.ByReference {
};
public static class ByValue extends IntlFormatStruct implements Structure.ByValue {
};
}