- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixSuperComposite
,OnixTag
,Serializable
Price constraint composite
An optional group of data elements which together describe a contractual term or constraint (or the absence of such a constraint) that forms part of the commercial offer for a product. Repeatable in order to describe multiple constraints on usage.
The Price constraint composite has the same structure as <EpubUsageConstraint>. Use <EpubUsageConstraint> for constraints that limit the user experience of the product, whether or not they are enforced by technical protection measures (DRM). Use <PriceConstraint> where a single product is available under multiple terms and conditions (ie multiple commercial offers for the same product which differ in their Price constraints, and whether or not they are enforced by DRM).
Reference name | <PriceConstraint> |
Short tag | <priceconstraint> |
Cardinality | 0…n |
- <
Price
>
- Since:
- Onix-3.03
- 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 PriceConstraint
static final String
static final String
(type: dt.NonEmptyString) -
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<PriceConstraint> action) An optional and repeatable group of data elements which together specify a quantitative limit on a particular type of contractual term or constraint.An ONIX code specifying the status of a contractual term or constraint, eg permitted without limit, permitted with limit, prohibited.An ONIX code specifying a type of commercial term or constraint forming part of the commercial offer for a digital product.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
PriceConstraint
public PriceConstraint() -
PriceConstraint
-
-
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
-
priceConstraintType
An ONIX code specifying a type of commercial term or constraint forming part of the commercial offer for a digital product. Mandatory in each occurrence of the <PriceConstraint> composite, and non-repeating.
Jonix-Comment: this field is required -
priceConstraintStatus
An ONIX code specifying the status of a contractual term or constraint, eg permitted without limit, permitted with limit, prohibited. Mandatory in each occurrence of the <PriceConstraint> composite, and non-repeating.
Jonix-Comment: this field is required -
priceConstraintLimits
public ListOfOnixDataComposite<PriceConstraintLimit,JonixPriceConstraintLimit> priceConstraintLimits()An optional and repeatable group of data elements which together specify a quantitative limit on a particular type of contractual term or constraint.
Jonix-Comment: this list may be empty
-