public class ManifestMetadataParser
extends java.lang.Object
Element / Attribute ) structure.| Constructor and Description |
|---|
ManifestMetadataParser() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.felix.ipojo.metadata.Element[] |
getComponentsMetadata()
Gets the array of component type metadata.
|
java.util.Dictionary[] |
getInstances()
Gets the array of instance configuration described in the metadata.
|
void |
parse(java.util.Dictionary dict)
Looks for the
iPOJO-Components header
in the given dictionary. |
static org.apache.felix.ipojo.metadata.Element |
parse(java.lang.String metadata)
Parses the metadata from the string given in argument.
|
void |
parseHeader(java.lang.String header)
Parses the given header, initialized the
m_elements list
(adds the iPOJO element) and parses
contained component type declarations and instance configurations. |
static org.apache.felix.ipojo.metadata.Element |
parseHeaderMetadata(java.lang.String header)
Parses the metadata from the given header string.
|
public org.apache.felix.ipojo.metadata.Element[] getComponentsMetadata()
throws ParseException
ParseException - if a parsing error occurspublic java.util.Dictionary[] getInstances()
throws ParseException
null if no instance configuration.ParseException - if the metadata cannot be parsed successfullypublic void parse(java.util.Dictionary dict)
throws ParseException
iPOJO-Components header
in the given dictionary. Then, initializes the
m_elements list (adds the
iPOJO root element) and parses the contained
component type declarations and instance configurations.dict - the given headers of the manifest fileParseException - if any error occurspublic void parseHeader(java.lang.String header)
throws ParseException
m_elements list
(adds the iPOJO element) and parses
contained component type declarations and instance configurations.header - the given header of the manifest fileParseException - if any error occurspublic static org.apache.felix.ipojo.metadata.Element parse(java.lang.String metadata)
throws ParseException
ManifestMetadataParser object
and calls the parseElements(String)
method. The parsing must result as a tree (only one root element).metadata - the metadata to parseParseException - if any error occurspublic static org.apache.felix.ipojo.metadata.Element parseHeaderMetadata(java.lang.String header)
throws ParseException
ManifestMetadataParser object and then
creates the iPOJO root element, parses content elements
(component types and instances declarations), and returns the resulting
Element / Attribute structure. The parsed string
must be a tree (only one root element).header - the header to parseParseException - if any error occursCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.