InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/EthernetConnectionConfig.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.EthernetConnectionConfig EthernetConnectionConfig class provides required information for Ethernet devices configuration. |
Source code¶
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.3.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.inscoper.api;
import com.inscoper.api.logging.*;
public class EthernetConnectionConfig extends ConnectionConfig {
private transient long swigCPtr;
private transient boolean swigCMemOwnDerived;
protected EthernetConnectionConfig(long cPtr, boolean cMemoryOwn) {
super(InscoperJNI.EthernetConnectionConfig_SWIGSmartPtrUpcast(cPtr), true);
swigCMemOwnDerived = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(EthernetConnectionConfig obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwnDerived = own;
super.swigSetCMemOwn(own);
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwnDerived) {
swigCMemOwnDerived = false;
InscoperJNI.delete_EthernetConnectionConfig(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public EthernetConnectionConfig() {
this(InscoperJNI.new_EthernetConnectionConfig(), true);
}
public void fromXML(XMLNode connectionNode) throws com.inscoper.api.InscoperException {
InscoperJNI.EthernetConnectionConfig_fromXML(swigCPtr, this, XMLNode.getCPtr(connectionNode), connectionNode);
}
public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
InscoperJNI.EthernetConnectionConfig_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
}
public EConnectionType getType() {
return EConnectionType.swigToEnum(InscoperJNI.EthernetConnectionConfig_getType(swigCPtr, this));
}
public short getServerClient() {
return InscoperJNI.EthernetConnectionConfig_getServerClient(swigCPtr, this);
}
public void setServerClient(short serverClient) {
InscoperJNI.EthernetConnectionConfig_setServerClient(swigCPtr, this, serverClient);
}
public short getAddressType() {
return InscoperJNI.EthernetConnectionConfig_getAddressType(swigCPtr, this);
}
public void setAddressType(short addressType) {
InscoperJNI.EthernetConnectionConfig_setAddressType(swigCPtr, this, addressType);
}
public long getIpAddress() {
return InscoperJNI.EthernetConnectionConfig_getIpAddress(swigCPtr, this);
}
public void setIpAddress(long ipAddress) {
InscoperJNI.EthernetConnectionConfig_setIpAddress(swigCPtr, this, ipAddress);
}
public long getMask() {
return InscoperJNI.EthernetConnectionConfig_getMask(swigCPtr, this);
}
public void setMask(long mask) {
InscoperJNI.EthernetConnectionConfig_setMask(swigCPtr, this, mask);
}
public long getGateWAddress() {
return InscoperJNI.EthernetConnectionConfig_getGateWAddress(swigCPtr, this);
}
public void setGateWAddress(long gateWAddress) {
InscoperJNI.EthernetConnectionConfig_setGateWAddress(swigCPtr, this, gateWAddress);
}
public int getPort() {
return InscoperJNI.EthernetConnectionConfig_getPort(swigCPtr, this);
}
public void setPort(int port) {
InscoperJNI.EthernetConnectionConfig_setPort(swigCPtr, this, port);
}
}
Updated on 2026-09-03 at 12:14:19 +0200