Class RasterImageFileExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.RasterImageFileExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,RasterImageFileExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(FileCoo.class)
public final class RasterImageFileExtension
extends Object
implements RasterImageFileExtensionExt, Serializable
The Raster Image file extension specifies a default extension for capturing
properties specific to image files.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeRasterImageFileExtension. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forRasterImageFileExtension.static RasterImageFileExtensioncopyOf(RasterImageFileExtensionExt instance) Creates an immutable copy of aRasterImageFileExtensionExtvalue.booleanThis instance is equal to all instances ofRasterImageFileExtensionthat 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:imageHeight,imageWidth,bitsPerPixel,imageCompressionAlgorithm,exifTags,type,customProperties.toString()Prints the immutable valueRasterImageFileExtensionwith attribute values.final RasterImageFileExtensionwithBitsPerPixel(long value) Copy the current immutable object by setting a present value for the optionalbitsPerPixelattribute.final RasterImageFileExtensionwithBitsPerPixel(Optional<Long> optional) Copy the current immutable object by setting an optional value for thebitsPerPixelattribute.final RasterImageFileExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final RasterImageFileExtensionwithExifTags(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theexifTagsmap with the specified map.final RasterImageFileExtensionCopy the current immutable object by setting a present value for the optionalimageCompressionAlgorithmattribute.final RasterImageFileExtensionwithImageCompressionAlgorithm(Optional<String> optional) Copy the current immutable object by setting an optional value for theimageCompressionAlgorithmattribute.final RasterImageFileExtensionwithImageHeight(long value) Copy the current immutable object by setting a present value for the optionalimageHeightattribute.final RasterImageFileExtensionwithImageHeight(Optional<Long> optional) Copy the current immutable object by setting an optional value for theimageHeightattribute.final RasterImageFileExtensionwithImageWidth(long value) Copy the current immutable object by setting a present value for the optionalimageWidthattribute.final RasterImageFileExtensionwithImageWidth(Optional<Long> optional) Copy the current immutable object by setting an optional value for theimageWidthattribute.final RasterImageFileExtensionCopy the current immutable object by setting a value for thetypeattribute.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
-
getImageHeight
@JsonPropertyDescription("Specifies the height of the image in the image file, in pixels.") public Optional<Long> getImageHeight()- Specified by:
getImageHeightin interfaceRasterImageFileExtensionExt- Returns:
- The value of the
imageHeightattribute
-
getImageWidth
@JsonPropertyDescription("Specifies the width of the image in the image file, in pixels.") public Optional<Long> getImageWidth()- Specified by:
getImageWidthin interfaceRasterImageFileExtensionExt- Returns:
- The value of the
imageWidthattribute
-
getBitsPerPixel
@JsonPropertyDescription("Specifies the sum of bits used for each color channel in the image in the image file, and thus the total number of pixels used for expressing the color depth of the image.") public Optional<Long> getBitsPerPixel()- Specified by:
getBitsPerPixelin interfaceRasterImageFileExtensionExt- Returns:
- The value of the
bitsPerPixelattribute
-
getImageCompressionAlgorithm
@JsonPropertyDescription("Specifies the name of the compression algorithm used to compress the image in the image file, if applicable.") public Optional<String> getImageCompressionAlgorithm()- Specified by:
getImageCompressionAlgorithmin interfaceRasterImageFileExtensionExt- Returns:
- The value of the
imageCompressionAlgorithmattribute
-
getExifTags
@JsonPropertyDescription("Specifies the set of EXIF tags found in the image file, as a dictionary. Each key/value pair in the dictionary represents the name/value of a single EXIF tag.") public com.google.common.collect.ImmutableMap<String,Object> getExifTags()- Specified by:
getExifTagsin interfaceRasterImageFileExtensionExt- Returns:
- The value of the
exifTagsattribute
-
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>
-
withImageHeight
Copy the current immutable object by setting a present value for the optionalimageHeightattribute.- Parameters:
value- The value for imageHeight- Returns:
- A modified copy of
thisobject
-
withImageHeight
Copy the current immutable object by setting an optional value for theimageHeightattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for imageHeight- Returns:
- A modified copy of
thisobject
-
withImageWidth
Copy the current immutable object by setting a present value for the optionalimageWidthattribute.- Parameters:
value- The value for imageWidth- Returns:
- A modified copy of
thisobject
-
withImageWidth
Copy the current immutable object by setting an optional value for theimageWidthattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for imageWidth- Returns:
- A modified copy of
thisobject
-
withBitsPerPixel
Copy the current immutable object by setting a present value for the optionalbitsPerPixelattribute.- Parameters:
value- The value for bitsPerPixel- Returns:
- A modified copy of
thisobject
-
withBitsPerPixel
Copy the current immutable object by setting an optional value for thebitsPerPixelattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for bitsPerPixel- Returns:
- A modified copy of
thisobject
-
withImageCompressionAlgorithm
Copy the current immutable object by setting a present value for the optionalimageCompressionAlgorithmattribute.- Parameters:
value- The value for imageCompressionAlgorithm- Returns:
- A modified copy of
thisobject
-
withImageCompressionAlgorithm
Copy the current immutable object by setting an optional value for theimageCompressionAlgorithmattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for imageCompressionAlgorithm- Returns:
- A modified copy of
thisobject
-
withExifTags
Copy the current immutable object by replacing theexifTagsmap 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 exifTags map- 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 ofRasterImageFileExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:imageHeight,imageWidth,bitsPerPixel,imageCompressionAlgorithm,exifTags,type,customProperties. -
toString
Prints the immutable valueRasterImageFileExtensionwith attribute values. -
copyOf
Creates an immutable copy of aRasterImageFileExtensionExtvalue. 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 RasterImageFileExtension instance
-
builder
Creates a builder forRasterImageFileExtension.- Returns:
- A new RasterImageFileExtension builder
-