Class SubjectReference
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.SubjectReferenceinstance with no metadata.SubjectReference(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.SubjectReferenceinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Subject Universally Unique Identifier Reference".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Subject Reference Title".getType()Get the "Subject Universally Unique Identifier Reference Type".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetSubjectUuid(UUID value) Set the "Subject Universally Unique Identifier Reference".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Subject Reference Title".voidSet the "Subject Universally Unique Identifier Reference Type".toString()
-
Constructor Details
-
SubjectReference
public SubjectReference()Constructs a newdev.metaschema.oscal.lib.model.SubjectReferenceinstance with no metadata. -
SubjectReference
Constructs a newdev.metaschema.oscal.lib.model.SubjectReferenceinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getSubjectUuid
Get the "Subject Universally Unique Identifier Reference".A machine-oriented identifier reference to a component, inventory-item, location, party, user, or resource using it's UUID.
- Returns:
- the subject-uuid value
-
setSubjectUuid
Set the "Subject Universally Unique Identifier Reference".A machine-oriented identifier reference to a component, inventory-item, location, party, user, or resource using it's UUID.
- Parameters:
value- the subject-uuid value to set
-
getType
Get the "Subject Universally Unique Identifier Reference Type".Used to indicate the type of object pointed to by the
uuid-refwithin a subject.- Returns:
- the type value
-
setType
Set the "Subject Universally Unique Identifier Reference Type".Used to indicate the type of object pointed to by the
uuid-refwithin a subject.- Parameters:
value- the type value to set
-
getTitle
Get the "Subject Reference Title".The title or name for the referenced subject.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Subject Reference Title".The title or name for the referenced subject.
- Parameters:
value- the title value to set, ornullto clear
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-