doc/api/python/configuration.ConfigurationSet-class.html
changeset 432 f2ddfa555b0f
equal deleted inserted replaced
431:7685cec9fd3c 432:f2ddfa555b0f
       
     1 <?xml version="1.0" encoding="ascii"?>
       
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     3           "DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     5 <head>
       
     6   <title>configuration.ConfigurationSet</title>
       
     7   <link rel="stylesheet" href="epydoc.css" type="text/css" />
       
     8   <script type="text/javascript" src="epydoc.js"></script>
       
     9 </head>
       
    10 
       
    11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
       
    12       alink="#204080">
       
    13 <!-- ==================== NAVIGATION BAR ==================== -->
       
    14 <table class="navbar" border="0" width="100%" cellpadding="0"
       
    15        bgcolor="#a0c0ff" cellspacing="0">
       
    16   <tr valign="middle">
       
    17 
       
    18   <!-- Tree link -->
       
    19       <th>&nbsp;&nbsp;&nbsp;<a
       
    20         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
    21 
       
    22   <!-- Index link -->
       
    23       <th>&nbsp;&nbsp;&nbsp;<a
       
    24         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
    25 
       
    26   <!-- Help link -->
       
    27       <th>&nbsp;&nbsp;&nbsp;<a
       
    28         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
    29 
       
    30       <th class="navbar" width="100%"></th>
       
    31   </tr>
       
    32 </table>
       
    33 <table width="100%" cellpadding="0" cellspacing="0">
       
    34   <tr valign="top">
       
    35     <td width="100%">
       
    36       <span class="breadcrumbs">
       
    37         <a href="configuration-module.html">Module&nbsp;configuration</a> ::
       
    38         Class&nbsp;ConfigurationSet
       
    39       </span>
       
    40     </td>
       
    41     <td>
       
    42       <table cellpadding="0" cellspacing="0">
       
    43         <!-- hide/show private -->
       
    44         <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
       
    45     onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
       
    46         <tr><td align="right"><span class="options"
       
    47             >[<a href="frames.html" target="_top">frames</a
       
    48             >]&nbsp;|&nbsp;<a href="configuration.ConfigurationSet-class.html"
       
    49             target="_top">no&nbsp;frames</a>]</span></td></tr>
       
    50       </table>
       
    51     </td>
       
    52   </tr>
       
    53 </table>
       
    54 <!-- ==================== CLASS DESCRIPTION ==================== -->
       
    55 <h1 class="epydoc">Class ConfigurationSet</h1><span class="codelink"><a href="configuration-pysrc.html#ConfigurationSet">source&nbsp;code</a></span><br /><br />
       
    56 <pre class="base-tree">
       
    57             object --+    
       
    58                      |    
       
    59 UserDict.DictMixin --+    
       
    60                      |    
       
    61          <a href="configuration.Configuration-class.html">Configuration</a> --+
       
    62                          |
       
    63                         <strong class="uidshort">ConfigurationSet</strong>
       
    64 </pre>
       
    65 
       
    66 <hr />
       
    67 <p>A ConfigurationSet represents a set of configurations.</p>
       
    68 <p>Each configuration should be processed separately. This is matching
       
    69 the Raptor model where a single XML file can contain definitions
       
    70 of multiple specifications and configurations.</p>
       
    71 <p>It is however somewhat different from the Commons Configuration classes
       
    72 that combine configurations, e.g. CombinedConfiguration,
       
    73 CompositeConfiguration. These act to combine configurations in a way
       
    74 such that a single configuration interface is still presented to the
       
    75 client.</p><br /><br />
       
    76 
       
    77 <!-- ==================== INSTANCE METHODS ==================== -->
       
    78 <a name="section-InstanceMethods"></a>
       
    79 <table class="summary" border="1" cellpadding="3"
       
    80        cellspacing="0" width="100%" bgcolor="white">
       
    81 <tr bgcolor="#70b0f0" class="table-header">
       
    82   <td colspan="2" class="table-header">
       
    83     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
    84       <tr valign="top">
       
    85         <td align="left"><span class="table-header">Instance Methods</span></td>
       
    86         <td align="right" valign="top"
       
    87          ><span class="options">[<a href="#section-InstanceMethods"
       
    88          class="privatelink" onclick="toggle_private();"
       
    89          >hide private</a>]</span></td>
       
    90       </tr>
       
    91     </table>
       
    92   </td>
       
    93 </tr>
       
    94 <tr>
       
    95     <td width="15%" align="right" valign="top" class="summary">
       
    96       <span class="summary-type">&nbsp;</span>
       
    97     </td><td class="summary">
       
    98       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
    99         <tr>
       
   100           <td><span class="summary-sig"><a href="configuration.ConfigurationSet-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
       
   101         <span class="summary-sig-arg">configs</span>)</span><br />
       
   102       Initialization.</td>
       
   103           <td align="right" valign="top">
       
   104             <span class="codelink"><a href="configuration-pysrc.html#ConfigurationSet.__init__">source&nbsp;code</a></span>
       
   105             
       
   106           </td>
       
   107         </tr>
       
   108       </table>
       
   109       
       
   110     </td>
       
   111   </tr>
       
   112 <tr>
       
   113     <td width="15%" align="right" valign="top" class="summary">
       
   114       <span class="summary-type">&nbsp;</span>
       
   115     </td><td class="summary">
       
   116       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   117         <tr>
       
   118           <td><span class="summary-sig"><a href="configuration.ConfigurationSet-class.html#getConfigurations" class="summary-sig-name">getConfigurations</a>(<span class="summary-sig-arg">self</span>,
       
   119         <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
       
   120         <span class="summary-sig-arg">type</span>=<span class="summary-sig-default">None</span>)</span><br />
       
   121       Return a list of configs that matches the name and type specified.</td>
       
   122           <td align="right" valign="top">
       
   123             <span class="codelink"><a href="configuration-pysrc.html#ConfigurationSet.getConfigurations">source&nbsp;code</a></span>
       
   124             
       
   125           </td>
       
   126         </tr>
       
   127       </table>
       
   128       
       
   129     </td>
       
   130   </tr>
       
   131   <tr>
       
   132     <td colspan="2" class="summary">
       
   133     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="configuration.Configuration-class.html">Configuration</a></code></b>:
       
   134       <code><a href="configuration.Configuration-class.html#__delitem__">__delitem__</a></code>,
       
   135       <code><a href="configuration.Configuration-class.html#__getitem__">__getitem__</a></code>,
       
   136       <code><a href="configuration.Configuration-class.html#__setitem__">__setitem__</a></code>,
       
   137       <code><a href="configuration.Configuration-class.html#__str__">__str__</a></code>,
       
   138       <code><a href="configuration.Configuration-class.html#get">get</a></code>,
       
   139       <code><a href="configuration.Configuration-class.html#get_boolean">get_boolean</a></code>,
       
   140       <code><a href="configuration.Configuration-class.html#get_int">get_int</a></code>,
       
   141       <code><a href="configuration.Configuration-class.html#get_list">get_list</a></code>,
       
   142       <code><a href="configuration.Configuration-class.html#interpolate">interpolate</a></code>,
       
   143       <code><a href="configuration.Configuration-class.html#keys">keys</a></code>,
       
   144       <code><a href="configuration.Configuration-class.html#match_name">match_name</a></code>
       
   145       </p>
       
   146     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   147       <code>__delattr__</code>,
       
   148       <code>__getattribute__</code>,
       
   149       <code>__hash__</code>,
       
   150       <code>__new__</code>,
       
   151       <code>__reduce__</code>,
       
   152       <code>__reduce_ex__</code>,
       
   153       <code>__repr__</code>,
       
   154       <code>__setattr__</code>
       
   155       </p>
       
   156     <p class="indent-wrapped-lines"><b>Inherited from <code>UserDict.DictMixin</code></b>:
       
   157       <code>__cmp__</code>,
       
   158       <code>__contains__</code>,
       
   159       <code>__iter__</code>,
       
   160       <code>__len__</code>,
       
   161       <code>clear</code>,
       
   162       <code>has_key</code>,
       
   163       <code>items</code>,
       
   164       <code>iteritems</code>,
       
   165       <code>iterkeys</code>,
       
   166       <code>itervalues</code>,
       
   167       <code>pop</code>,
       
   168       <code>popitem</code>,
       
   169       <code>setdefault</code>,
       
   170       <code>update</code>,
       
   171       <code>values</code>
       
   172       </p>
       
   173     </td>
       
   174   </tr>
       
   175 </table>
       
   176 <!-- ==================== CLASS VARIABLES ==================== -->
       
   177 <a name="section-ClassVariables"></a>
       
   178 <table class="summary" border="1" cellpadding="3"
       
   179        cellspacing="0" width="100%" bgcolor="white">
       
   180 <tr bgcolor="#70b0f0" class="table-header">
       
   181   <td colspan="2" class="table-header">
       
   182     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   183       <tr valign="top">
       
   184         <td align="left"><span class="table-header">Class Variables</span></td>
       
   185         <td align="right" valign="top"
       
   186          ><span class="options">[<a href="#section-ClassVariables"
       
   187          class="privatelink" onclick="toggle_private();"
       
   188          >hide private</a>]</span></td>
       
   189       </tr>
       
   190     </table>
       
   191   </td>
       
   192 </tr>
       
   193   <tr>
       
   194     <td colspan="2" class="summary">
       
   195     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="configuration.Configuration-class.html">Configuration</a></code></b>:
       
   196       <code><a href="configuration.Configuration-class.html#key_re">key_re</a></code>
       
   197       </p>
       
   198     </td>
       
   199   </tr>
       
   200 </table>
       
   201 <!-- ==================== PROPERTIES ==================== -->
       
   202 <a name="section-Properties"></a>
       
   203 <table class="summary" border="1" cellpadding="3"
       
   204        cellspacing="0" width="100%" bgcolor="white">
       
   205 <tr bgcolor="#70b0f0" class="table-header">
       
   206   <td colspan="2" class="table-header">
       
   207     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   208       <tr valign="top">
       
   209         <td align="left"><span class="table-header">Properties</span></td>
       
   210         <td align="right" valign="top"
       
   211          ><span class="options">[<a href="#section-Properties"
       
   212          class="privatelink" onclick="toggle_private();"
       
   213          >hide private</a>]</span></td>
       
   214       </tr>
       
   215     </table>
       
   216   </td>
       
   217 </tr>
       
   218   <tr>
       
   219     <td colspan="2" class="summary">
       
   220     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   221       <code>__class__</code>
       
   222       </p>
       
   223     </td>
       
   224   </tr>
       
   225 </table>
       
   226 <!-- ==================== METHOD DETAILS ==================== -->
       
   227 <a name="section-MethodDetails"></a>
       
   228 <table class="details" border="1" cellpadding="3"
       
   229        cellspacing="0" width="100%" bgcolor="white">
       
   230 <tr bgcolor="#70b0f0" class="table-header">
       
   231   <td colspan="2" class="table-header">
       
   232     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   233       <tr valign="top">
       
   234         <td align="left"><span class="table-header">Method Details</span></td>
       
   235         <td align="right" valign="top"
       
   236          ><span class="options">[<a href="#section-MethodDetails"
       
   237          class="privatelink" onclick="toggle_private();"
       
   238          >hide private</a>]</span></td>
       
   239       </tr>
       
   240     </table>
       
   241   </td>
       
   242 </tr>
       
   243 </table>
       
   244 <a name="__init__"></a>
       
   245 <div>
       
   246 <table class="details" border="1" cellpadding="3"
       
   247        cellspacing="0" width="100%" bgcolor="white">
       
   248 <tr><td>
       
   249   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   250   <tr valign="top"><td>
       
   251   <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
       
   252         <span class="sig-arg">configs</span>)</span>
       
   253     <br /><em class="fname">(Constructor)</em>
       
   254   </h3>
       
   255   </td><td align="right" valign="top"
       
   256     ><span class="codelink"><a href="configuration-pysrc.html#ConfigurationSet.__init__">source&nbsp;code</a></span>&nbsp;
       
   257     </td>
       
   258   </table>
       
   259   
       
   260   Initialization.
       
   261   <dl class="fields">
       
   262     <dt>Overrides:
       
   263       <a href="configuration.Configuration-class.html#__init__">Configuration.__init__</a>
       
   264     </dt>
       
   265   </dl>
       
   266 </td></tr></table>
       
   267 </div>
       
   268 <a name="getConfigurations"></a>
       
   269 <div>
       
   270 <table class="details" border="1" cellpadding="3"
       
   271        cellspacing="0" width="100%" bgcolor="white">
       
   272 <tr><td>
       
   273   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   274   <tr valign="top"><td>
       
   275   <h3 class="epydoc"><span class="sig"><span class="sig-name">getConfigurations</span>(<span class="sig-arg">self</span>,
       
   276         <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
       
   277         <span class="sig-arg">type</span>=<span class="sig-default">None</span>)</span>
       
   278   </h3>
       
   279   </td><td align="right" valign="top"
       
   280     ><span class="codelink"><a href="configuration-pysrc.html#ConfigurationSet.getConfigurations">source&nbsp;code</a></span>&nbsp;
       
   281     </td>
       
   282   </table>
       
   283   
       
   284   <p>Return a list of configs that matches the name and type specified.</p>
       
   285 <p>This can be queried multiple times to retrieve different named configurations.</p>
       
   286   <dl class="fields">
       
   287   </dl>
       
   288 </td></tr></table>
       
   289 </div>
       
   290 <br />
       
   291 <!-- ==================== NAVIGATION BAR ==================== -->
       
   292 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   293        bgcolor="#a0c0ff" cellspacing="0">
       
   294   <tr valign="middle">
       
   295 
       
   296   <!-- Tree link -->
       
   297       <th>&nbsp;&nbsp;&nbsp;<a
       
   298         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   299 
       
   300   <!-- Index link -->
       
   301       <th>&nbsp;&nbsp;&nbsp;<a
       
   302         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   303 
       
   304   <!-- Help link -->
       
   305       <th>&nbsp;&nbsp;&nbsp;<a
       
   306         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   307 
       
   308       <th class="navbar" width="100%"></th>
       
   309   </tr>
       
   310 </table>
       
   311 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   312   <tr>
       
   313     <td align="left" class="footer">
       
   314     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:18 2009
       
   315     </td>
       
   316     <td align="right" class="footer">
       
   317       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   318     </td>
       
   319   </tr>
       
   320 </table>
       
   321 
       
   322 <script type="text/javascript">
       
   323   <!--
       
   324   // Private objects are initially displayed (because if
       
   325   // javascript is turned off then we want them to be
       
   326   // visible); but by default, we want to hide them.  So hide
       
   327   // them unless we have a cookie that says to show them.
       
   328   checkCookie()
       
   329   // -->
       
   330 </script>
       
   331   
       
   332 </body>
       
   333 </html>