This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > EnsLib.EDI.SEF.SegmentElement


class EnsLib.EDI.SEF.SegmentElement extends EnsLib.EDI.SEF.CommonNode

Property Inventory

Method Inventory


property Element as EnsLib.EDI.SEF.Element;
This holds the Element itself
Property methods: ElementGet(), ElementGetSwizzled(), ElementIsValid(), ElementNewObject(), ElementSet()
property ID as %Integer;
This holds the ID
Property methods: IDDisplayToLogical(), IDGet(), IDIsValid(), IDLogicalToDisplay(), IDNormalize(), IDSet()
property MaxLength as %Integer;
This holds the Max Length
Property methods: MaxLengthDisplayToLogical(), MaxLengthGet(), MaxLengthIsValid(), MaxLengthLogicalToDisplay(), MaxLengthNormalize(), MaxLengthSet()
property MinLength as %Integer;
This holds the Min length
Property methods: MinLengthDisplayToLogical(), MinLengthGet(), MinLengthIsValid(), MinLengthLogicalToDisplay(), MinLengthNormalize(), MinLengthSet()
property Ordinal as %Integer;
This holds the ordinal
Property methods: OrdinalDisplayToLogical(), OrdinalGet(), OrdinalIsValid(), OrdinalLogicalToDisplay(), OrdinalNormalize(), OrdinalSet()
property Type as %String;
This holds the Type
Property methods: TypeDisplayToLogical(), TypeGet(), TypeIsValid(), TypeLogicalToDisplay(), TypeLogicalToOdbc(), TypeNormalize(), TypeSet()


method ApplyMask(pMask As EnsLib.EDI.SEF.SegmentItemMask, Output pRequirement As %String, Output pMinLength As %Integer, Output pMaxLength As %Integer, Output pRepeatCount As %Integer) as %Status
method GenerateDescriptor(pCompiler As EnsLib.EDI.SEF.Compiler) as %Status
The MASK rules are very complicated and seem to be self-contradictory in places, this code is best guess. TO DO: Peer review required
method GenerateText(pStream As %CharacterStream) as %Status
This method is override by subclases to generate the textual representation of this node
method MaxLengthGet() as %Integer
Accessor for MaxLength
method MinLengthGet() as %Integer
Accessor for MinLength
method TypeGet() as %String
Accessor for Type
method Validate(ByRef pStatus As %Status) as %Status
Perform a sanity check on the nodes in the parse tree

Inherited Members

Inherited Properties

Inherited Methods