Skip to content

Commit

Permalink
Change property types to List/Set of String
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed May 15, 2024
1 parent 392c7ef commit cc41c26
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/main/java/SALayer.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package org.verapdf.model.salayer;

import org.verapdf.model.baselayer.Object;

import java.util.List;

type SAObject extends Object {
% id of group in format id:<number>
property structureID: String;
% comma separated list of error codes
property errorCodes: String;
% semicolon separated list of error arguments
property errorArguments: String;
% list of error codes
property errorCodes: List<String>;
% list of error arguments
property errorArguments: List<List<String>>;
}

% the class corresponding to the high level PDF document structure
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/SELayer.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import org.verapdf.model.pdlayer.PDStructElem;

import org.verapdf.model.coslayer.CosLang;

import java.util.List;

% the structure element with no mapping to the standard PDF 1.7 or PDF 2.0 tag
type SENonStandard extends PDStructElem {
% true, if the struct elem has non-standard type, which is not mapped to a standard type
Expand Down Expand Up @@ -189,8 +191,8 @@ type SEMathMLStructElem extends PDStructElem {

% a content item such as text, image, lineart, shading or a form
type SEContentItem extends Object {
% ampersand separated list of tags, associated with parents marked content sequences (first operand of the BMC/BDC operators)
property parentsTags: String;
% list of tags, associated with parents marked content sequences (first operand of the BMC/BDC operators)
property parentsTags: List<String>;
% type of the parent structure element for parent marked content sequence
property parentStructureTag: String;
% true, if parent struct element is a part of the structure tree
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/XMPLayer.mdl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.verapdf.model.xmplayer;

import org.verapdf.model.baselayer.Object;
import java.util.List;
import java.util.Set;

% Parent type for all XMP objects
type XMPObject extends Object {
Expand Down Expand Up @@ -46,8 +46,8 @@ type MainXMPPackage extends XMPPackage {
% value of dc:title
property dc_title: String;

% comma separated list of declarations
property declarations: String;
% set of declarations
property declarations: Set<String>;
}

% XMP property
Expand Down

0 comments on commit cc41c26

Please sign in to comment.