Class: Lutaml::Xml::W3c::XmlLangType

Inherits:
Model::Type::String show all
Defined in:
lib/lutaml/xml/w3c.rb

Overview

Type for xml:lang attribute

Identifies the human language used in element scope. Values follow RFC 5646 language tags (formerly RFC 3066, BCP 47).

Examples:

Valid language codes

"en"       # English
"en-US"    # English (United States)
"fr"       # French
"de-DE"    # German (Germany)
"zh-Hans"  # Chinese (Simplified)

See Also:

Constant Summary

Constants inherited from Model::Type::Value

Model::Type::Value::EMPTY_OPTIONS, Model::Type::Value::LIST_FACETS, Model::Type::Value::MAX_FACETS, Model::Type::Value::MIN_FACETS, Model::Type::Value::WHITE_SPACE_MODES

Instance Attribute Summary

Attributes inherited from Model::Type::Value

#value

Method Summary

Methods inherited from Model::Type::String

cast, default_xsd_type, white_space_mode

Methods inherited from Model::Type::Value

cast, enumeration, exclusive, facets, format_type_serializer_for, fraction_digits, from_format, inclusive, inherited, #initialize, #initialized?, length, pattern, register_format_to_from_methods, register_format_type_serializer, serialize, tighter_facet, #to_s, total_digits, white_space

Methods included from Type::Configurable

included

Methods included from Model::Type::UninitializedClassGuard

#cast, #serialize

Constructor Details

This class inherits a constructor from Lutaml::Model::Type::Value