ContentType 🔗

Primitive type: str 🔗
string with max 128 and min 1 characters

Any content type as specified in RFC2046.

The content type should be registered by the Internet Assigned Numbers Authority (IANA) as specified in RFC2048.

Inheritances 🔗

Invariants 🔗

  • Constraint AASd-130: An attribute with data type 'string' shall consist of these characters only: ^[\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD\U00010000-\U0010FFFF]*$.
    (From XmlSerializableString)
  • The value must not be empty.
    (From NonEmptyXmlSerializableString)
    len(self) >= 1
  • Content type shall have a maximum length of 128 characters.
    len(self) <= 128
  • The value must represent a valid content MIME type according to RFC 2046.

Usages

Resource Resource.contentType
Blob Blob.contentType
File File.contentType