
org.verapdf.gf.model.impl.arlington.GFARichMediaWidth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-model-arlington Show documentation
Show all versions of validation-model-arlington Show documentation
veraPDF PDF/A validation model implementation based on PDF parser.
The newest version!
/**
* This file is part of veraPDF Validation, a module of the veraPDF project.
* Copyright (c) 2015, veraPDF Consortium
* All rights reserved.
*
* veraPDF Validation is free software: you can redistribute it and/or modify
* it under the terms of either:
*
* The GNU General public license GPLv3+.
* You should have received a copy of the GNU General Public License
* along with veraPDF Validation as the LICENSE.GPL file in the root of the source
* tree. If not, see http://www.gnu.org/licenses/ or
* https://www.gnu.org/licenses/gpl-3.0.en.html.
*
* The Mozilla Public License MPLv2+.
* You should have received a copy of the Mozilla Public License along with
* veraPDF Validation as the LICENSE.MPL file in the root of the source tree.
* If a copy of the MPL was not distributed with this file, you can obtain one at
* http://mozilla.org/MPL/2.0/.
*/
package org.verapdf.gf.model.impl.arlington;
import org.verapdf.cos.*;
import org.verapdf.model.alayer.*;
import org.verapdf.gf.model.impl.containers.StaticContainers;
import org.verapdf.tools.StaticResources;
import java.util.*;
import org.verapdf.pd.PDNameTreeNode;
import org.verapdf.as.ASAtom;
import java.util.stream.Collectors;
import org.verapdf.pd.structure.PDNumberTreeNode;
public class GFARichMediaWidth extends GFAObject implements ARichMediaWidth {
public GFARichMediaWidth(COSBase baseObject, COSBase parentObject, String keyName) {
super(baseObject, parentObject, keyName, "ARichMediaWidth");
}
@Override
public Boolean getcontainsDefault() {
return this.baseObject.knownKey(ASAtom.getASAtom("Default"));
}
public COSObject getDefaultDefaultValue() {
switch (StaticContainers.getFlavour()) {
case ARLINGTON1_7:
case ARLINGTON2_0:
return COSInteger.construct(288L);
}
return null;
}
public COSObject getDefaultValue() {
COSObject object = this.baseObject.getKey(ASAtom.getASAtom("Default"));
if (object == null || object.empty()) {
object = getDefaultDefaultValue();
}
return object;
}
@Override
public String getDefaultType() {
COSObject Default = getDefaultValue();
return getObjectType(Default);
}
@Override
public Boolean getDefaultHasTypeInteger() {
COSObject Default = getDefaultValue();
return getHasTypeInteger(Default);
}
@Override
public Long getDefaultIntegerValue() {
COSObject Default = getDefaultValue();
return getIntegerValue(Default);
}
@Override
public Boolean getcontainsMax() {
return this.baseObject.knownKey(ASAtom.getASAtom("Max"));
}
public COSObject getMaxDefaultValue() {
switch (StaticContainers.getFlavour()) {
case ARLINGTON1_7:
case ARLINGTON2_0:
return COSInteger.construct(576L);
}
return null;
}
public COSObject getMaxValue() {
COSObject object = this.baseObject.getKey(ASAtom.getASAtom("Max"));
if (object == null || object.empty()) {
object = getMaxDefaultValue();
}
return object;
}
@Override
public String getMaxType() {
COSObject Max = getMaxValue();
return getObjectType(Max);
}
@Override
public Boolean getMaxHasTypeInteger() {
COSObject Max = getMaxValue();
return getHasTypeInteger(Max);
}
@Override
public Long getMaxIntegerValue() {
COSObject Max = getMaxValue();
return getIntegerValue(Max);
}
@Override
public Boolean getcontainsMin() {
return this.baseObject.knownKey(ASAtom.getASAtom("Min"));
}
public COSObject getMinDefaultValue() {
switch (StaticContainers.getFlavour()) {
case ARLINGTON1_7:
case ARLINGTON2_0:
return COSInteger.construct(72L);
}
return null;
}
public COSObject getMinValue() {
COSObject object = this.baseObject.getKey(ASAtom.getASAtom("Min"));
if (object == null || object.empty()) {
object = getMinDefaultValue();
}
return object;
}
@Override
public String getMinType() {
COSObject Min = getMinValue();
return getObjectType(Min);
}
@Override
public Boolean getMinHasTypeInteger() {
COSObject Min = getMinValue();
return getHasTypeInteger(Min);
}
@Override
public Long getMinIntegerValue() {
COSObject Min = getMinValue();
return getIntegerValue(Min);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy