| <!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_25) on Sat May 17 12:14:26 CEST 2014 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>ManifestMetadataParser (Apache Felix iPOJO ~ JavaDoc 1.12.0 API)</title> |
| <meta name="date" content="2014-05-17"> |
| <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="ManifestMetadataParser (Apache Felix iPOJO ~ JavaDoc 1.12.0 API)"; |
| } |
| //--> |
| </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="class-use/ManifestMetadataParser.html">Use</a></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> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/felix/ipojo/parser/FieldMetadata.html" title="class in org.apache.felix.ipojo.parser"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/felix/ipojo/parser/MethodMetadata.html" title="class in org.apache.felix.ipojo.parser"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/felix/ipojo/parser/ManifestMetadataParser.html" target="_top">Frames</a></li> |
| <li><a href="ManifestMetadataParser.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><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </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.ipojo.parser</div> |
| <h2 title="Class ManifestMetadataParser" class="title">Class ManifestMetadataParser</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.felix.ipojo.parser.ManifestMetadataParser</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.38">ManifestMetadataParser</a> |
| extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">The Manifest Metadata parser reads a manifest file and builds |
| the iPOJO metadata (<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata"><code>Element</code></a> / <a href="../../../../../org/apache/felix/ipojo/metadata/Attribute.html" title="class in org.apache.felix.ipojo.metadata"><code>Attribute</code></a> ) structure.</div> |
| <dl><dt><span class="strong">Author:</span></dt> |
| <dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements">m_elements</a></strong></code> |
| <div class="block">The element list.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#ManifestMetadataParser()">ManifestMetadataParser</a></strong>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== 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>private void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#addElement(org.apache.felix.ipojo.metadata.Element)">addElement</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> elem)</code> |
| <div class="block">Adds an element to the <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#getComponentsMetadata()">getComponentsMetadata</a></strong>()</code> |
| <div class="block">Gets the array of component type metadata.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#getInstances()">getInstances</a></strong>()</code> |
| <div class="block">Gets the array of instance configuration described in the metadata.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parse(java.util.Dictionary)">parse</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> dict)</code> |
| <div class="block">Looks for the <code>iPOJO-Components</code> header |
| in the given dictionary.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parse(java.lang.String)">parse</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> metadata)</code> |
| <div class="block">Parses the metadata from the string given in argument.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseAnonymousProperty(org.apache.felix.ipojo.metadata.Element, java.util.List)">parseAnonymousProperty</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> list)</code> |
| <div class="block">Parse an anonymous property.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseDictionary(org.apache.felix.ipojo.metadata.Element)">parseDictionary</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop)</code> |
| <div class="block">Parses a complex property.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseElements(java.lang.String)">parseElements</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> elems)</code> |
| <div class="block">Parses the given string.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseHeader(java.lang.String)">parseHeader</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> header)</code> |
| <div class="block">Parses the given header, initialized the |
| <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list |
| (adds the <code>iPOJO</code> element) and parses |
| contained component type declarations and instance configurations.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseHeaderMetadata(java.lang.String)">parseHeaderMetadata</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> header)</code> |
| <div class="block">Parses the metadata from the given header string.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseInstance(org.apache.felix.ipojo.metadata.Element)">parseInstance</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> instance)</code> |
| <div class="block">Parses an Element to create an instance configuration dictionary.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseList(org.apache.felix.ipojo.metadata.Element)">parseList</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop)</code> |
| <div class="block">Parses a complex property.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseMap(org.apache.felix.ipojo.metadata.Element)">parseMap</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop)</code> |
| <div class="block">Parses a complex property.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseProperty(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)">parseProperty</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> dict)</code> |
| <div class="block">Parses an instance property.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseProperty(org.apache.felix.ipojo.metadata.Element, java.util.Map)">parseProperty</a></strong>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a> map)</code> |
| <div class="block">Parse a property.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#removeLastElement()">removeLastElement</a></strong>()</code> |
| <div class="block">Removes an element from the <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="m_elements"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>m_elements</h4> |
| <pre>private <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>[] <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.44">m_elements</a></pre> |
| <div class="block">The element list. |
| Contains the element found in the parsed header.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ManifestMetadataParser()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ManifestMetadataParser</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.38">ManifestMetadataParser</a>()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getComponentsMetadata()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getComponentsMetadata</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>[] <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.52">getComponentsMetadata</a>() |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Gets the array of component type metadata.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the component metadata (composite & component). |
| An empty array is returned if no component type declaration.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if a parsing error occurs</dd></dl> |
| </li> |
| </ul> |
| <a name="getInstances()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInstances</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>[] <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.68">getInstances</a>() |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Gets the array of instance configuration described in the metadata.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the instances list or <code>null</code> if no instance configuration.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if the metadata cannot be parsed successfully</dd></dl> |
| </li> |
| </ul> |
| <a name="parseInstance(org.apache.felix.ipojo.metadata.Element)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseInstance</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.88">parseInstance</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> instance) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses an Element to create an instance configuration dictionary. |
| The 'name' attribute of the instance declaration is mapped |
| to the 'instance.name' property.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>instance</code> - the Element describing an instance.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the resulting dictionary</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if a configuration cannot be parse correctly.</dd></dl> |
| </li> |
| </ul> |
| <a name="parseProperty(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseProperty</h4> |
| <pre>private void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.124">parseProperty</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> dict) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses an instance property. |
| This method is recursive to handle complex properties.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prop</code> - the current element to parse</dd><dd><code>dict</code> - the dictionary to populate (the future instance configuration)</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if the property cannot be parsed correctly</dd></dl> |
| </li> |
| </ul> |
| <a name="parseDictionary(org.apache.felix.ipojo.metadata.Element)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseDictionary</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.170">parseDictionary</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses a complex property. |
| This property will be built as a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util"><code>Dictionary</code></a>.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prop</code> - the Element to parse.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the resulting dictionary</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if an internal property is incorrect.</dd></dl> |
| </li> |
| </ul> |
| <a name="parseMap(org.apache.felix.ipojo.metadata.Element)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseMap</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.193">parseMap</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses a complex property. |
| This property will be built as a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>. |
| The used <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> implementation is <a href="http://docs.oracle.com/javase/7/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util"><code>HashMap</code></a>.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prop</code> - the property to parse</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the resulting Map</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if an internal property is incorrect.</dd></dl> |
| </li> |
| </ul> |
| <a name="parseList(org.apache.felix.ipojo.metadata.Element)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseList</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.215">parseList</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses a complex property. This property will be built as a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>. |
| The used <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> implementation is <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util"><code>ArrayList</code></a>. |
| The order of elements is kept.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prop</code> - the property to parse</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the resulting List</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if an internal property is incorrect.</dd></dl> |
| </li> |
| </ul> |
| <a name="parseProperty(org.apache.felix.ipojo.metadata.Element, java.util.Map)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseProperty</h4> |
| <pre>private void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.236">parseProperty</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a> map) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parse a property. |
| This methods handles complex properties.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prop</code> - the current element to parse</dd><dd><code>map</code> - the map to populate</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if the property cannot be parsed correctly</dd></dl> |
| </li> |
| </ul> |
| <a name="parseAnonymousProperty(org.apache.felix.ipojo.metadata.Element, java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseAnonymousProperty</h4> |
| <pre>private void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.283">parseAnonymousProperty</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> prop, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> list) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parse an anonymous property. |
| An anonymous property is a property with no name. |
| An anonymous property can be simple (just a value) or complex (i.e. a map, a dictionary |
| a list or an array).</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>prop</code> - the property to parse</dd><dd><code>list</code> - the list to populate with the resulting property</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if an internal property cannot be parse correctly</dd></dl> |
| </li> |
| </ul> |
| <a name="addElement(org.apache.felix.ipojo.metadata.Element)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addElement</h4> |
| <pre>private void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.360">addElement</a>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> elem)</pre> |
| <div class="block">Adds an element to the <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>elem</code> - the the element to add</dd></dl> |
| </li> |
| </ul> |
| <a name="removeLastElement()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeLastElement</h4> |
| <pre>private <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.375">removeLastElement</a>()</pre> |
| <div class="block">Removes an element from the <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>an element to remove</dd></dl> |
| </li> |
| </ul> |
| <a name="parse(java.util.Dictionary)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parse</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.402">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> dict) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Looks for the <code>iPOJO-Components</code> header |
| in the given dictionary. Then, initializes the |
| <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list (adds the |
| <code>iPOJO</code> root element) and parses the contained |
| component type declarations and instance configurations.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dict</code> - the given headers of the manifest file</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if any error occurs</dd></dl> |
| </li> |
| </ul> |
| <a name="parseHeader(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseHeader</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.417">parseHeader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> header) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses the given header, initialized the |
| <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> list |
| (adds the <code>iPOJO</code> element) and parses |
| contained component type declarations and instance configurations.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>header</code> - the given header of the manifest file</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if any error occurs</dd></dl> |
| </li> |
| </ul> |
| <a name="parse(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parse</h4> |
| <pre>public static <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.432">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> metadata) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses the metadata from the string given in argument. |
| This methods creates a new <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html" title="class in org.apache.felix.ipojo.parser"><code>ManifestMetadataParser</code></a> object |
| and calls the <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseElements(java.lang.String)"><code>parseElements(String)</code></a> |
| method. The parsing must result as a tree (only one root element).</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>metadata</code> - the metadata to parse</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Element the root element resulting of the parsing</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if any error occurs</dd></dl> |
| </li> |
| </ul> |
| <a name="parseHeaderMetadata(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseHeaderMetadata</h4> |
| <pre>public static <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.452">parseHeaderMetadata</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> header) |
| throws <a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre> |
| <div class="block">Parses the metadata from the given header string. |
| This method creates a new <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html" title="class in org.apache.felix.ipojo.parser"><code>ManifestMetadataParser</code></a> object and then |
| creates the <code>iPOJO</code> root element, parses content elements |
| (component types and instances declarations), and returns the resulting |
| <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata"><code>Element</code></a> / <a href="../../../../../org/apache/felix/ipojo/metadata/Attribute.html" title="class in org.apache.felix.ipojo.metadata"><code>Attribute</code></a> structure. The parsed string |
| must be a tree (only one root element).</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>header</code> - the header to parse</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Element the root element resulting of the parsing</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - if any error occurs</dd></dl> |
| </li> |
| </ul> |
| <a name="parseElements(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>parseElements</h4> |
| <pre>private void <a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.468">parseElements</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> elems)</pre> |
| <div class="block">Parses the given string. |
| This methods populates the <a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements"><code>m_elements</code></a> |
| list.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>elems</code> - the string to parse</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="class-use/ManifestMetadataParser.html">Use</a></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> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/felix/ipojo/parser/FieldMetadata.html" title="class in org.apache.felix.ipojo.parser"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/felix/ipojo/parser/MethodMetadata.html" title="class in org.apache.felix.ipojo.parser"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/felix/ipojo/parser/ManifestMetadataParser.html" target="_top">Frames</a></li> |
| <li><a href="ManifestMetadataParser.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><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2014. All rights reserved.</small></p> |
| </body> |
| </html> |