Class: Lutaml::Xml::W3c::XlinkActuateType
- Inherits:
-
Model::Type::String
- Object
- Model::Type::Value
- Model::Type::String
- Lutaml::Xml::W3c::XlinkActuateType
- Defined in:
- lib/lutaml/xml/w3c.rb
Overview
Type for xlink:actuate attribute
Indicates when the link should be activated. Valid values: "onLoad", "onRequest", "other", "none"
Constant Summary collapse
- VALID_ACTUATE =
%w[onLoad onRequest other none].freeze
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
Class Method Summary collapse
Methods inherited from Model::Type::String
default_xsd_type, white_space_mode
Methods inherited from Model::Type::Value
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
Methods included from Model::Type::UninitializedClassGuard
Constructor Details
This class inherits a constructor from Lutaml::Model::Type::Value
Class Method Details
.cast(value) ⇒ Object
357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/lutaml/xml/w3c.rb', line 357 def self.cast(value) return nil if value.nil? return value if Lutaml::Model::Utils.uninitialized?(value) val = super unless VALID_ACTUATE.include?(val) raise ArgumentError, "xlink:actuate must be one of: #{VALID_ACTUATE.join(', ')}" end val end |