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

com.mindoo.domino.jna.internal.structs.html.HTMLAPIReference32Struct Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
package com.mindoo.domino.jna.internal.structs.html;

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;

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 HTMLAPIReference32Struct extends BaseStructure { /** * How ref is used in the HTML text (HTMLAPI_REF_xxx - see list above)
* C type : HTMLAPI_REF_TYPE */ public int RefType; /** * Reference's NULL-terminated text string
* C type : char* */ public Pointer pRefText; /** * A web server command associated with the target URL
* C type : CmdId */ public int CommandId; /** * Reference's target components
* C type : HTMLAPI_URLComponent* */ public Pointer pTargets; /** * Reference's arguments (eg, &Start=xxx, &Count=xxx, etc).
* C type : HTMLAPI_URLComponent* */ public Pointer pArgs; /** Number of components in the target part of the reference (dbname, unid, etc.) */ public int NumTargets; /** Number of components in the args part of the reference (&Start, etc.) */ public int NumArgs; /** * NULL-terminated LMBCS text string -- the fragment part of URL
* if there is no fragment, pointer points to "" (i.e. '\0')
* C type : char* */ public Pointer pFragment; /** * C trick to align first member of an array of target and arg values
* C type : HTMLAPI_URLComponent[1] */ public HtmlApi_UrlComponentStruct[] URLParts = new HtmlApi_UrlComponentStruct[1]; public HTMLAPIReference32Struct() { super(); } public static HTMLAPIReference32Struct newInstance() { return AccessController.doPrivileged(new PrivilegedAction() { @Override public HTMLAPIReference32Struct run() { return new HTMLAPIReference32Struct(); } }); } protected List getFieldOrder() { return Arrays.asList("RefType", "pRefText", "CommandId", "pTargets", "pArgs", "NumTargets", "NumArgs", "pFragment", "URLParts"); } /** * @param RefType How ref is used in the HTML text (HTMLAPI_REF_xxx - see list above)
* C type : HTMLAPI_REF_TYPE
* @param pRefText Reference's NULL-terminated text string
* C type : char*
* @param CommandId A web server command associated with the target URL
* C type : CmdId
* @param pTargets Reference's target components
* C type : HTMLAPI_URLComponent*
* @param pArgs Reference's arguments (eg, &Start=xxx, &Count=xxx, etc).
* C type : HTMLAPI_URLComponent*
* @param NumTargets Number of components in the target part of the reference (dbname, unid, etc.)
* @param NumArgs Number of components in the args part of the reference (&Start, etc.)
* @param pFragment NULL-terminated LMBCS text string -- the fragment part of URL
* if there is no fragment, pointer points to "" (i.e. '\0')
* C type : char*
* @param URLParts C trick to align first member of an array of target and arg values
* C type : HTMLAPI_URLComponent[1] */ public HTMLAPIReference32Struct(int RefType, Pointer pRefText, int CommandId, Pointer pTargets, Pointer pArgs, int NumTargets, int NumArgs, Pointer pFragment, HtmlApi_UrlComponentStruct URLParts[]) { super(); this.RefType = RefType; this.pRefText = pRefText; this.CommandId = CommandId; this.pTargets = pTargets; this.pArgs = pArgs; this.NumTargets = NumTargets; this.NumArgs = NumArgs; this.pFragment = pFragment; if ((URLParts.length != this.URLParts.length)) throw new IllegalArgumentException("Wrong array size !"); this.URLParts = URLParts; } public static HTMLAPIReference32Struct newInstance(final int RefType, final Pointer pRefText, final int CommandId, final Pointer pTargets, final Pointer pArgs, final int NumTargets, final int NumArgs, final Pointer pFragment, final HtmlApi_UrlComponentStruct URLParts[]) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public HTMLAPIReference32Struct run() { return new HTMLAPIReference32Struct(RefType, pRefText, CommandId, pTargets, pArgs, NumTargets, NumArgs, pFragment, URLParts); } }); } public HTMLAPIReference32Struct(Pointer peer) { super(peer); } public static HTMLAPIReference32Struct newInstance(final Pointer peer) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public HTMLAPIReference32Struct run() { return new HTMLAPIReference32Struct(peer); } }); } public static class ByReference extends HTMLAPIReference32Struct implements Structure.ByReference { }; public static class ByValue extends HTMLAPIReference32Struct implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy