Package hdi.edi.parser
Class Elt
java.lang.Object
hdi.edi.parser.Elt
A named EDI element.
Could be of primitive value, of EltSet or of list
Primitive values are converted to list of EtlSet
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncodeEntity
(CodeEntity codeEntity) static int
compareByName
(Elt elt1, Elt elt2) static int
compareByVal
(Elt elt1, Elt elt2) dataType()
dateVal()
ediDelim()
eltSet()
eltSets()
boolean
floatVal()
static Elt
static Elt
fromEltHolder
(EltSet owningEltSet, hdi.edi.legacyparser.EltValHolder eltValHolder, EdiQualifier qualifier) static Elt
fromEltSet
(String name, EltSet eltSet) static Elt
fromSimpleVal
(EltSet owningEltSet, String name, Object val, EdiQualifier qualifier) static Elt
fromSimpleVal
(String name, Object val) int
hashCode()
int
index()
index
(int index) intVal()
boolean
isCurrency
(boolean isCurrency) boolean
isDerived
(boolean isDerived) boolean
isFixedWidth
(boolean isFixedWidth) boolean
boolean
isSimple()
name()
ncpdpId()
int
parentIndex
(int parentIndex) int
position()
position
(int position) rawEdiString
(String rawEdiString) timeVal()
com.fasterxml.jackson.databind.JsonNode
static String
toNameAndIndexString
(Elt elt) toString()
val()
valAsStr()
-
Field Details
-
POSITION_NAME
- See Also:
-
IS_DERIVED_NAME
- See Also:
-
RAW_EDI_NAME
- See Also:
-
SPECIAL_NAME_SUFFIX_DELIM
- See Also:
-
-
Constructor Details
-
Elt
-
Elt
public Elt()
-
-
Method Details
-
toFormattedString
-
codeEntity
-
bigDecimalVal
-
stringVal
-
isSimple
public boolean isSimple() -
isRawValue
public boolean isRawValue() -
valAsStr
-
ediString
-
friendlyName
-
name
-
fromSimpleVal
-
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
-
fromElt
-
compareByName
-
compareByVal
-
toString
-
toNameAndIndexString
-
toNameAndIndexString
-
toJsonNode
public com.fasterxml.jackson.databind.JsonNode toJsonNode() -
equals
-
hashCode
public int hashCode() -
ncpdpId
-
ncpdpId
- Returns:
this
.
-
isDerived
public boolean isDerived() -
isDerived
- Returns:
this
.
-
ediDelim
-
ediDelim
- Returns:
this
.
-
position
public int position() -
position
- Returns:
this
.
-
rawEdiString
-
rawEdiString
- Returns:
this
.
-
isFixedWidth
public boolean isFixedWidth() -
isFixedWidth
- Returns:
this
.
-
dataType
-
dataType
- Returns:
this
.
-
isCurrency
public boolean isCurrency() -
isCurrency
- Returns:
this
.
-
index
- Returns:
this
.
-
index
public int index() -
parentIndex
- Returns:
this
.
-
parentIndex
public int parentIndex() -
name
-
val
-
eltSet
-
dateVal
-
dateTimeVal
-
timeVal
-
intVal
-
floatVal
-
doubleVal
-
eltSets
-
qualifier
-
codeEntity
-