Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [EnsLib] >  [EDI] >  [X12] >  [Scanner]
Private  Storage   

class EnsLib.EDI.X12.Scanner extends EnsLib.EDI.SEF.Util.Scanner

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 13


Summary

Properties
CurrentChar CurrentToken Index LexemeBegin Source
SourceLen

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
BeginLexeme Binary Classify Date
Decimal DisplayContext EndLexeme Identifier
Initialize IsValidChar IsValidSeparator NextToken
Numeric PeekNextChar PeekNextNextChar PeekNextNextToken
PeekNextToken Skip SkipWhitespace String
Time

Subclasses
EnsLib.EDI.X12.Validator

Parameters

• parameter AllowedPunct = "!""&'()*+,-./:;?= %~@[]_{}\|<>^`#$";
This holds the base character set

Methods

• method Binary(pMinLen As %Integer, pMaxLen As %Integer, Output pData As %String, ByRef pErrors As %String) as %Status
Binary consists on 1..n bytes. The length is provided in a preceding element of the segment
• method Date(pMinLen As %Integer, pMaxLen As %Integer, Output pDate As %Integer, ByRef pErrors As %String) as %Status
This corresponds to the 'DT' data element type, in practive only 6 (YYMMDD) and 8 (YYYMMDD) min/maxlength values are allowed ::= | ::= ::= ::= "01" | "02" | ... | "12" ::= "01" | "02" | ... | "31"
• method Decimal(pMinLen As %Integer, pMaxLen As %Integer, Output pDec As %Float, ByRef pErrors As %String) as %Status
This corresponds to the 'R' data element type. Neither the leading minus sign or period contribute to the length of the value ::= ['-'] [] ::= 'E' ::= [-] ::= | '.' | '.' {}
• method DisplayContext() as %String
Return a string which displays the current context
• method Identifier(pMinLen As %Integer, pMaxLen As %Integer, Output pID As %String, ByRef pErrors As %String) as %Status
This corresponds to the 'ID' data element type. The ID must be drawn from a list of specfied codes for the element (where they can be determined). The standard does not define the legal character set for identifiers but examiniation of extant transactions shows only letters,digits and spaces allowed. ::= {} {} ::= |
• method Initialize(initvalue) as %Status
Override initialize to remove CR/LF
• classmethod IsValidChar(pChar As %String)
• classmethod IsValidSeparator(pChar As %String)
• method Numeric(pMinLen As %Integer, pMaxLen As %Integer, pLevel As %Integer, Output pNum As %Integer, ByRef pErrors As %String) as %Status
This corresponds to the 'Nn' data element type. The leading minus sign does not contribute to the length of the value. The 'n' is the level which indicates the number of decimal positions to the right of the implied decimal pooint ::= [-] ::= {}
• method Skip(pTerminator As %String) as %Status
This skips to the specified terminator and over it
• method SkipWhitespace(pInUseDelims As %String) as %Integer
This skips spaces and tabs returning the next token found
• method String(pMinLen As %Integer, pMaxLen As %Integer, pDelims As %String, Output pStr As %String, ByRef pErrors As %String) as %Status
This corresponds to the AN data element type ::= { | } { | } ::= | | | | | |
• method Time(pMinLen As %Integer, pMaxLen As %Integer, Output pTime As %Integer, ByRef pErrors As %String) as %Status
This corresponds to the 'TM' data element type, in practive ony 4 (HHMM) and 6 (HHMMSS) min/max length values are allowed


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.