org.snmp4j.smi.Null.isExceptionSyntax()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.snmp4j.smi.Null.isExceptionSyntax()方法的一些代码示例,展示了Null.isExceptionSyntax()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Null.isExceptionSyntax()方法的具体详情如下:
包路径:org.snmp4j.smi.Null
类名称:Null
方法名:isExceptionSyntax

Null.isExceptionSyntax介绍

暂无

代码示例

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

public void setSyntax(int syntax) {
 if ((syntax != SMIConstants.SYNTAX_NULL) &&  (!isExceptionSyntax(syntax))) {
  throw new IllegalArgumentException("Syntax " + syntax +
                    " is incompatible with Null type");
 }
 this.syntax = syntax;
}

代码示例来源:origin: org.snmp4j/snmp4j

public void setSyntax(int syntax) {
 if ((syntax != SMIConstants.SYNTAX_NULL) &&  (!isExceptionSyntax(syntax))) {
  throw new IllegalArgumentException("Syntax " + syntax +
                    " is incompatible with Null type");
 }
 this.syntax = syntax;
}

代码示例来源:origin: org.kaazing/snmp4j

public void setSyntax(int syntax) {
 if ((syntax != SMIConstants.SYNTAX_NULL) &&  (!isExceptionSyntax(syntax))) {
  throw new IllegalArgumentException("Syntax " + syntax +
                    " is incompatible with Null type");
 }
 this.syntax = syntax;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

/**
 * Checks whether this variable represents an exception like
 * noSuchObject, noSuchInstance, and endOfMibView.
 * @return
 *    {@code true} if the syntax of this variable is an instance of
 *    {@code Null} and its syntax equals one of the following:
 *    <UL>
 *    <LI>{@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT}</LI>
 *    <LI>{@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}</LI>
 *    <LI>{@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}</LI>
 *    </UL>
 */
public boolean isException() {
 return Null.isExceptionSyntax(getSyntax());
}

代码示例来源:origin: org.kaazing/snmp4j

/**
 * Checks whether this variable represents an exception like
 * noSuchObject, noSuchInstance, and endOfMibView.
 * @return
 *    <code>true</code> if the syntax of this variable is an instance of
 *    <code>Null</code> and its syntax equals one of the following:
 *    <UL>
 *    <LI>{@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT}</LI>
 *    <LI>{@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}</LI>
 *    <LI>{@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}</LI>
 *    </UL>
 */
public boolean isException() {
 return Null.isExceptionSyntax(getSyntax());
}

代码示例来源:origin: org.snmp4j/snmp4j

/**
 * Checks whether this variable represents an exception like
 * noSuchObject, noSuchInstance, and endOfMibView.
 *
 * @return {@code true} if the syntax of this variable is an instance of
 * {@code Null} and its syntax equals one of the following:
 * <UL>
 * <LI>{@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT}</LI>
 * <LI>{@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}</LI>
 * <LI>{@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}</LI>
 * </UL>
 */
public boolean isException() {
  return Null.isExceptionSyntax(getSyntax());
}

代码示例来源:origin: org.snmp4j/snmp4j

finished = true;
else if (Null.isExceptionSyntax(vb.getVariable().getSyntax())) {
 finished = true;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

finished = true;
else if (Null.isExceptionSyntax(vb.getVariable().getSyntax())) {
 finished = true;

代码示例来源:origin: org.kaazing/snmp4j

finished = true;
else if (Null.isExceptionSyntax(vb.getVariable().getSyntax())) {
 finished = true;

相关文章

微信公众号

最新文章

更多