- All Superinterfaces:
EDIType
- All Known Subinterfaces:
ElementImplementation
An interface representing the schema of an EDI simple type, AKA an element.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.xlate.edi.schema.EDIType
EDIType.Type -
Method Summary
Modifier and TypeMethodDescriptiongetBase()longRetrieve the maxLength attribute of the element.default longgetMaxLength(String version) Retrieve the maxLength attribute for a particular version of the element.longRetrieve the minLength attribute of the element.default longgetMinLength(String version) Retrieve the minLength attribute for a particular version of the element.intDeprecated.default IntegergetScale()Returns the scale of thisEDISimpleTypewhen the base is NUMERIC.Retrieve the mapping of enumerated values allowed for this element with the associated title values.Retrieve the mapping of enumerated values allowed for this element with the associated title values for a particular version of the element.Retrieve the set of enumerated values allowed for this element.getValueSet(String version) Retrieve the set of enumerated values allowed for this element for a particular version of the element.default booleanReturns true if this element has additional version(s) defined beyond the default.
-
Method Details
-
getBase
EDISimpleType.Base getBase() -
getScale
Returns the scale of thisEDISimpleTypewhen the base is NUMERIC. The scale is the number of digits to the right of an implied decimal point.- Returns:
- the scale of this
EDISimpleTypeif NUMERIC, otherwise null. - Since:
- 1.13
-
hasVersions
default boolean hasVersions()Returns true if this element has additional version(s) defined beyond the default. Versions may be used to specify different minimum/maximum length restrictions or enumerated values that only apply to specific versions a transaction.- Returns:
- true if this element has version(s), otherwise false
- Since:
- 1.8
-
getNumber
Deprecated.(since 1.8, for removal) useEDIType.getCode()andcodeattribute insteadRetrieve the element reference number for this type.- Returns:
- the element reference number as declared in the EDI schema, or
-1if not declared
-
getMinLength
long getMinLength()Retrieve the minLength attribute of the element.- Returns:
- the minLength attribute
-
getMinLength
Retrieve the minLength attribute for a particular version of the element. The default implementation returns the default (un-versioned) value for the element.- Parameters:
version- the version to select- Returns:
- the minLength attribute for version
- Since:
- 1.8
-
getMaxLength
long getMaxLength()Retrieve the maxLength attribute of the element.- Returns:
- the maxLength attribute
-
getMaxLength
Retrieve the maxLength attribute for a particular version of the element. The default implementation returns the default (un-versioned) value for the element.- Parameters:
version- the version to select- Returns:
- the maxLength attribute for version
- Since:
- 1.8
-
getValueSet
Retrieve the set of enumerated values allowed for this element.- Returns:
- the set of enumerated values allowed for this element
-
getValueSet
Retrieve the set of enumerated values allowed for this element for a particular version of the element. The default implementation returns the default (un-versioned) value for the element.- Parameters:
version- the version to select- Returns:
- the set of enumerated values allowed for this element for the given version
- Since:
- 1.8
-
getValues
Retrieve the mapping of enumerated values allowed for this element with the associated title values.- Returns:
- the map of enumerated values and titles allowed for this element
- Since:
- 1.22
-
getValues
Retrieve the mapping of enumerated values allowed for this element with the associated title values for a particular version of the element. The default implementation returns the default (un-versioned) values for the element.- Parameters:
version- the version to select- Returns:
- the map of enumerated values and titles allowed for this element for the given version
- Since:
- 1.22
-
EDIType.getCode()andcodeattribute instead