Package gov.nist.secauto.oscal.lib.model
Class PortRange
java.lang.Object
gov.nist.secauto.oscal.lib.model.PortRange
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Port Range",
description="Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.",
name="port-range",
moduleClass=OscalImplementationCommonModule.class,
remarks="To be validated as a natural number (integer \\>= 1). A single port uses the same value for start and end. Use multiple \'port-range\' entries for non-contiguous ranges.",
valueConstraints=@Expect(id="port-range-has-start",level=WARNING,test="exists(@start)",message="A port range should have a start port given.") @Expect(id="port-range-has-end",level=WARNING,test="exists(@end)",message="A port range should have an end port given. To define a single port, the start and end should be the same value.") @Expect(id="port-range-starts-before-end",level=WARNING,test="not(@start > @end)",message="The port range start should not be after its end."))
public class PortRange
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEnd()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getStart()
void
setEnd
(BigInteger value) void
setStart
(BigInteger value) void
setTransport
(String value) toString()