Package dev.metaschema.oscal.lib.model
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 Summary
ConstructorsConstructorDescriptionBase64()Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Base64instance with no metadata.Base64(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Base64instance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionGet the "File Name".Get the "Media Type".dev.metaschema.core.model.IMetaschemaDatagetValue()Get the field value.voidsetFilename(String value) Set the "File Name".voidsetMediaType(String value) Set the "Media Type".voidsetValue(ByteBuffer value) Set the field value.toString()
-
Constructor Details
-
Base64
public Base64()Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Base64instance with no metadata. -
Base64
Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Base64instance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
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
nullif not set
-
setFilename
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, ornullto clear
-
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
nullif not set
-
setMediaType
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, ornullto clear
-
getValue
Get the field value.- Returns:
- the value
-
setValue
Set the field value.- Parameters:
value- the value to set
-
toString
-