Skip to content

Commit

Permalink
Arlington. Update getter methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Oct 11, 2023
1 parent 04cf1bd commit f19e589
Show file tree
Hide file tree
Showing 20 changed files with 299 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1355,18 +1355,6 @@ public COSObject getRD3Value() {
return entry3;
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Double getRD0NumberValue() {
COSObject RD0 = getRD0Value();
Expand All @@ -1379,6 +1367,18 @@ public Double getRD1NumberValue() {
return getNumberValue(RD1);
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Boolean getAPNHasTypeDictionary() {
COSObject APN = getAPNValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1464,18 +1464,6 @@ public COSObject getRD3Value() {
return entry3;
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Double getRD0NumberValue() {
COSObject RD0 = getRD0Value();
Expand All @@ -1488,6 +1476,18 @@ public Double getRD1NumberValue() {
return getNumberValue(RD1);
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Boolean getAPNHasTypeDictionary() {
COSObject APN = getAPNValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1584,18 +1584,6 @@ public COSObject getRD3Value() {
return entry3;
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Double getRD0NumberValue() {
COSObject RD0 = getRD0Value();
Expand All @@ -1608,6 +1596,18 @@ public Double getRD1NumberValue() {
return getNumberValue(RD1);
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Boolean getAPNHasTypeDictionary() {
COSObject APN = getAPNValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1460,18 +1460,6 @@ public COSObject getRD3Value() {
return entry3;
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Double getRD0NumberValue() {
COSObject RD0 = getRD0Value();
Expand All @@ -1484,6 +1472,18 @@ public Double getRD1NumberValue() {
return getNumberValue(RD1);
}

@Override
public Double getRD2NumberValue() {
COSObject RD2 = getRD2Value();
return getNumberValue(RD2);
}

@Override
public Double getRD3NumberValue() {
COSObject RD3 = getRD3Value();
return getNumberValue(RD3);
}

@Override
public Boolean getAPNHasTypeDictionary() {
COSObject APN = getAPNValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public String getNameValue() {

@Override
public String getparentPrintScalingNameValue() {
if (this.parentObject == null || !this.parentObject.getType().isDictionaryBased()) {
return null;
}
return new GFAViewerPreferences(this.parentObject.getDirectBase(), null, null).getPrintScalingNameValue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,50 +189,98 @@ public Boolean getSigObjRefHasTypeDictionary() {
}

@Override
public Long getByteRange1IntegerValue() {
public Long getByteRange0IntegerValue() {
COSObject ByteRange = getByteRangeValue();
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry1IntegerValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 0) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry0IntegerValue();
}

@Override
public Long getByteRange2IntegerValue() {
public Long getByteRange1IntegerValue() {
COSObject ByteRange = getByteRangeValue();
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry2IntegerValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 1) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry1IntegerValue();
}

@Override
public Long getByteRange0IntegerValue() {
public Long getByteRange2IntegerValue() {
COSObject ByteRange = getByteRangeValue();
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry0IntegerValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 2) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry2IntegerValue();
}

@Override
public Long getByteRange3IntegerValue() {
COSObject ByteRange = getByteRangeValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 3) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry3IntegerValue();
}

@Override
public Boolean getByteRange1HasTypeInteger() {
COSObject ByteRange = getByteRangeValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 1) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry1HasTypeInteger();
}

@Override
public Boolean getByteRange2HasTypeInteger() {
COSObject ByteRange = getByteRangeValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 2) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry2HasTypeInteger();
}

@Override
public Boolean getByteRange0HasTypeInteger() {
COSObject ByteRange = getByteRangeValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 0) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry0HasTypeInteger();
}

@Override
public Boolean getByteRange3HasTypeInteger() {
COSObject ByteRange = getByteRangeValue();
if (ByteRange == null || ByteRange.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (ByteRange.size() <= 3) {
return null;
}
return new GFAArrayOf_4Integers(ByteRange.getDirectBase(), null, null).getentry3HasTypeInteger();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public Boolean getStdCFHasTypeDictionary() {
@Override
public String getStdCFAuthEventNameValue() {
COSObject StdCF = getStdCFValue();
if (StdCF == null || !StdCF.getType().isDictionaryBased()) {
return null;
}
return new GFACryptFilter(StdCF.getDirectBase(), null, null).getAuthEventNameValue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,26 +343,50 @@ public Boolean getUCHasTypeBoolean() {
}

@Override
public Long getD1IntegerValue() {
public Long getD0IntegerValue() {
COSObject D = getDValue();
return new GFAArrayOf_2Integers(D.getDirectBase(), null, null).getentry1IntegerValue();
if (D == null || D.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (D.size() <= 0) {
return null;
}
return new GFAArrayOf_2Integers(D.getDirectBase(), null, null).getentry0IntegerValue();
}

@Override
public Long getD0IntegerValue() {
public Long getD1IntegerValue() {
COSObject D = getDValue();
return new GFAArrayOf_2Integers(D.getDirectBase(), null, null).getentry0IntegerValue();
if (D == null || D.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (D.size() <= 1) {
return null;
}
return new GFAArrayOf_2Integers(D.getDirectBase(), null, null).getentry1IntegerValue();
}

@Override
public Boolean getD1HasTypeInteger() {
COSObject D = getDValue();
if (D == null || D.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (D.size() <= 1) {
return null;
}
return new GFAArrayOf_2Integers(D.getDirectBase(), null, null).getentry1HasTypeInteger();
}

@Override
public Boolean getD0HasTypeInteger() {
COSObject D = getDValue();
if (D == null || D.getType() != COSObjType.COS_ARRAY) {
return null;
}
if (D.size() <= 0) {
return null;
}
return new GFAArrayOf_2Integers(D.getDirectBase(), null, null).getentry0HasTypeInteger();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ public Boolean getXHeightHasTypeNumber() {

@Override
public String getparentBaseFontNameValue() {
if (this.parentObject == null || !this.parentObject.getType().isDictionaryBased()) {
return null;
}
return new GFAFontCIDType0(this.parentObject.getDirectBase(), null, null).getBaseFontNameValue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ public Boolean getXHeightHasTypeNumber() {

@Override
public String getparentBaseFontNameValue() {
if (this.parentObject == null || !this.parentObject.getType().isDictionaryBased()) {
return null;
}
return new GFAFontCIDType2(this.parentObject.getDirectBase(), null, null).getBaseFontNameValue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ public Boolean getXHeightHasTypeNumber() {

@Override
public String getparentBaseFontNameValue() {
if (this.parentObject == null || !this.parentObject.getType().isDictionaryBased()) {
return null;
}
return new GFAFontTrueType(this.parentObject.getDirectBase(), null, null).getBaseFontNameValue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ public Boolean getXHeightHasTypeNumber() {

@Override
public String getparentNameNameValue() {
if (this.parentObject == null || !this.parentObject.getType().isDictionaryBased()) {
return null;
}
return new GFAFontType3(this.parentObject.getDirectBase(), null, null).getNameNameValue();
}

Expand Down
Loading

0 comments on commit f19e589

Please sign in to comment.