Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use single quotes only, execute the following code, before using OIDs:

Code Block
 

 

...

smiManager.setOidVariableLengthStringQuote(smiManager.getOidFixedLengthStringQuote());
smiManager.setOidVariableLengthStringQuoteEscapeSequence(smiManager.getOidFixedLengthStringQuoteEscapeSequence());

Switch Quotes

You can easily switch the quoting to single quotes for variable length and double quotes for fixed/implied length sub-index values with:

Code Block
smiManager.resetOidQuoting();
char varStringQuote = smiManager.getOidVariableLengthStringQuote();
smiManager.setOidVariableLengthStringQuote(smiManager.getOidFixedLengthStringQuote());
String varStringEscape = smiManager.getOidVariableLengthStringQuoteEscapeSequence();
smiManager.setOidVariableLengthStringQuoteEscapeSequence(smiManager.getOidFixedLengthStringQuoteEscapeSequence());
smiManager.setOidFixedLengthStringQuoteEscapeSequence(varStringEscape);
smiManager.setOidFixedLengthStringQuote(varStringQuote);

Resetting Quotes to Default

Using the default quotation is highly recommended to avoid runtime trouble You can reset the quoation to the factory default with:

Code Block
smiManager.resetOidQuoting();