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 Object
Information 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 boolean
addPortRange(PortRange item)
Add a newPortRange
item to the underlying collection.String
getName()
List<PortRange>
getPortRanges()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
UUID
getUuid()
boolean
removePortRange(PortRange item)
Remove the first matchingPortRange
item from the underlying collection.void
setName(String value)
void
setPortRanges(List<PortRange> value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setUuid(UUID value)
String
toString()
-
-
-
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 newPortRange
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removePortRange
public boolean removePortRange(PortRange item)
Remove the first matchingPortRange
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-