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

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

There is a newer version: 1.44.0
Show newest version
/*
 * ==========================================================================
 * 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.commons.structs.WrongArraySizeException;
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 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((PrivilegedAction) () -> new NotesItemDefinitionTableExt()); }; @Override protected List getFieldOrder() { return Arrays.asList( "Items", //$NON-NLS-1$ "ItemDefArray", //$NON-NLS-1$ "NumSegments", //$NON-NLS-1$ "ItemNameSegs", //$NON-NLS-1$ "ItemNameSegLengths" //$NON-NLS-1$ ); } /** * @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 WrongArraySizeException("ItemNameSegs"); //$NON-NLS-1$ } this.ItemNameSegs = itemNameSegs; if ((itemNameSegLengths.length != this.ItemNameSegLengths.length)) { throw new WrongArraySizeException("ItemNameSegLengths"); //$NON-NLS-1$ } 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((PrivilegedAction) () -> new NotesItemDefinitionTableExt(items, itemDefArray, numSegments, itemNameSegs, itemNameSegLengths)); }; public NotesItemDefinitionTableExt(Pointer peer) { super(peer); } public static NotesItemDefinitionTableExt newInstance(final Pointer peer) { return AccessController.doPrivileged((PrivilegedAction) () -> 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