com.hcl.domino.jna.internal.structs.IntlFormatStruct Maven / Gradle / Ivy
/*
* ==========================================================================
* Copyright (C) 2019-2022 HCL America, Inc. ( http://www.hcl.com/ )
* All rights reserved.
* ==========================================================================
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. You may obtain a
* copy of the License at .
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
* ==========================================================================
*/
package com.hcl.domino.jna.internal.structs;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.hcl.domino.misc.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((PrivilegedAction) () -> new IntlFormatStruct());
}
@Override
protected List getFieldOrder() {
return Arrays.asList(
"Flags", //$NON-NLS-1$
"CurrencyDigits", //$NON-NLS-1$
"Length", //$NON-NLS-1$
"TimeZone", //$NON-NLS-1$
"AMString", //$NON-NLS-1$
"PMString", //$NON-NLS-1$
"CurrencyString", //$NON-NLS-1$
"ThousandString", //$NON-NLS-1$
"DecimalString", //$NON-NLS-1$
"DateString", //$NON-NLS-1$
"TimeString", //$NON-NLS-1$
"YesterdayString", //$NON-NLS-1$
"TodayString", //$NON-NLS-1$
"TomorrowString" //$NON-NLS-1$
);
}
public IntlFormatStruct(Pointer peer) {
super(peer);
setAlignType(Structure.ALIGN_NONE);
}
public static IntlFormatStruct newInstance(final Pointer peer) {
return AccessController.doPrivileged((PrivilegedAction) () -> new IntlFormatStruct(peer));
}
public static class ByReference extends IntlFormatStruct implements Structure.ByReference {
};
public static class ByValue extends IntlFormatStruct implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy