Class NativeLibraryClause
- java.lang.Object
-
- org.apache.felix.framework.util.manifestparser.NativeLibraryClause
-
public class NativeLibraryClause extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NativeLibraryClause(java.lang.String[] libraryEntries, java.lang.String[] osnames, java.lang.String[] processors, java.lang.String[] osversions, java.lang.String[] languages, java.lang.String selectionFilter)
NativeLibraryClause(NativeLibraryClause library)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
formatOSVersion(java.lang.String value)
java.lang.String[]
getLanguages()
java.lang.String[]
getLibraryEntries()
java.lang.String[]
getOSNames()
static java.util.List<java.lang.String>
getOsNameWithAliases(java.lang.String osName)
java.lang.String[]
getOSVersions()
java.lang.String[]
getProcessors()
static java.util.List<java.lang.String>
getProcessorWithAliases(java.lang.String processor)
java.lang.String
getSelectionFilter()
static void
initializeNativeAliases(java.util.Map configMap)
Initialize the processor and os name aliases from Felix Config.boolean
match(java.util.Map configMap)
static java.lang.String
normalizeOSName(java.lang.String value)
static java.lang.String
normalizeOSVersion(java.lang.String value)
static java.lang.String
normalizeProcessor(java.lang.String value)
static NativeLibraryClause
parse(Logger logger, java.lang.String s)
-
-
-
Constructor Detail
-
NativeLibraryClause
public NativeLibraryClause(java.lang.String[] libraryEntries, java.lang.String[] osnames, java.lang.String[] processors, java.lang.String[] osversions, java.lang.String[] languages, java.lang.String selectionFilter)
-
NativeLibraryClause
public NativeLibraryClause(NativeLibraryClause library)
-
-
Method Detail
-
initializeNativeAliases
public static void initializeNativeAliases(java.util.Map configMap)
Initialize the processor and os name aliases from Felix Config.- Parameters:
config
-
-
getLibraryEntries
public java.lang.String[] getLibraryEntries()
-
getOSNames
public java.lang.String[] getOSNames()
-
getProcessors
public java.lang.String[] getProcessors()
-
getOSVersions
public java.lang.String[] getOSVersions()
-
getLanguages
public java.lang.String[] getLanguages()
-
getSelectionFilter
public java.lang.String getSelectionFilter()
-
match
public boolean match(java.util.Map configMap) throws BundleException
- Throws:
BundleException
-
parse
public static NativeLibraryClause parse(Logger logger, java.lang.String s)
-
formatOSVersion
public static java.lang.String formatOSVersion(java.lang.String value)
-
getOsNameWithAliases
public static java.util.List<java.lang.String> getOsNameWithAliases(java.lang.String osName)
-
getProcessorWithAliases
public static java.util.List<java.lang.String> getProcessorWithAliases(java.lang.String processor)
-
normalizeOSName
public static java.lang.String normalizeOSName(java.lang.String value)
-
normalizeProcessor
public static java.lang.String normalizeProcessor(java.lang.String value)
-
normalizeOSVersion
public static java.lang.String normalizeOSVersion(java.lang.String value)
-
-