Class EdiSeg

java.lang.Object
hdi.edi.parser.EdiSeg
Direct Known Subclasses:
EdiTransactionSeg

public class EdiSeg extends Object
  • Constructor Details

    • EdiSeg

      public EdiSeg(EdiSeg otherEdiSeg)
    • EdiSeg

      public EdiSeg(String loop, hdi.edi.legacyparser.SegmentType type, String name)
    • EdiSeg

      public EdiSeg(String segTypeStr, String name)
  • Method Details

    • parentSeg

      public void parentSeg(EdiSeg parentSeg)
    • index

      public EdiSeg index(int index)
    • isClaim

      public boolean isClaim()
    • isLoop

      public boolean isLoop()
    • id

      public String id()
    • eltSet

      public EltSet eltSet()
    • cloneKeySegInfo

      public static EdiSeg cloneKeySegInfo(EdiSeg otherEdiSeg)
    • name

      public EdiSeg name(String name)
    • addChild

      public void addChild(EdiSeg seg)
    • findChildSegs

      public List<EdiSeg> findChildSegs(hdi.edi.legacyparser.SegmentType... segTypes)
    • isInType

      public boolean isInType(hdi.edi.legacyparser.SegmentType... segTypes)
    • isInLoop

      public boolean isInLoop(String... loopNames)
    • isParentOf

      public boolean isParentOf(EdiSeg seg)
    • isSameLoopOf

      public boolean isSameLoopOf(EdiSeg seg)
    • isAncestorOf

      public boolean isAncestorOf(EdiSeg descSeg)
    • eltVal

      public Object eltVal(String name)
    • typeAsString

      public String typeAsString()
    • loopTypeName

      public String loopTypeName()
    • rawString

      public String rawString()
    • rawStringWithSegID

      public String rawStringWithSegID()
    • isFixedWidth

      public boolean isFixedWidth()
    • getEdiSeparatorsForRendering

      public EdiSeparators getEdiSeparatorsForRendering()
    • friendlyName

      public String friendlyName()
    • isUnknown

      public boolean isUnknown()
    • containsQualifier

      public boolean containsQualifier(EdiQualifier qualifier)
    • eltByName

      public Elt eltByName(String name)
    • eltByPosition

      public Elt eltByPosition(int position)
    • toFormattedString

      public String toFormattedString()
    • toFormattedStringWithChildren

      public String toFormattedStringWithChildren()
    • toFormattedStringWithChildren

      public static String toFormattedStringWithChildren(List<EdiSeg> segs)
    • objId

      public org.bson.types.ObjectId objId()
    • parentObjId

      public org.bson.types.ObjectId parentObjId()
    • isParent

      public boolean isParent()
    • name

      public String name()
    • loop

      public String loop()
    • type

      public hdi.edi.legacyparser.SegmentType type()
    • stringType

      public String stringType()
    • childSegs

      public List<EdiSeg> childSegs()
    • parentSeg

      public EdiSeg parentSeg()
    • ediSeparators

      public EdiSeparators ediSeparators()
    • isArray

      public boolean isArray()
    • isLoopParent

      public boolean isLoopParent()
    • rawElts

      public List<String> rawElts()
    • index

      public int index()
    • indexWithinTran

      public int indexWithinTran()
    • entity

      public hdi.edi.edient.EdiEntity entity()
    • ownerIdHolder

      public hdi.edi.OwnerIdHolder ownerIdHolder()
    • codeEntityConsumer

      public Consumer<CodeEntity> codeEntityConsumer()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • objId

      public EdiSeg objId(org.bson.types.ObjectId objId)
      Returns:
      this.
    • parentObjId

      public EdiSeg parentObjId(org.bson.types.ObjectId parentObjId)
      Returns:
      this.
    • isParent

      public EdiSeg isParent(boolean isParent)
      Returns:
      this.
    • loop

      public EdiSeg loop(String loop)
      Returns:
      this.
    • eltSet

      public EdiSeg eltSet(EltSet eltSet)
      Returns:
      this.
    • childSegs

      public EdiSeg childSegs(List<EdiSeg> childSegs)
      Returns:
      this.
    • ediSeparators

      public EdiSeg ediSeparators(EdiSeparators ediSeparators)
      Returns:
      this.
    • isLoopParent

      public EdiSeg isLoopParent(boolean isLoopParent)
      Returns:
      this.
    • indexWithinTran

      public EdiSeg indexWithinTran(int indexWithinTran)
      Returns:
      this.
    • entity

      public EdiSeg entity(hdi.edi.edient.EdiEntity entity)
      Returns:
      this.
    • ownerIdHolder

      public EdiSeg ownerIdHolder(hdi.edi.OwnerIdHolder ownerIdHolder)
      Returns:
      this.
    • codeEntityConsumer

      public EdiSeg codeEntityConsumer(Consumer<CodeEntity> codeEntityConsumer)
      Returns:
      this.