Package security.whisper.javastix.bundle
Interface BundleObject
- All Superinterfaces:
GenericValidation,SdoDefaultValidator,Serializable,Stix,StixCustomProperties
- All Known Implementing Classes:
Bundle
@Immutable
@DefaultTypeValue(value="bundle",
groups=DefaultValuesProcessor.class)
public interface BundleObject
extends GenericValidation, Serializable, StixCustomProperties, Stix
bundle
A Bundle is a collection of arbitrary STIX Objects and Marking Definitions grouped together in a single container.
-
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescription@NotBlank @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") StringgetId()@Size(min=1,message="Must have at least 1 object in bundle") Set<BundleableObject> default @NotBlank String@NotBlank @Pattern(regexp="^\\-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\-?$") @Size(min=3,max=250) StringgetType()default StringMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyIdMethods inherited from interface security.whisper.javastix.common.StixCustomProperties
getCustomProperties
-
Method Details
-
getType
@NotBlank @JsonPropertyDescription("The type property identifies the type of STIX Object (SDO, Relationship Object, etc). The value of the type field MUST be one of the types defined by a STIX Object (e.g., indicator).") @Pattern(regexp="^\\-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\-?$") @Size(min=3, max=250) @NotBlank @Pattern(regexp="^\\-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\-?$") @Size(min=3,max=250) String getType() -
getId
@NotBlank @JsonPropertyDescription("Represents identifiers across the CTI specifications. The format consists of the name of the top-level object being identified, followed by two dashes (--), followed by a UUIDv4.") @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @NotBlank @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") String getId() -
getSpecVersion
@NotBlank @JsonPropertyDescription("The version of the STIX specification used to represent the content in this bundle.") @Default default @NotBlank String getSpecVersion() -
getObjects
@Size(min=1, message="Must have at least 1 object in bundle") @JsonPropertyDescription("Specifies a set of one or more STIX Objects.") @Size(min=1,message="Must have at least 1 object in bundle") Set<BundleableObject> getObjects() -
toJsonString
-