blob: a93f58d16d0706591f0d3ede4d0971cebda0deba [file] [log] [blame]
<!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 (1.8.0) on Wed Dec 24 15:58:26 CET 2014 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ManifestMetadataParser (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)</title>
<meta name="date" content="2014-12-24">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ManifestMetadataParser (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":10,"i6":10,"i7":10,"i8":10,"i9":9,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<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="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/felix/ipojo/parser/MethodMetadata.html" title="class in org.apache.felix.ipojo.parser"><span class="typeNameLink">Next&nbsp;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&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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/8/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/8/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="simpleTagLabel">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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</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><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#m_elements">m_elements</a></span></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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#ManifestMetadataParser--">ManifestMetadataParser</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#addElement-org.apache.felix.ipojo.metadata.Element-">addElement</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;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 id="i1" 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><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#getComponentsMetadata--">getComponentsMetadata</a></span>()</code>
<div class="block">Gets the array of component type metadata.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#getInstances--">getInstances</a></span>()</code>
<div class="block">Gets the array of instance configuration described in the metadata.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parse-java.util.Dictionary-">parse</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;dict)</code>
<div class="block">Looks for the <code>iPOJO-Components</code> header
in the given dictionary.</div>
</td>
</tr>
<tr id="i4" 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><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parse-java.lang.String-">parse</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;metadata)</code>
<div class="block">Parses the metadata from the string given in argument.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseAnonymousProperty-org.apache.felix.ipojo.metadata.Element-java.util.List-">parseAnonymousProperty</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&nbsp;list)</code>
<div class="block">Parse an anonymous property.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseDictionary-org.apache.felix.ipojo.metadata.Element-">parseDictionary</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop)</code>
<div class="block">Parses a complex property.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseElements-java.lang.String-">parseElements</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;elems)</code>
<div class="block">Parses the given string.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseHeader-java.lang.String-">parseHeader</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;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 id="i9" 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><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseHeaderMetadata-java.lang.String-">parseHeaderMetadata</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;header)</code>
<div class="block">Parses the metadata from the given header string.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseInstance-org.apache.felix.ipojo.metadata.Element-">parseInstance</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;instance)</code>
<div class="block">Parses an Element to create an instance configuration dictionary.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseList-org.apache.felix.ipojo.metadata.Element-">parseList</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop)</code>
<div class="block">Parses a complex property.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseMap-org.apache.felix.ipojo.metadata.Element-">parseMap</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop)</code>
<div class="block">Parses a complex property.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseProperty-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">parseProperty</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;dict)</code>
<div class="block">Parses an instance property.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#parseProperty-org.apache.felix.ipojo.metadata.Element-java.util.Map-">parseProperty</a></span>(<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&nbsp;map)</code>
<div class="block">Parse a property.</div>
</td>
</tr>
<tr id="i15" 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><span class="memberNameLink"><a href="../../../../../org/apache/felix/ipojo/parser/ManifestMetadataParser.html#removeLastElement--">removeLastElement</a></span>()</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&nbsp;java.lang.<a href="http://docs.oracle.com/javase/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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&nbsp;<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&nbsp;<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&nbsp;<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>[]&nbsp;<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="returnLabel">Returns:</span></dt>
<dd>the component metadata (composite & component).
An empty array is returned if no component type declaration.</dd>
<dt><span class="throwsLabel">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&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>[]&nbsp;<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="returnLabel">Returns:</span></dt>
<dd>the instances list or <code>null</code> if no instance configuration.</dd>
<dt><span class="throwsLabel">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&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;<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>&nbsp;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="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - the Element describing an instance.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resulting dictionary</dd>
<dt><span class="throwsLabel">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&nbsp;void&nbsp;<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>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;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="paramLabel">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="throwsLabel">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&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;<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>&nbsp;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/8/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="paramLabel">Parameters:</span></dt>
<dd><code>prop</code> - the Element to parse.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resulting dictionary</dd>
<dt><span class="throwsLabel">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&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&nbsp;<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>&nbsp;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/8/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/8/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/8/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="paramLabel">Parameters:</span></dt>
<dd><code>prop</code> - the property to parse</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resulting Map</dd>
<dt><span class="throwsLabel">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&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&nbsp;<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>&nbsp;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/8/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/8/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/8/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="paramLabel">Parameters:</span></dt>
<dd><code>prop</code> - the property to parse</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resulting List</dd>
<dt><span class="throwsLabel">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&nbsp;void&nbsp;<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>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&nbsp;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="paramLabel">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="throwsLabel">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&nbsp;void&nbsp;<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>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&nbsp;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="paramLabel">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="throwsLabel">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&nbsp;void&nbsp;<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>&nbsp;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="paramLabel">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&nbsp;<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;<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="returnLabel">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&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.402">parse</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;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="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - the given headers of the manifest file</dd>
<dt><span class="throwsLabel">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&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.417">parseHeader</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;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="paramLabel">Parameters:</span></dt>
<dd><code>header</code> - the given header of the manifest file</dd>
<dt><span class="throwsLabel">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&nbsp;<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.432">parse</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;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="paramLabel">Parameters:</span></dt>
<dd><code>metadata</code> - the metadata to parse</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Element the root element resulting of the parsing</dd>
<dt><span class="throwsLabel">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&nbsp;<a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.452">parseHeaderMetadata</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;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="paramLabel">Parameters:</span></dt>
<dd><code>header</code> - the header to parse</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Element the root element resulting of the parsing</dd>
<dt><span class="throwsLabel">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&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/parser/ManifestMetadataParser.html#line.468">parseElements</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;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="paramLabel">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>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<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="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/felix/ipojo/parser/MethodMetadata.html" title="class in org.apache.felix.ipojo.parser"><span class="typeNameLink">Next&nbsp;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&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2014. All rights reserved.</small></p>
</body>
</html>