public class OSGiManifestParser extends java.lang.Object implements ModuleDescriptorParser
| Constructor and Description |
|---|
OSGiManifestParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Resource res) |
void |
add(ExecutionEnvironmentProfileProvider pp) |
static OSGiManifestParser |
getInstance() |
Artifact |
getMetadataArtifact(ModuleRevisionId mrid,
Resource res)
Returns the module metadata artifact corresponding to the given module revision id that this
parser parses
|
java.lang.String |
getType()
Return the 'type' of module artifacts this parser is parsing
|
ModuleDescriptor |
parseDescriptor(ParserSettings ivySettings,
java.net.URL descriptorURL,
boolean validate) |
ModuleDescriptor |
parseDescriptor(ParserSettings ivySettings,
java.net.URL descriptorURL,
Resource res,
boolean validate) |
void |
toIvyFile(java.io.InputStream is,
Resource res,
java.io.File destFile,
ModuleDescriptor md)
Convert a module descriptor to an ivy file.
|
java.lang.String |
toString() |
public static OSGiManifestParser getInstance()
public void add(ExecutionEnvironmentProfileProvider pp)
public boolean accept(Resource res)
accept in interface ModuleDescriptorParserpublic ModuleDescriptor parseDescriptor(ParserSettings ivySettings, java.net.URL descriptorURL, Resource res, boolean validate) throws java.text.ParseException, java.io.IOException
parseDescriptor in interface ModuleDescriptorParserjava.text.ParseExceptionjava.io.IOExceptionpublic void toIvyFile(java.io.InputStream is,
Resource res,
java.io.File destFile,
ModuleDescriptor md)
throws java.text.ParseException,
java.io.IOException
ModuleDescriptorParsertoIvyFile in interface ModuleDescriptorParseris - input stream with opened on original module descriptor resourcejava.text.ParseExceptionjava.io.IOExceptionpublic ModuleDescriptor parseDescriptor(ParserSettings ivySettings, java.net.URL descriptorURL, boolean validate) throws java.text.ParseException, java.io.IOException
parseDescriptor in interface ModuleDescriptorParserjava.text.ParseExceptionjava.io.IOExceptionpublic java.lang.String getType()
ModuleDescriptorParsergetType in interface ModuleDescriptorParserpublic Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res)
ModuleDescriptorParsergetMetadataArtifact in interface ModuleDescriptorParsermrid - the module revision id for which the module artifact should be returnedres - the resource for which the module artifact should be returnedpublic java.lang.String toString()
toString in class java.lang.Object