| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_75) on Wed May 27 00:04:13 CEST 2015 --> |
| <title>PropertyMetaData</title> |
| <meta name="date" content="2015-05-27"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="PropertyMetaData"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/dm/Logger.html" title="class in org.apache.felix.dm"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/dm/ResourceDependency.html" title="interface in org.apache.felix.dm"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/felix/dm/PropertyMetaData.html" target="_top">Frames</a></li> |
| <li><a href="PropertyMetaData.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.felix.dm</div> |
| <h2 title="Interface PropertyMetaData" class="title">Interface PropertyMetaData</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public interface <span class="strong">PropertyMetaData</span></pre> |
| <div class="block">This interface defines meta data regarding a given configuration property.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#addOption(java.lang.String,%20java.lang.String)">addOption</a></strong>(java.lang.String optionLabel, |
| java.lang.String optionValue)</code> |
| <div class="block">Return a list of valid options for this property (the labels may be localized).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setCardinality(int)">setCardinality</a></strong>(int cardinality)</code> |
| <div class="block">Return the cardinality of this property.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setDefaults(java.lang.String[])">setDefaults</a></strong>(java.lang.String[] defaults)</code> |
| <div class="block">Returns a default for this property.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setDescription(java.lang.String)">setDescription</a></strong>(java.lang.String description)</code> |
| <div class="block">Returns the property description.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setHeading(java.lang.String)">setHeading</a></strong>(java.lang.String heading)</code> |
| <div class="block">The label used to display the property.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setId(java.lang.String)">setId</a></strong>(java.lang.String id)</code> |
| <div class="block">The key of a ConfigurationAdmin property.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setRequired(boolean)">setRequired</a></strong>(boolean required)</code> |
| <div class="block">Tells if this property is required or not.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/dm/PropertyMetaData.html#setType(java.lang.Class)">setType</a></strong>(java.lang.Class<?> type)</code> |
| <div class="block">Returns the property primitive type.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="setHeading(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setHeading</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setHeading(java.lang.String heading)</pre> |
| <div class="block">The label used to display the property. Example: "Log Level".</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>The label used to display the property (may be localized)</dd></dl> |
| </li> |
| </ul> |
| <a name="setId(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setId</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setId(java.lang.String id)</pre> |
| <div class="block">The key of a ConfigurationAdmin property. Example: "printer.logLevel"</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>The Configuration Admin property name</dd></dl> |
| </li> |
| </ul> |
| <a name="setType(java.lang.Class)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setType</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setType(java.lang.Class<?> type)</pre> |
| <div class="block">Returns the property primitive type. If must be either one of the following types:<p> |
| <ul> |
| <li>String.class</li> |
| <li>Long.class</li> |
| <li>Integer.class</li> |
| <li>Character.class</li> |
| <li>Byte.class</li> |
| <li>Double.class</li> |
| <li>Float.class</li> |
| <li>Boolean.class</li> |
| </ul></div> |
| </li> |
| </ul> |
| <a name="setDefaults(java.lang.String[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDefaults</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setDefaults(java.lang.String[] defaults)</pre> |
| <div class="block">Returns a default for this property. The object must be of the appropriate type as defined by the cardinality and getType(). |
| The return type is a list of String objects that can be converted to the appropriate type. The cardinality of the return |
| array must follow the absolute cardinality of this type. E.g. if the cardinality = 0, the array must contain 1 element. |
| If the cardinality is 1, it must contain 0 or 1 elements. If it is -5, it must contain from 0 to max 5 elements. Note that |
| the special case of a 0 cardinality, meaning a single value, does not allow arrays or vectors of 0 elements.</div> |
| </li> |
| </ul> |
| <a name="setDescription(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDescription</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setDescription(java.lang.String description)</pre> |
| <div class="block">Returns the property description. The description may be localized and must describe the semantics of this type and any |
| constraints. Example: "Select the log level for the Printer Service".</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>a localizable description of the property.</dd></dl> |
| </li> |
| </ul> |
| <a name="setCardinality(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCardinality</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setCardinality(int cardinality)</pre> |
| <div class="block">Return the cardinality of this property. The OSGi environment handles multi valued properties in arrays ([]) or in Vector objects. |
| The return value is defined as follows:<p> |
| |
| <ul> |
| <li> x = Integer.MIN_VALUE no limit, but use Vector</li> |
| <li> x < 0 -x = max occurrences, store in Vector</li> |
| <li> x > 0 x = max occurrences, store in array []</li> |
| <li> x = Integer.MAX_VALUE no limit, but use array []</li> |
| <li> x = 0 1 occurrence required</li> |
| </ul></div> |
| </li> |
| </ul> |
| <a name="setRequired(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRequired</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> setRequired(boolean required)</pre> |
| <div class="block">Tells if this property is required or not.</div> |
| </li> |
| </ul> |
| <a name="addOption(java.lang.String, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>addOption</h4> |
| <pre><a href="../../../../org/apache/felix/dm/PropertyMetaData.html" title="interface in org.apache.felix.dm">PropertyMetaData</a> addOption(java.lang.String optionLabel, |
| java.lang.String optionValue)</pre> |
| <div class="block">Return a list of valid options for this property (the labels may be localized).</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the list of valid options for this property.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/dm/Logger.html" title="class in org.apache.felix.dm"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/dm/ResourceDependency.html" title="interface in org.apache.felix.dm"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/felix/dm/PropertyMetaData.html" target="_top">Frames</a></li> |
| <li><a href="PropertyMetaData.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |