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 ObjectA collection of descriptive data about the containing object from a specific origin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCharacterization.FacetAn 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 booleanaddFacet(Characterization.Facet item)Add a newCharacterization.Facetitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.List<Characterization.Facet>getFacets()List<Link>getLinks()OrigingetOrigin()List<Property>getProps()booleanremoveFacet(Characterization.Facet item)Remove 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)voidsetLinks(List<Link> value)voidsetOrigin(Origin value)voidsetProps(List<Property> value)StringtoString()
-
-
-
Constructor Detail
-
Characterization
public Characterization()
-
-
Method Detail
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getFacets
public List<Characterization.Facet> getFacets()
-
setFacets
public void setFacets(List<Characterization.Facet> value)
-
addFacet
public boolean addFacet(Characterization.Facet item)
Add a newCharacterization.Facetitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeFacet
public boolean removeFacet(Characterization.Facet item)
Remove the first matchingCharacterization.Facetitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-