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

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

There is a newer version: 1.41.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 com.hcl.domino.misc.NotesConstants;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
/**
 * 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 NotesFieldFormulaStruct extends BaseStructure { /** * the query results name
* C type : char[MAX_CMD_VALLEN] */ public byte[] resultsname = new byte[NotesConstants.MAX_CMD_VALLEN]; /** * columnname \ufffd refers to sort column name - programmatic name
* C type : char[MAX_CMD_VALLEN] */ public byte[] columnname = new byte[NotesConstants.MAX_CMD_VALLEN]; /** * how to build result data from documents
* C type : MEMHANDLE */ public int hFormula; /** We will flag any non-matched formula entry misspelling, etc */ public boolean bMatched; public NotesFieldFormulaStruct() { super(); } @Override protected int getOverrideAlignment() { return Structure.ALIGN_DEFAULT; } public static NotesFieldFormulaStruct newInstance() { return AccessController.doPrivileged((PrivilegedAction) () -> { return new NotesFieldFormulaStruct(); }); } @SuppressWarnings("nls") @Override protected List getFieldOrder() { return Arrays.asList("resultsname", "columnname", "hFormula", "bMatched"); } /** * @param resultsname the query results name
* C type : char[MAX_CMD_VALLEN]
* @param columnname columnname \ufffd refers to sort column name - programmatic name
* C type : char[MAX_CMD_VALLEN]
* @param hFormula how to build result data from documents
* C type : MEMHANDLE
* @param bMatched We will flag any non-matched formula entry misspelling, etc */ public NotesFieldFormulaStruct(byte resultsname[], byte columnname[], int hFormula, boolean bMatched) { super(); if ((resultsname.length != this.resultsname.length)) throw new IllegalArgumentException("Wrong array size !"); this.resultsname = resultsname; if ((columnname.length != this.columnname.length)) throw new IllegalArgumentException("Wrong array size !"); this.columnname = columnname; this.hFormula = hFormula; this.bMatched = bMatched; } public NotesFieldFormulaStruct(Pointer peer) { super(peer); } public static NotesFieldFormulaStruct newInstance(Pointer peer) { return AccessController.doPrivileged((PrivilegedAction) () -> { return new NotesFieldFormulaStruct(peer); }); } public static class ByReference extends NotesFieldFormulaStruct implements Structure.ByReference { }; public static NotesFieldFormulaStruct.ByReference newInstanceByReference() { return AccessController.doPrivileged((PrivilegedAction) () -> { return new NotesFieldFormulaStruct.ByReference(); }); } public static class ByValue extends NotesFieldFormulaStruct implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy