Package gov.nist.secauto.oscal.lib.model
Class SubjectReference
java.lang.Object
gov.nist.secauto.oscal.lib.model.SubjectReference
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Identifies the Subject",
description="A [human-oriented](https://pages.nist.gov/OSCAL/concepts/identifier-use/#human-oriented) identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.",
name="subject-reference",
moduleClass=OscalAssessmentCommonModule.class,
remarks="The subject reference UUID could point to an item defined in the SSP, AP, or AR.\n\nTools should check look for the ID in every file imported directly or indirectly.")
public class SubjectReference
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.
-
Constructor Summary
ConstructorDescriptionSubjectReference
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
getType()
boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setSubjectUuid
(UUID value) void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
toString()
-
Constructor Details
-
SubjectReference
public SubjectReference() -
SubjectReference
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getSubjectUuid
-
setSubjectUuid
-
getType
-
setType
-
getTitle
-
setTitle
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
-
setRemarks
-
toString
-