All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindoo.domino.jna.internal.structs.NotesItemDefinitionTableExt Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
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 NotesItemDefinitionTableExt extends BaseStructure { /** number of items in the table */ public int Items; /** * Memory handle of ITEM_DEFINITION_EXT
* structures */ public int ItemDefArray; /** * Number of non-null segments in
* ItemNameSegs */ public int NumSegments; /** * Segments of
* packed text
* C type : DHANDLE[MAX_ITEMDEF_SEGMENTS] */ public int[] ItemNameSegs = new int[NotesConstants.MAX_ITEMDEF_SEGMENTS]; /** * Length of
* each non-null text segment
* C type : DWORD[MAX_ITEMDEF_SEGMENTS] */ public int[] ItemNameSegLengths = new int[NotesConstants.MAX_ITEMDEF_SEGMENTS]; public NotesItemDefinitionTableExt() { super(); } public static NotesItemDefinitionTableExt newInstance() { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesItemDefinitionTableExt run() { return new NotesItemDefinitionTableExt(); }}); }; protected List getFieldOrder() { return Arrays.asList("Items", "ItemDefArray", "NumSegments", "ItemNameSegs", "ItemNameSegLengths"); } /** * @param items number of items in the table
* @param itemDefArray Memory handle of ITEM_DEFINITION_EXT
* structures
* @param numSegments Number of non-null segments in
* ItemNameSegs
* @param itemNameSegs Segments of
* packed text
* C type : DHANDLE[MAX_ITEMDEF_SEGMENTS]
* @param itemNameSegLengths Length of
* each non-null text segment
* C type : DWORD[MAX_ITEMDEF_SEGMENTS] */ public NotesItemDefinitionTableExt(int items, int itemDefArray, int numSegments, int itemNameSegs[], int itemNameSegLengths[]) { super(); this.Items = items; this.ItemDefArray = itemDefArray; this.NumSegments = numSegments; if ((itemNameSegs.length != this.ItemNameSegs.length)) throw new IllegalArgumentException("Wrong array size !"); this.ItemNameSegs = itemNameSegs; if ((itemNameSegLengths.length != this.ItemNameSegLengths.length)) throw new IllegalArgumentException("Wrong array size !"); this.ItemNameSegLengths = itemNameSegLengths; } public static NotesItemDefinitionTableExt newInstance(final int items, final int itemDefArray, final int numSegments, final int itemNameSegs[], final int itemNameSegLengths[]) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesItemDefinitionTableExt run() { return new NotesItemDefinitionTableExt(items, itemDefArray, numSegments, itemNameSegs, itemNameSegLengths); }}); }; public NotesItemDefinitionTableExt(Pointer peer) { super(peer); } public static NotesItemDefinitionTableExt newInstance(final Pointer peer) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesItemDefinitionTableExt run() { return new NotesItemDefinitionTableExt(peer); }}); }; public static class ByReference extends NotesItemDefinitionTableExt implements Structure.ByReference { }; public static class ByValue extends NotesItemDefinitionTableExt implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy