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

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

The 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 com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.Union;

/**
 * native declaration : line 2
* 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 ValueUnion extends Union { /** When Type == CAVT_Int, value as int */ public int n; /** * When Type == CAVT_NoteId, value as NOTEID
* C type : NOTEID */ public NoteIdStruct nid; /** * When Type == CAVT_UNID, value as UNID
* C type : UNID */ public NotesUniversalNoteIdStruct unid; /** * When Type == CAVT_String, value as nul-terminated string
* C type : char* */ public Pointer name; /** * When Type == CAVT_StringList,value is list of NULL terminated strings.
* C type : slist_struct */ public StringListStruct slist; /** native declaration : line 8 */ public ValueUnion() { super(); } public static ValueUnion newInstance() { return AccessController.doPrivileged((PrivilegedAction) () -> new ValueUnion()); } /** * @param unid When Type == CAVT_UNID, value as UNID
* C type : UNID */ public ValueUnion(NotesUniversalNoteIdStruct unid) { super(); this.unid = unid; setType(NotesUniversalNoteIdStruct.class); } public static ValueUnion newInstance(final NotesUniversalNoteIdStruct unid) { return AccessController.doPrivileged((PrivilegedAction) () -> new ValueUnion(unid)); } /** * @param slist When Type == CAVT_StringList,value is list of NULL terminated strings.
* C type : slist_struct */ public ValueUnion(StringListStruct slist) { super(); this.slist = slist; setType(StringListStruct.class); } public static ValueUnion newInstance(final StringListStruct slist) { return AccessController.doPrivileged((PrivilegedAction) () -> new ValueUnion(slist)); } /** * @param s When Type == CAVT_String, value as nul-terminated string
* C type : char* */ public ValueUnion(Pointer s) { super(); this.name = s; setType(Pointer.class); } public static ValueUnion newInstance(final Pointer s) { return AccessController.doPrivileged((PrivilegedAction) () -> new ValueUnion(s)); } public ValueUnion(NoteIdStruct nid) { super(); this.nid = nid; setType(NoteIdStruct.class); } public static ValueUnion newInstance(final NoteIdStruct nid) { return AccessController.doPrivileged((PrivilegedAction) () -> new ValueUnion(nid)); } /** @param n When Type == CAVT_Int, value as int */ public ValueUnion(int n) { super(); this.n = n; setType(Integer.TYPE); } public static ValueUnion newInstance(final int n) { return AccessController.doPrivileged((PrivilegedAction) () -> new ValueUnion(n)); } public static class ByReference extends ValueUnion implements Structure.ByReference { }; public static class ByValue extends ValueUnion implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy