java.lang.Object
com.tectonica.jonix.onix3.InsertResource
- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixSuperComposite
,OnixTag
,Serializable
public class InsertResource
extends Object
implements OnixComposite.OnixSuperComposite, Serializable
Insert resource composite
A group of data elements that together provide details of a single file or resource of which the insert is composed. At least one <InsertResource> composite is required in each <InsertManifest>, and the <InsertResource> composite is repeatable to describe multiple resources.
The composite must contain either a Resource file link or a No resource indicator.
Reference name | <InsertResource> |
Short tag | <insertresource> |
Cardinality | 1…n |
- Since:
- Onix-3.08
- 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 InsertResource
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<InsertResource> action) boolean
An empty element that provides a positive indication that there is no alternative ‘generic’ resource to be used in cases where there is a vendor-specific resource (indicated using <SalesOutlet>) with the same <SequenceNumber> specified within the manifest.Jonix-Comment: this list may be emptyJonix-Comment: this list may be emptyJonix-Comment: this list may be emptyJonix-Comment: this list may be emptyListOfOnixDataCompositeWithKey<ResourceFileFeature,
JonixResourceFileFeature, ResourceFileFeatureTypes> Jonix-Comment: this list may be emptyJonix-Comment: this list is required to contain at least one itemJonix-Comment: this list may be emptyJonix-Comment: this field is optionalJonix-Comment: this list may be emptyJonix-Comment: this field is optional
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
InsertResource
public InsertResource() -
InsertResource
-
-
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
-
resourceFileLinks
Jonix-Comment: this list is required to contain at least one item -
sequenceNumber
Jonix-Comment: this field is optional -
resourceRole
Jonix-Comment: this field is optional -
noResource
An empty element that provides a positive indication that there is no alternative ‘generic’ resource to be used in cases where there is a vendor-specific resource (indicated using <SalesOutlet>) with the same <SequenceNumber> specified within the manifest. The empty <NoResource/> must be used – and must only be used – when no <ResourceFileLink> is present.
Jonix-Comment: this field is optional -
isNoResource
public boolean isNoResource() -
salesOutlets
Jonix-Comment: this list may be empty -
resourceIdentifiers
public ListOfOnixDataCompositeWithKey<ResourceIdentifier,JonixResourceIdentifier, resourceIdentifiers()ResourceIdentifierTypes> Jonix-Comment: this list may be empty -
resourceFileDetails
Jonix-Comment: this list may be empty -
resourceFileFeatures
public ListOfOnixDataCompositeWithKey<ResourceFileFeature,JonixResourceFileFeature, resourceFileFeatures()ResourceFileFeatureTypes> Jonix-Comment: this list may be empty -
resourceFileDescriptions
Jonix-Comment: this list may be empty -
resourceFileContentDescriptions
Jonix-Comment: this list may be empty -
resourceFileDates
public ListOfOnixDataCompositeWithKey<ResourceFileDate,JonixResourceFileDate, resourceFileDates()ResourceFileDateRoles> Jonix-Comment: this list may be empty
-