Class Elt

java.lang.Object
hdi.edi.parser.Elt

public class Elt extends Object
A named EDI element. Could be of primitive value, of EltSet or of list Primitive values are converted to list of EtlSet
  • Field Details

  • Constructor Details

    • Elt

      public Elt(String name, Elt anotherElt)
    • Elt

      public Elt()
  • Method Details

    • toFormattedString

      public String toFormattedString()
    • codeEntity

      public Elt codeEntity(CodeEntity codeEntity)
    • bigDecimalVal

      public BigDecimal bigDecimalVal()
    • stringVal

      public String stringVal()
    • isSimple

      public boolean isSimple()
    • isRawValue

      public boolean isRawValue()
    • valAsStr

      public String valAsStr()
    • ediString

      public String ediString()
    • friendlyName

      public String friendlyName()
    • name

      public Elt name(String nm)
    • fromSimpleVal

      public static Elt fromSimpleVal(String name, Object val)
    • fromSimpleVal

      public static Elt fromSimpleVal(EltSet owningEltSet, String name, Object val, EdiQualifier qualifier)
    • fromEltHolder

      public static Elt fromEltHolder(EltSet owningEltSet, hdi.edi.legacyparser.EltValHolder eltValHolder, EdiQualifier qualifier)
    • fromEltSet

      public static Elt fromEltSet(String name, EltSet eltSet)
    • fromElt

      public static Elt fromElt(Elt fromElt, String name, EltSet eltSet)
    • compareByName

      public static int compareByName(Elt elt1, Elt elt2)
    • compareByVal

      public static int compareByVal(Elt elt1, Elt elt2)
    • toString

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

      public String toNameAndIndexString()
    • toNameAndIndexString

      public static String toNameAndIndexString(Elt elt)
    • toJsonNode

      public com.fasterxml.jackson.databind.JsonNode toJsonNode()
    • equals

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

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

      public String ncpdpId()
    • ncpdpId

      public Elt ncpdpId(String ncpdpId)
      Returns:
      this.
    • isDerived

      public boolean isDerived()
    • isDerived

      public Elt isDerived(boolean isDerived)
      Returns:
      this.
    • ediDelim

      public String ediDelim()
    • ediDelim

      public Elt ediDelim(String ediDelim)
      Returns:
      this.
    • position

      public int position()
    • position

      public Elt position(int position)
      Returns:
      this.
    • rawEdiString

      public String rawEdiString()
    • rawEdiString

      public Elt rawEdiString(String rawEdiString)
      Returns:
      this.
    • isFixedWidth

      public boolean isFixedWidth()
    • isFixedWidth

      public Elt isFixedWidth(boolean isFixedWidth)
      Returns:
      this.
    • dataType

      public DataType dataType()
    • dataType

      public Elt dataType(DataType dataType)
      Returns:
      this.
    • isCurrency

      public boolean isCurrency()
    • isCurrency

      public Elt isCurrency(boolean isCurrency)
      Returns:
      this.
    • index

      public Elt index(int index)
      Returns:
      this.
    • index

      public int index()
    • parentIndex

      public Elt parentIndex(int parentIndex)
      Returns:
      this.
    • parentIndex

      public int parentIndex()
    • name

      public String name()
    • val

      public Object val()
    • eltSet

      public EltSet eltSet()
    • dateVal

      public LocalDate dateVal()
    • dateTimeVal

      public LocalDateTime dateTimeVal()
    • timeVal

      public LocalTime timeVal()
    • intVal

      public Integer intVal()
    • floatVal

      public Float floatVal()
    • doubleVal

      public Double doubleVal()
    • eltSets

      public List<EltSet> eltSets()
    • qualifier

      public EdiQualifier qualifier()
    • codeEntity

      public CodeEntity codeEntity()