Class Characterization
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn individual characteristic that is part of a larger set produced by the same actor. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.Characterizationinstance with no metadata.Characterization(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.Characterizationinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newCharacterization.Facetitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.Get the "Facet".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Origin".getProps()Get the "Property".booleanRemove the first matchingCharacterization.Facetitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetFacets(List<Characterization.Facet> value) Set the "Facet".voidSet the "Link".voidSet the "Origin".voidSet the "Property".toString()
-
Constructor Details
-
Characterization
public Characterization()Constructs a newdev.metaschema.oscal.lib.model.Characterizationinstance with no metadata. -
Characterization
Constructs a newdev.metaschema.oscal.lib.model.Characterizationinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
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
-
getOrigin
Get the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Returns:
- the origin value
-
setOrigin
Set the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Parameters:
value- the origin value to set
-
getFacets
Get the "Facet".An individual characteristic that is part of a larger set produced by the same actor.
- Returns:
- the facet value
-
setFacets
Set the "Facet".An individual characteristic that is part of a larger set produced by the same actor.
- Parameters:
value- the facet value to set
-
addFacet
Add a newCharacterization.Facetitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeFacet
Remove the first matchingCharacterization.Facetitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-