Package gov.nist.secauto.oscal.lib.model
Class Protocol
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Protocol
-
@MetaschemaAssembly(formalName="Service Protocol Information", description="Information about the protocol used to provide a service.", name="protocol", metaschema=OscalImplementationCommonMetaschema.class) @ValueConstraints(expect=@Expect(level=WARNING,test="@uuid",message="It is a best practice to provide a UUID.")) public class Protocol extends ObjectInformation about the protocol used to provide a service.
-
-
Constructor Summary
Constructors Constructor Description Protocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddPortRange(PortRange item)Add a newPortRangeitem to the underlying collection.StringgetName()List<PortRange>getPortRanges()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()UUIDgetUuid()booleanremovePortRange(PortRange item)Remove the first matchingPortRangeitem from the underlying collection.voidsetName(String value)voidsetPortRanges(List<PortRange> value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Protocol
public Protocol()
-
-
Method Detail
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
getPortRanges
public List<PortRange> getPortRanges()
-
setPortRanges
public void setPortRanges(List<PortRange> value)
-
addPortRange
public boolean addPortRange(PortRange item)
Add a newPortRangeitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePortRange
public boolean removePortRange(PortRange item)
Remove the first matchingPortRangeitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-