Class BackMatter.Resource.Base64

java.lang.Object
dev.metaschema.oscal.lib.model.BackMatter.Resource.Base64
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
Enclosing class:
BackMatter.Resource

@MetaschemaField(formalName="Base64", description="A resource encoded using the Base64 alphabet defined by [RFC 2045](https://www.rfc-editor.org/rfc/rfc2045.html).", name="base64", moduleClass=OscalMetadataModule.class) public static class BackMatter.Resource.Base64 extends Object implements dev.metaschema.core.model.IBoundObject
A resource encoded using the Base64 alphabet defined by RFC 2045.
  • Constructor Details

    • Base64

      public Base64()
      Constructs a new dev.metaschema.oscal.lib.model.BackMatter.Resource.Base64 instance with no metadata.
    • Base64

      public Base64(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.BackMatter.Resource.Base64 instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getFilename

      @Nullable public String getFilename()
      Get the "File Name".

      Name of the file before it was encoded as Base64 to be embedded in a resource. This is the name that will be assigned to the file when the file is decoded.

      Returns:
      the filename value, or null if not set
    • setFilename

      public void setFilename(@Nullable String value)
      Set the "File Name".

      Name of the file before it was encoded as Base64 to be embedded in a resource. This is the name that will be assigned to the file when the file is decoded.

      Parameters:
      value - the filename value to set, or null to clear
    • getMediaType

      @Nullable public String getMediaType()
      Get the "Media Type".

      A label that indicates the nature of a resource, as a data serialization or format.

      Returns:
      the media-type value, or null if not set
    • setMediaType

      public void setMediaType(@Nullable String value)
      Set the "Media Type".

      A label that indicates the nature of a resource, as a data serialization or format.

      Parameters:
      value - the media-type value to set, or null to clear
    • getValue

      @Nullable public ByteBuffer getValue()
      Get the field value.
      Returns:
      the value
    • setValue

      public void setValue(@Nullable ByteBuffer value)
      Set the field value.
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object