<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zecl</author_name>
  <author_url>https://blog.hatena.ne.jp/zecl/</author_url>
  <blog_title>Bug Catharsis</blog_title>
  <blog_url>https://zecl.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>デザインパターン</anon>
  </categories>
  <description>今回はGoFデザインパターンの中から 「Compositeパターン*1」をぬるーく解説します。 オブジェクト指向開発を進めていくと、このパターンの考え方が必要となる場面は多いだろう。 つまり、プリミティブなオブジェクトと、コンテナオブジェクトを一様に扱いたいような場面だ。 例えば、ツリー構造を操作するプログラムを設計するのであれば、ほぼ100％このパターンを用いると考えて間違いない。 ■Compositeパターンの概要■ Compositeとは、英語で「複合物」、あるいは「合成物」を意味する言葉です。 Compositeパターンでは、複数のオブジェクトを合成します。 そして、その合成されたオブ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzecl.hatenablog.com%2Fentry%2F20070505%2Fp1&quot; title=&quot;デザインパターン第６回「Compositeパターン」 - Bug Catharsis&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/z/zecl/20070506/20070506011309.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-05-05 00:00:00</published>
  <title>デザインパターン第６回「Compositeパターン」</title>
  <type>rich</type>
  <url>https://zecl.hatenablog.com/entry/20070505/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
