- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixPriceCoded>
,OnixComposite.OnixDataCompositeWithKey<JonixPriceCoded,
,PriceCodeTypes> OnixTag
,Serializable
Price coded composite
An optional group of data elements to carry a price that is expressed as one of a discrete set of price points, tiers or bands, rather than actual currency amounts. Each occurrence of the <Price> composite must include either a <PriceAmount> or a <PriceCoded> composite, with optional tax details, or an <UnpricedItemType> element.
Reference name | <PriceCoded> |
Short tag | <pricecoded> |
Cardinality | 0…1 |
- <
Price
>
Product
⯈ProductSupply
⯈SupplyDetail
⯈Price
⯈PriceCoded
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixComposite
OnixComposite.OnixDataComposite<V extends JonixStruct>, OnixComposite.OnixDataCompositeUncommon, OnixComposite.OnixDataCompositeWithKey<V extends JonixKeyedStruct<K>,
K extends Enum<K> & OnixCodelist>, OnixComposite.OnixSuperComposite -
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final PriceCoded
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<PriceCoded> action) A price code from the scheme specified in the <PriceCodeType> element.An ONIX code identifying the scheme from which the value in the <PriceCode> element is taken.A name which identifies a proprietary price code type.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
PriceCoded
public PriceCoded() -
PriceCoded
-
-
Method Details
-
_initialize
public void _initialize()Description copied from interface:OnixComposite
This is an internal API. Since Jonix 8.0, composite objects are being populated lazily. This method initiates the population process, and is invoked internally by the accessor APIs of the composites- Specified by:
_initialize
in interfaceOnixComposite
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
getXmlElement
Description copied from interface:OnixComposite
For advanced use-cases only.- Specified by:
getXmlElement
in interfaceOnixComposite
- Returns:
- native representation of the XML element underlying to this tag
-
priceCodeType
An ONIX code identifying the scheme from which the value in the <PriceCode> element is taken. Mandatory in an occurrence of the <PriceCoded> composite, and non-repeating.
Jonix-Comment: this field is required -
priceCode
A price code from the scheme specified in the <PriceCodeType> element. Mandatory in each occurrence of the <PriceCoded> composite, and non-repeating.
Jonix-Comment: this field is required -
priceCodeTypeName
A name which identifies a proprietary price code type. Must be used when, and only when the code in the <PriceCodeType> element indicates a proprietary scheme, eg a retailer’s price banding scheme. Optional and non-repeating.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixPriceCoded>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixPriceCoded,
PriceCodeTypes>
-