Class: ActiveFacts::Metamodel::ValueField
- Inherits:
-
Injection
show all
- Defined in:
- lib/activefacts/metamodel/metamodel.rb,
lib/activefacts/metamodel/extensions.rb
Constant Summary
Constants inherited
from Component
Component::RANK_DISCRIMINATOR, Component::RANK_FOREIGN, Component::RANK_IDENT, Component::RANK_INDICATOR, Component::RANK_INJECTION, Component::RANK_MANDATORY, Component::RANK_MULTIPLE, Component::RANK_NON_MANDATORY, Component::RANK_SCOPING, Component::RANK_SUBTYPE, Component::RANK_SUPER, Component::RANK_SURROGATE, Component::RANK_VALUE
Instance Method Summary
collapse
Methods inherited from Injection
#path_mandatory
Methods inherited from Mapping
#all_leaf, #is_auto_assigned, #is_mandatory, #path_mandatory, #re_rank, #root, #validate_members
Methods inherited from Component
#all_role, #data_type, #depth, #in_foreign_key, #in_primary_index, #is_auto_assigned, #is_mandatory, #leaves, #narrow_value_constraint, #parent_entity_type, #path, #path_mandatory, #primary_index_components, #rank_key, #rank_kind, #rank_path, #root, #uncache_rank_key
Instance Method Details
2223
2224
2225
|
# File 'lib/activefacts/metamodel/extensions.rb', line 2223
def
(c = parent && parent.) && c != '' ? c : name
end
|
#fork_to_new_parent(parent) ⇒ Object
2227
2228
2229
2230
|
# File 'lib/activefacts/metamodel/extensions.rb', line 2227
def fork_to_new_parent parent
@constellation.fork self, guid: :new, parent: parent, name: object_type.name
end
|
#inspect ⇒ Object
2215
2216
2217
|
# File 'lib/activefacts/metamodel/extensions.rb', line 2215
def inspect
"#{self.class.basename} #{object_type.name.inspect}"
end
|
#show_trace ⇒ Object
2219
2220
2221
|
# File 'lib/activefacts/metamodel/extensions.rb', line 2219
def show_trace
trace :composition, "#{ordinal}: #{inspect}#{name ? " (as #{name.inspect})" : ''}"
end
|