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 Details

    • Protocol

      public Protocol()
    • Protocol

      public Protocol(gov.nist.secauto.metaschema.core.model.IMetaschemaData data)
  • Method Details

    • getMetaschemaData

      public gov.nist.secauto.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface gov.nist.secauto.metaschema.core.model.IBoundObject
    • getUuid

      public UUID getUuid()
    • setUuid

      public void setUuid(UUID value)
    • getName

      public String getName()
    • setName

      public void setName(String value)
    • getTitle

      public gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine getTitle()
    • setTitle

      public void setTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value)
    • getPortRanges

    • setPortRanges

      public void setPortRanges(List<PortRange> value)
    • addPortRange

      public boolean addPortRange(PortRange item)
      Add a new PortRange item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removePortRange

      public boolean removePortRange(PortRange item)
      Remove the first matching PortRange item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object