Class PdfFileExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.PdfFileExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,PdfFileExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(FileCoo.class)
public final class PdfFileExtension
extends Object
implements PdfFileExtensionExt, Serializable
The PDF file extension specifies a default extension for capturing properties
specific to PDF files.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfFileExtension.Builderbuilder()Creates a builder forPdfFileExtension.static PdfFileExtensioncopyOf(PdfFileExtensionExt instance) Creates an immutable copy of aPdfFileExtensionExtvalue.booleanThis instance is equal to all instances ofPdfFileExtensionthat have equal attribute values.Custom Properties for STIX Objects.getType()This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.inthashCode()Computes a hash code from attributes:version,isOptimized,documentInfoDict,pdfId0,pdfId1,type,customProperties.toString()Prints the immutable valuePdfFileExtensionwith attribute values.final PdfFileExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final PdfFileExtensionwithDocumentInfoDict(Map<String, ? extends String> entries) Copy the current immutable object by replacing thedocumentInfoDictmap with the specified map.final PdfFileExtensionwithIsOptimized(boolean value) Copy the current immutable object by setting a present value for the optionalisOptimizedattribute.final PdfFileExtensionwithIsOptimized(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theisOptimizedattribute.final PdfFileExtensionwithPdfId0(String value) Copy the current immutable object by setting a present value for the optionalpdfId0attribute.final PdfFileExtensionwithPdfId0(Optional<String> optional) Copy the current immutable object by setting an optional value for thepdfId0attribute.final PdfFileExtensionwithPdfId1(String value) Copy the current immutable object by setting a present value for the optionalpdfId1attribute.final PdfFileExtensionwithPdfId1(Optional<String> optional) Copy the current immutable object by setting an optional value for thepdfId1attribute.final PdfFileExtensionCopy the current immutable object by setting a value for thetypeattribute.final PdfFileExtensionwithVersion(String value) Copy the current immutable object by setting a present value for the optionalversionattribute.final PdfFileExtensionwithVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theversionattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyId
-
Method Details
-
getVersion
@JsonPropertyDescription("Specifies the decimal version number of the Optional<String> from the PDF header that specifies the version of the PDF specification to which the PDF file conforms. E.g., \'1.4\'.") public Optional<String> getVersion()- Specified by:
getVersionin interfacePdfFileExtensionExt- Returns:
- The value of the
versionattribute
-
isOptimized
@JsonPropertyDescription("Specifies whether the PDF file has been optimized.") public Optional<Boolean> isOptimized()- Specified by:
isOptimizedin interfacePdfFileExtensionExt- Returns:
- The value of the
isOptimizedattribute
-
getDocumentInfoDict
@JsonPropertyDescription("Specifies details of the PDF document information dictionary (DID), which includes properties like the document creation data and producer, as a dictionary.") public com.google.common.collect.ImmutableMap<String,String> getDocumentInfoDict()- Specified by:
getDocumentInfoDictin interfacePdfFileExtensionExt- Returns:
- The value of the
documentInfoDictattribute
-
getPdfId0
@JsonPropertyDescription("Specifies the first file identifier found for the PDF file.") public Optional<String> getPdfId0()- Specified by:
getPdfId0in interfacePdfFileExtensionExt- Returns:
- The value of the
pdfId0attribute
-
getPdfId1
@JsonPropertyDescription("Specifies the second file identifier found for the PDF file.") public Optional<String> getPdfId1()- Specified by:
getPdfId1in interfacePdfFileExtensionExt- Returns:
- The value of the
pdfId1attribute
-
getType
This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.- Specified by:
getTypein interfaceCyberObservableExtensionCommonProperties
-
getCustomProperties
Custom Properties for STIX Objects. Any object that supports custom properties will have a validation of the custom property prefix (typically "x_"). If the additional property in the JSON does not meet the StartsWith condition, then the JSON will be rejected.- Specified by:
getCustomPropertiesin interfaceStixCustomProperties- Returns:
- Map of custom properties
Map<String, Object>
-
withVersion
Copy the current immutable object by setting a present value for the optionalversionattribute.- Parameters:
value- The value for version- Returns:
- A modified copy of
thisobject
-
withVersion
Copy the current immutable object by setting an optional value for theversionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for version- Returns:
- A modified copy of
thisobject
-
withIsOptimized
Copy the current immutable object by setting a present value for the optionalisOptimizedattribute.- Parameters:
value- The value for isOptimized- Returns:
- A modified copy of
thisobject
-
withIsOptimized
Copy the current immutable object by setting an optional value for theisOptimizedattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isOptimized- Returns:
- A modified copy of
thisobject
-
withDocumentInfoDict
Copy the current immutable object by replacing thedocumentInfoDictmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the documentInfoDict map- Returns:
- A modified copy of
thisobject
-
withPdfId0
Copy the current immutable object by setting a present value for the optionalpdfId0attribute.- Parameters:
value- The value for pdfId0- Returns:
- A modified copy of
thisobject
-
withPdfId0
Copy the current immutable object by setting an optional value for thepdfId0attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for pdfId0- Returns:
- A modified copy of
thisobject
-
withPdfId1
Copy the current immutable object by setting a present value for the optionalpdfId1attribute.- Parameters:
value- The value for pdfId1- Returns:
- A modified copy of
thisobject
-
withPdfId1
Copy the current immutable object by setting an optional value for thepdfId1attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for pdfId1- Returns:
- A modified copy of
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
thisobject
-
withCustomProperties
Copy the current immutable object by replacing thecustomPropertiesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the customProperties map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofPdfFileExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:version,isOptimized,documentInfoDict,pdfId0,pdfId1,type,customProperties. -
toString
Prints the immutable valuePdfFileExtensionwith attribute values. -
copyOf
Creates an immutable copy of aPdfFileExtensionExtvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PdfFileExtension instance
-
builder
Creates a builder forPdfFileExtension.- Returns:
- A new PdfFileExtension builder
-