/** * Gets a textual description of this Variable. * * @return a textual description like 'Integer32' * as used in the Structure of Management Information (SMI) modules. * '?' is returned if the syntax is unknown. * @since 1.7 */ public final String getSyntaxString() { return getSyntaxString(getSyntax()); }
/** * Gets a textual description of this Variable. * @return * a textual description like 'Integer32' * as used in the Structure of Management Information (SMI) modules. * '?' is returned if the syntax is unknown. * @since 1.7 */ public final String getSyntaxString() { return getSyntaxString(getSyntax()); }
/** * Gets a textual description of this Variable. * @return * a textual description like 'Integer32' * as used in the Structure of Management Information (SMI) modules. * '?' is returned if the syntax is unknown. * @since 1.7 */ public final String getSyntaxString() { return getSyntaxString(getSyntax()); }
indexValues[i].getSyntaxString()+ " does not match index definition "+ AbstractVariable.getSyntaxString( this.subindexes[i].getSmiSyntax()));
public VariableBinding parseVariableBinding(String text) throws ParseException { String[] tokens = text.split(SEPARATOR, 3); if (tokens.length != 3) { throw new ParseException("Invalid format: "+ text, 0); } OID oid = new OID(oidFormat.parse(tokens[0])); String typeName = tokens[1]; String valueString = tokens[2]; if (typeName.equals(TYPE_NAME_4_OCTETSTRING_IN_HEX)) { OctetString os = (OctetString)parse(SMIConstants.SYNTAX_OCTET_STRING, ""); os.setValue(OctetString.fromHexString(valueString).getValue()); return new VariableBinding(oid, os); } else if (typeName.equals(AbstractVariable.getSyntaxString(BER.BITSTRING))) { BitString bs = (BitString)parse(BER.BITSTRING, ""); bs.setValue(BitString.fromHexString(valueString).getValue()); return new VariableBinding(oid, bs); } else { return new VariableBinding( oid, parse(AbstractVariable.getSyntaxFromString(typeName), valueString) ); } }
indexValues[i].getSyntaxString() + " does not match index definition " + AbstractVariable.getSyntaxString( this.subindexes[i].getSmiSyntax()));
retvalue = ((IpAddress) valueAsVar).getInetAddress(); } else { logger.warn("Unknown syntax " + AbstractVariable.getSyntaxString(type));