Method: CPEE::Properties::PutDescription.set
- Defined in:
- lib/cpee/implementation_properties.rb
.set(id, opts, xml) ⇒ Object
{{{
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'lib/cpee/implementation_properties.rb', line 636 def self::set(id,opts,xml) dslx, dsl, de, ep = transform( xml, CPEE::Persistence::extract_item(id,opts,'transformation/description'), CPEE::Persistence::extract_item(id,opts,'transformation/description/@type'), CPEE::Persistence::extract_item(id,opts,'transformation/dataelements'), CPEE::Persistence::extract_item(id,opts,'transformation/dataelements/@type'), CPEE::Persistence::extract_item(id,opts,'transformation/endpoints'), CPEE::Persistence::extract_item(id,opts,'transformation/endpoints/@type'), opts ) CPEE::Persistence::set_item(id,opts,'description', :description => xml, :dslx => dslx, :dsl => dsl ) PatchItems::set_hash('dataelements',id,opts,de) unless de.empty? PatchItems::set_hash('dataelements',id,opts,ep) unless ep.empty? end |