
com.mindoo.domino.jna.internal.structs.html.HTMLAPIReference64Struct 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.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 HTMLAPIReference64Struct extends BaseStructure {
/**
* How ref is used in the HTML text (HTMLAPI_REF_xxx - see list above)
* C type : HTMLAPI_REF_TYPE
*/
public long 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 long 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 HTMLAPIReference64Struct() {
super();
}
public static HTMLAPIReference64Struct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public HTMLAPIReference64Struct run() {
return new HTMLAPIReference64Struct();
}
});
}
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 HTMLAPIReference64Struct(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 HTMLAPIReference64Struct 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 HTMLAPIReference64Struct run() {
return new HTMLAPIReference64Struct(RefType, pRefText, CommandId, pTargets, pArgs, NumTargets, NumArgs, pFragment, URLParts);
}
});
}
public HTMLAPIReference64Struct(Pointer peer) {
super(peer);
}
public static HTMLAPIReference64Struct newInstance(final Pointer peer) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public HTMLAPIReference64Struct run() {
return new HTMLAPIReference64Struct(peer);
}
});
}
public static class ByReference extends HTMLAPIReference64Struct implements Structure.ByReference {
};
public static class ByValue extends HTMLAPIReference64Struct implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy