Class OriginActor
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.OriginActorinstance with no metadata.OriginActor(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.OriginActorinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.Get the "Actor Universally Unique Identifier Reference".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".Get the "Actor Role".getType()Get the "Actor Type".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetActorUuid(UUID value) Set the "Actor Universally Unique Identifier Reference".voidSet the "Link".voidSet the "Property".voidSet the "Actor Role".voidSet the "Actor Type".toString()
-
Constructor Details
-
OriginActor
public OriginActor()Constructs a newdev.metaschema.oscal.lib.model.OriginActorinstance with no metadata. -
OriginActor
Constructs a newdev.metaschema.oscal.lib.model.OriginActorinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getType
Get the "Actor Type".The kind of actor.
- Returns:
- the type value
-
setType
Set the "Actor Type".The kind of actor.
- Parameters:
value- the type value to set
-
getActorUuid
Get the "Actor Universally Unique Identifier Reference".A machine-oriented identifier reference to the tool or person based on the associated type.
- Returns:
- the actor-uuid value
-
setActorUuid
Set the "Actor Universally Unique Identifier Reference".A machine-oriented identifier reference to the tool or person based on the associated type.
- Parameters:
value- the actor-uuid value to set
-
getRoleId
Get the "Actor Role".For a party, this can optionally be used to specify the role the actor was performing.
- Returns:
- the role-id value, or
nullif not set
-
setRoleId
Set the "Actor Role".For a party, this can optionally be used to specify the role the actor was performing.
- Parameters:
value- the role-id 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
-
toString
-