java.lang.Object
com.tectonica.jonix.onix3.PrimaryContentType
- All Implemented Interfaces:
OnixElement<ProductContentTypes>,OnixTag,Serializable
public class PrimaryContentType
extends Object
implements OnixElement<ProductContentTypes>, Serializable
Primary content type code
An ONIX code which indicates the primary or only content type included in a product. The element is intended to be used in particular for digital products, when the sender wishes to make it clear that one of a number of content types (eg text, audio, video) is the primary type for the product. Other content types may be specified in the <ProductContentType>. Optional and non-repeating.
| Format | Fixed length, two digits |
| Codelist | List 81 |
| Reference name | <PrimaryContentType> |
| Short tag | <x416> |
| Cardinality | 0…1 |
| Example | <x416>10</x416> (Eye-readable text) |
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(type: dt.DateOrDateTime)static final PrimaryContentTypestatic final Stringstatic final String(type: dt.NonEmptyString) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__v()Internal API, use theOnixElement.value()method or theOnixElement.value()field insteadbooleanexists()indicates whether this tag exists in the ONIX recordvoidifExists(Consumer<PrimaryContentType> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tectonica.jonix.common.OnixElement
equal, is, isNull, value
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
value
-
EMPTY
-
-
Constructor Details
-
PrimaryContentType
public PrimaryContentType() -
PrimaryContentType
-
-
Method Details
-
__v
Internal API, use theOnixElement.value()method or theOnixElement.value()field instead- Specified by:
__vin interfaceOnixElement<ProductContentTypes>
-
exists
public boolean exists()Description copied from interface:OnixTagindicates whether this tag exists in the ONIX record -
ifExists
-
codeOrNull
-
descriptionOrNull
-