Package dev.metaschema.oscal.lib.model
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 Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.TelephoneNumberinstance with no metadata.TelephoneNumber(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.TelephoneNumberinstance with the specified metadata. -
Method Summary
-
Constructor Details
-
TelephoneNumber
public TelephoneNumber()Constructs a newdev.metaschema.oscal.lib.model.TelephoneNumberinstance with no metadata. -
TelephoneNumber
Constructs a newdev.metaschema.oscal.lib.model.TelephoneNumberinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getType
Get the "type flag".Indicates the type of phone number.
- Returns:
- the type value, or
nullif not set
-
setType
Set the "type flag".Indicates the type of phone number.
- Parameters:
value- the type value to set, ornullto clear
-
getNumber
Get the field value.- Returns:
- the value
-
setNumber
Set the field value.- Parameters:
value- the value to set
-
toString
-