Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change property types to List/Set of String #326

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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