Class TelephoneNumber

java.lang.Object
dev.metaschema.oscal.lib.model.TelephoneNumber
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject

@MetaschemaField(formalName="Telephone Number", description="A telephone service number as defined by [ITU-T E.164](https://www.itu.int/rec/T-REC-E.164-201011-I/en).", name="telephone-number", moduleClass=OscalMetadataModule.class, valueConstraints=@ValueConstraints(matches=@Matches(id="oscal-metadata-telephone-number-regex",level=WARNING,pattern="^[0-9]{3}[0-9]{1,12}$",remarks="Providing a country code provides an international means to interpret the phone number."))) public class TelephoneNumber extends Object implements dev.metaschema.core.model.IBoundObject
A telephone service number as defined by ITU-T E.164.
  • Constructor Details

    • TelephoneNumber

      public TelephoneNumber()
      Constructs a new dev.metaschema.oscal.lib.model.TelephoneNumber instance with no metadata.
    • TelephoneNumber

      public TelephoneNumber(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.TelephoneNumber instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getType

      @Nullable public String getType()
      Get the "type flag".

      Indicates the type of phone number.

      Returns:
      the type value, or null if not set
    • setType

      public void setType(@Nullable String value)
      Set the "type flag".

      Indicates the type of phone number.

      Parameters:
      value - the type value to set, or null to clear
    • getNumber

      @Nullable public String getNumber()
      Get the field value.
      Returns:
      the value
    • setNumber

      public void setNumber(@Nullable String value)
      Set the field value.
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object