Package gov.nist.secauto.oscal.lib.model
Class Characterization
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Characterization
-
@MetaschemaAssembly(formalName="Characterization", description="A collection of descriptive data about the containing object from a specific origin.", name="characterization", metaschema=OscalAssessmentCommonMetaschema.class) public class Characterization extends Object
A collection of descriptive data about the containing object from a specific origin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Characterization.Facet
An individual characteristic that is part of a larger set produced by the same actor.
-
Constructor Summary
Constructors Constructor Description Characterization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addFacet(Characterization.Facet item)
Add a newCharacterization.Facet
item to the underlying collection.boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.List<Characterization.Facet>
getFacets()
List<Link>
getLinks()
Origin
getOrigin()
List<Property>
getProps()
boolean
removeFacet(Characterization.Facet item)
Remove the first matchingCharacterization.Facet
item from the underlying collection.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
setFacets(List<Characterization.Facet> value)
void
setLinks(List<Link> value)
void
setOrigin(Origin value)
void
setProps(List<Property> value)
String
toString()
-
-
-
Constructor Detail
-
Characterization
public Characterization()
-
-
Method Detail
-
addProp
public boolean addProp(Property item)
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getFacets
public List<Characterization.Facet> getFacets()
-
setFacets
public void setFacets(List<Characterization.Facet> value)
-
addFacet
public boolean addFacet(Characterization.Facet item)
Add a newCharacterization.Facet
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeFacet
public boolean removeFacet(Characterization.Facet item)
Remove the first matchingCharacterization.Facet
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-