@@ -415,11 +415,11 @@ ISOMetadata <- R6Class("ISOMetadata",
415415 resourceLineage = list (),
416416 # '@field metadataMaintenance metadataMaintenance [0..1]: ISOMaintenanceInformation
417417 metadataMaintenance = NULL ,
418+ # '@field portrayalCatalogueInfo portrayalCatalogueInfo [0..*]
419+ portrayalCatalogueInfo = list (),
418420
419421 # unsupported sets (to implement)
420422 # ----------------
421- # '@field portrayalCatalogueInfo portrayalCatalogueInfo [0..*]
422- portrayalCatalogueInfo = list (), # TODO
423423 # '@field applicationSchemaInformation applicationSchemaInfo [0..*]
424424 applicationSchemaInformation = list (), # TODO
425425
@@ -1083,6 +1083,29 @@ ISOMetadata <- R6Class("ISOMetadata",
10831083 stop(" The argument should be a 'ISOAbstractContentInformation' object" )
10841084 }
10851085 return (self $ delListElement(" contentInfo" , contentInfo ))
1086+ },
1087+
1088+ # MD_PortrayalCatalogueReference
1089+ # --------------------------------------------------------------------------
1090+
1091+ # '@description Adds portrayal catalogue info
1092+ # '@param portrayalCatalogueInfo object of class inheriting \link{ISOPortrayalCatalogueReference}
1093+ # '@return \code{TRUE} if added, \code{FALSE} otherwise
1094+ addPortrayalCatalogueInfo = function (portrayalCatalogueInfo ){
1095+ if (! is(portrayalCatalogueInfo ," ISOPortrayalCatalogueReference" )){
1096+ stop(" The argument should be a 'ISOPortrayalCatalogueReference' object" )
1097+ }
1098+ return (self $ addListElement(" portrayalCatalogueInfo" , portrayalCatalogueInfo ))
1099+ },
1100+
1101+ # '@description Deletes portrayal catalogue info
1102+ # '@param portrayalCatalogueInfo object of class inheriting \link{ISOPortrayalCatalogueReference}
1103+ # '@return \code{TRUE} if deleted, \code{FALSE} otherwise
1104+ delPortrayalCatalogueInfo = function (portrayalCatalogueInfo ){
1105+ if (! is(portrayalCatalogueInfo ," ISOPortrayalCatalogueReference" )){
1106+ stop(" The argument should be a 'ISOPortrayalCatalogueReference' object" )
1107+ }
1108+ return (self $ delListElement(" portrayalCatalogueInfo" , portrayalCatalogueInfo ))
10861109 }
10871110
10881111 )
0 commit comments