ContentType 🔗
-
Primitive type:
str
🔗
String with length 100 maximum and minimum 1 characters
Any content type as in RFC2046.
A media type (also MIME type and content type) […] is a two-part identifier for file formats and format contents transmitted on the Internet. The Internet Assigned Numbers Authority (IANA) is the official authority for the standardization and publication of these classifications. Media types were originally defined in Request for Comments 2045 in November 1996 as a part of MIME (Multipurpose Internet Mail Extensions) specification, for denoting type of email message content and attachments.
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 NonEmptyXmlSerializableString)
MatchesXmlSerializableString( self )
-
The value must not be empty.
(From NonEmptyXmlSerializableString)
len(self) >= 1
-
Content type shall have a maximum length of 100 characters.
len(self) <= 100
-
The value must represent a valid content MIME type according to RFC 2046.
MatchesMimeType( self )
Usages
Resource | Resource.contentType |
Blob | Blob.contentType |
File | File.contentType |