|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.parser.ManifestMetadataParser
public class ManifestMetadataParser
The Manifest Metadata parser reads a manifest file and builds
the iPOJO metadata (Element / Attribute ) structure.
| Constructor Summary | |
|---|---|
ManifestMetadataParser()
|
|
| Method Summary | |
|---|---|
Element[] |
getComponentsMetadata()
Gets the array of component type metadata. |
Dictionary[] |
getInstances()
Gets the array of instance configuration described in the metadata. |
void |
parse(Dictionary dict)
Looks for the iPOJO-Components header
in the given dictionary. |
static Element |
parse(String metadata)
Parses the metadata from the string given in argument. |
void |
parseHeader(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 Element |
parseHeaderMetadata(String header)
Parses the metadata from the given header string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManifestMetadataParser()
| Method Detail |
|---|
public Element[] getComponentsMetadata()
throws ParseException
ParseException - if a parsing error occurs
public Dictionary[] getInstances()
throws ParseException
null if no instance configuration.
ParseException - if the metadata cannot be parsed successfully
public void parse(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 file
ParseException - if any error occurs
public void parseHeader(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 file
ParseException - if any error occurs
public static Element parse(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 parse
ParseException - if any error occurs
public static Element parseHeaderMetadata(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 parse
ParseException - if any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||