com.mindoo.domino.jna.internal.structs.compoundtext.NotesCDExtFieldStruct 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)
The newest version!
package com.mindoo.domino.jna.internal.structs.compoundtext;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.mindoo.domino.jna.IAdaptable;
import com.mindoo.domino.jna.internal.structs.BaseStructure;
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 NotesCDExtFieldStruct extends BaseStructure implements IAdaptable {
// C type : WSIG */
public short Signature; /* ORed with WORDRECORDLENGTH */
public short Length; /* (length is inclusive with this struct) */
/** Field Flags (see FEXT_xxx) */
public int Flags1;
public int Flags2;
/**
* Field entry helper type
* (see FIELD_HELPER_xxx)
*/
public short EntryHelper;
/** Entry helper DB name length */
public short EntryDBNameLen;
/** Entry helper View name length */
public short EntryViewNameLen;
/** Entry helper column number */
public short EntryColumnNumber;
public NotesCDExtFieldStruct() {
super();
}
public static NotesCDExtFieldStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesCDExtFieldStruct run() {
return new NotesCDExtFieldStruct();
}
});
}
protected List getFieldOrder() {
return Arrays.asList("Signature", "Length", "Flags1", "Flags2", "EntryHelper", "EntryDBNameLen", "EntryViewNameLen", "EntryColumnNumber");
}
public NotesCDExtFieldStruct(Pointer peer) {
super(peer);
}
public static NotesCDExtFieldStruct newInstance(final Pointer peer) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesCDExtFieldStruct run() {
return new NotesCDExtFieldStruct(peer);
}
});
}
public static class ByReference extends NotesCDExtFieldStruct implements Structure.ByReference {
};
public static class ByValue extends NotesCDExtFieldStruct implements Structure.ByValue {
};
@Override
public T getAdapter(Class clazz) {
if (clazz == NotesCDExtFieldStruct.class) {
return (T) this;
}
return null;
}
}