Class Metadata.Role
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Role Description".getId()Get the "Role Identifier".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Role Short Name".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Role Title".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Role Description".voidSet the "Role Identifier".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetShortName(String value) Set the "Role Short Name".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Role Title".toString()
-
Constructor Details
-
Role
public Role()Constructs a newdev.metaschema.oscal.lib.model.Metadata.Roleinstance with no metadata. -
Role
Constructs a newdev.metaschema.oscal.lib.model.Metadata.Roleinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getId
Get the "Role Identifier".A unique identifier for the role.
- Returns:
- the id value
-
setId
Set the "Role Identifier".A unique identifier for the role.
- Parameters:
value- the id value to set
-
getTitle
Get the "Role Title".A name given to the role, which may be used by a tool for display and navigation.
- Returns:
- the title value
-
setTitle
Set the "Role Title".A name given to the role, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set
-
getShortName
Get the "Role Short Name".A short common name, abbreviation, or acronym for the role.
- Returns:
- the short-name value, or
nullif not set
-
setShortName
Set the "Role Short Name".A short common name, abbreviation, or acronym for the role.
- Parameters:
value- the short-name value to set, ornullto clear
-
getDescription
Get the "Role Description".A summary of the role's purpose and associated responsibilities.
- Returns:
- the description value, or
nullif not set
-
setDescription
Set the "Role Description".A summary of the role's purpose and associated responsibilities.
- Parameters:
value- the description 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
-