
com.mindoo.domino.jna.internal.structs.NotesItemDefinitionTableLock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs;
import com.mindoo.domino.jna.internal.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 NotesItemDefinitionTableLock extends BaseStructure {
public int Items;
/** C type : void* */
public Pointer pItemDefArray;
/** C type : char*[MAX_ITEMDEF_SEGMENTS] */
public Pointer[] ItemText = new Pointer[NotesConstants.MAX_ITEMDEF_SEGMENTS];
public int NumSegments;
/** C type : DWORD[MAX_ITEMDEF_SEGMENTS] */
public int[] ItemNameSegLengths = new int[NotesConstants.MAX_ITEMDEF_SEGMENTS];
public NotesItemDefinitionTableLock() {
super();
}
public static NotesItemDefinitionTableLock newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesItemDefinitionTableLock run() {
return new NotesItemDefinitionTableLock();
}});
};
protected List getFieldOrder() {
return Arrays.asList("Items", "pItemDefArray", "ItemText", "NumSegments", "ItemNameSegLengths");
}
/**
* @param pItemDefArray C type : void*
* @param itemText C type : char*[MAX_ITEMDEF_SEGMENTS]
* @param itemNameSegLengths C type : DWORD[MAX_ITEMDEF_SEGMENTS]
*/
public NotesItemDefinitionTableLock(int items, Pointer pItemDefArray, Pointer itemText[], int numSegments, int itemNameSegLengths[]) {
super();
this.Items = items;
this.pItemDefArray = pItemDefArray;
if ((itemText.length != this.ItemText.length))
throw new IllegalArgumentException("Wrong array size !");
this.ItemText = itemText;
this.NumSegments = numSegments;
if ((itemNameSegLengths.length != this.ItemNameSegLengths.length))
throw new IllegalArgumentException("Wrong array size !");
this.ItemNameSegLengths = itemNameSegLengths;
}
public static NotesItemDefinitionTableLock newInstance(final int items, final Pointer pItemDefArray, final Pointer itemText[], final int numSegments, final int itemNameSegLengths[]) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesItemDefinitionTableLock run() {
return new NotesItemDefinitionTableLock(items, pItemDefArray, itemText, numSegments, itemNameSegLengths);
}});
};
public NotesItemDefinitionTableLock(Pointer peer) {
super(peer);
}
public static NotesItemDefinitionTableLock newInstance(final Pointer peer) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesItemDefinitionTableLock run() {
return new NotesItemDefinitionTableLock(peer);
}});
};
public static class ByReference extends NotesItemDefinitionTableLock implements Structure.ByReference {
};
public static class ByValue extends NotesItemDefinitionTableLock implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy