java.lang.Object
com.tectonica.jonix.onix2.SalesRestriction
- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixSuperComposite
,OnixTag
,Serializable
public class SalesRestriction
extends Object
implements OnixComposite.OnixSuperComposite, Serializable
Sales restriction composite
A group of data elements which together identify a non-territorial sales restriction which a publisher applies to a product. Optional and repeatable.
Reference name | <SalesRestriction> |
Short tag | <salesrestriction> |
- <
Product
>
- Since:
- Onix-2.1
- 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: DateOrDateTime)static final SalesRestriction
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<SalesRestriction> action) An optional and repeatable group of data elements which together identify a sales outlet to which a restriction is linked.A free text field describing an “unspecified” restriction, or giving more explanation of a coded restriction type.An ONIX code which identifies a non-territorial sales restriction.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
EMPTY
-
-
Constructor Details
-
SalesRestriction
public SalesRestriction() -
SalesRestriction
-
-
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
-
salesRestrictionType
An ONIX code which identifies a non-territorial sales restriction. Mandatory in each occurrence of the <SalesRestriction> composite, and non-repeating.
Jonix-Comment: this field is required -
salesRestrictionDetail
A free text field describing an “unspecified” restriction, or giving more explanation of a coded restriction type. Optional and non-repeating.
Jonix-Comment: this field is optional -
salesOutlets
An optional and repeatable group of data elements which together identify a sales outlet to which a restriction is linked. Each occurrence of the composite must include a <SalesOutletIdentifier> composite or a <SalesOutletName> or both.
Jonix-Comment: this list may be empty
-