Package gov.nist.secauto.oscal.lib.model
Class Protocol
java.lang.Object
gov.nist.secauto.oscal.lib.model.Protocol
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Service Protocol Information",
description="Information about the protocol used to provide a service.",
name="protocol",
moduleClass=OscalImplementationCommonModule.class,
valueConstraints=@ValueConstraints(expect=@Expect(level=WARNING,test="@uuid",message="It is a best practice to provide a UUID.")))
public class Protocol
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Information about the protocol used to provide a service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPortRange
(PortRange item) Add a newPortRange
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
getName()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
getUuid()
boolean
removePortRange
(PortRange item) Remove the first matchingPortRange
item from the underlying collection.void
void
setPortRanges
(List<PortRange> value) void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
toString()
-
Constructor Details
-
Protocol
public Protocol() -
Protocol
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getName
-
setName
-
getTitle
-
setTitle
-
getPortRanges
-
setPortRanges
-
addPortRange
Add a newPortRange
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removePortRange
Remove the first matchingPortRange
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-