Class Protocol
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPortRange(PortRange item) Add a newPortRangeitem to the underlying collection.dev.metaschema.core.model.IMetaschemaDatagetName()Get the "Protocol Name".Get the "Port Range".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Protocol Title".getUuid()Get the "Service Protocol Information Universally Unique Identifier".booleanremovePortRange(PortRange item) Remove the first matchingPortRangeitem from the underlying collection.voidSet the "Protocol Name".voidsetPortRanges(List<PortRange> value) Set the "Port Range".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Protocol Title".voidSet the "Service Protocol Information Universally Unique Identifier".toString()
-
Constructor Details
-
Protocol
public Protocol()Constructs a newdev.metaschema.oscal.lib.model.Protocolinstance with no metadata. -
Protocol
Constructs a newdev.metaschema.oscal.lib.model.Protocolinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Service Protocol Information Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this service protocol information elsewhere in this or other OSCAL instances. The locally defined UUID of the
service protocolcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value, or
nullif not set
-
setUuid
Set the "Service Protocol Information Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this service protocol information elsewhere in this or other OSCAL instances. The locally defined UUID of the
service protocolcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set, ornullto clear
-
getName
Get the "Protocol Name".The common name of the protocol, which should be the appropriate "service name" from the IANA Service Name and Transport Protocol Port Number Registry.
- Returns:
- the name value, or
nullif not set
-
setName
Set the "Protocol Name".The common name of the protocol, which should be the appropriate "service name" from the IANA Service Name and Transport Protocol Port Number Registry.
- Parameters:
value- the name value to set, ornullto clear
-
getTitle
Get the "Protocol Title".A human readable name for the protocol (e.g., Transport Layer Security).
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Protocol Title".A human readable name for the protocol (e.g., Transport Layer Security).
- Parameters:
value- the title value to set, ornullto clear
-
getPortRanges
Get the "Port Range".Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.
- Returns:
- the port-range value
-
setPortRanges
Set the "Port Range".Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.
- Parameters:
value- the port-range value to set
-
addPortRange
Add a newPortRangeitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePortRange
Remove the first matchingPortRangeitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-