Package dev.metaschema.oscal.lib.model
Class DocumentId
java.lang.Object
dev.metaschema.oscal.lib.model.DocumentId
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaField(formalName="Document Identifier",
description="A document identifier qualified by an identifier `scheme`.",
name="document-id",
moduleClass=OscalMetadataModule.class)
public class DocumentId
extends Object
implements dev.metaschema.core.model.IBoundObject
A document identifier qualified by an identifier
scheme.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.DocumentIdinstance with no metadata.DocumentId(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.DocumentIdinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionGet the field value.dev.metaschema.core.model.IMetaschemaDataGet the "Document Identification Scheme".voidsetIdentifier(String value) Set the field value.voidSet the "Document Identification Scheme".toString()
-
Constructor Details
-
DocumentId
public DocumentId()Constructs a newdev.metaschema.oscal.lib.model.DocumentIdinstance with no metadata. -
DocumentId
Constructs a newdev.metaschema.oscal.lib.model.DocumentIdinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getScheme
Get the "Document Identification Scheme".Qualifies the kind of document identifier using a URI. If the scheme is not provided the value of the element will be interpreted as a string of characters.
- Returns:
- the scheme value, or
nullif not set
-
setScheme
Set the "Document Identification Scheme".Qualifies the kind of document identifier using a URI. If the scheme is not provided the value of the element will be interpreted as a string of characters.
- Parameters:
value- the scheme value to set, ornullto clear
-
getIdentifier
Get the field value.- Returns:
- the value
-
setIdentifier
Set the field value.- Parameters:
value- the value to set
-
toString
-