Package aQute.bnd.osgi
Class Verifier
java.lang.Object
aQute.bnd.osgi.Domain
aQute.bnd.osgi.Processor
aQute.bnd.osgi.Verifier
- All Implemented Interfaces:
Constants,Registry,Report,Reporter,Closeable,AutoCloseable,Iterable<String>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class aQute.bnd.osgi.Processor
Processor.CL, Processor.FileLine, Processor.SetLocationImplNested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.LocationNested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Analyzerstatic final Patternstatic final Patternstatic final Stringstatic final Patternstatic final Pattern(package private) static final Pattern(package private) static final Patternprivate final Jarprivate Instructions(package private) static final Patternstatic final String[]static final Patternstatic final String(package private) static final Pattern(package private) static final Patternstatic final Patternstatic final Patternstatic final Patternprivate booleanstatic final Patternstatic final Patternprivate final Domainprivate final Manifeststatic final Patternstatic final Patternstatic final String[]static final Patternstatic final Patternstatic final Patternstatic final String[]static final Stringstatic final Patternprivate booleanstatic final Pattern(package private) static final Patternstatic final Patternstatic final Stringstatic final Patternstatic final Patternstatic final Patternprivate booleanstatic final Patternstatic final Patternstatic final Stringstatic final Stringstatic final Stringstatic final Patternstatic final Patternstatic final Pattern(package private) static final PatternFields inherited from class aQute.bnd.osgi.Processor
_frangeHelp, _uriHelp, BUFFER_SIZE, current, errors, exceptions, fileMustExist, filter, fixupMessages, LIST_SPLITTER, locations, log, pedantic, profile, properties, strict, trace, upto, warningsFields inherited from class aQute.bnd.osgi.Domain
translationFields inherited from interface aQute.bnd.osgi.Constants
ACCESS_ATTRIBUTE, AUGMENT, AUGMENT_CAPABILITY_DIRECTIVE, AUGMENT_RANGE_ATTRIBUTE, AUGMENT_REQUIREMENT_DIRECTIVE, AUTOMATIC_MODULE_NAME, BASELINE, BASELINEREPO, BLUEPRINT_TIMEOUT_ATTRIBUTE, BLUEPRINT_WAIT_FOR_DEPENDENCIES_ATTRIBUTE, BND_ADDXMLTOTEST, BND_LASTMODIFIED, BNDDRIVER, BNDDRIVER_ANT, BNDDRIVER_BND, BNDDRIVER_ECLIPSE, BNDDRIVER_GRADLE, BNDDRIVER_GRADLE_NATIVE, BNDDRIVER_INTELLIJ, BNDDRIVER_MAVEN, BNDDRIVER_OSMORC, BNDDRIVER_SBT, BSN_SOURCE_SUFFIX, BUILDERIGNORE, BUILDFILES, BUILDPATH, BUILDREPO, BUMPPOLICY, BUNDLE_ACTIVATIONPOLICY, BUNDLE_ACTIVATOR, BUNDLE_BLUEPRINT, BUNDLE_CATEGORY, BUNDLE_CLASSPATH, BUNDLE_CONTACTADDRESS, BUNDLE_CONTRIBUTORS, BUNDLE_COPYRIGHT, BUNDLE_DESCRIPTION, BUNDLE_DEVELOPERS, BUNDLE_DOCURL, BUNDLE_ICON, BUNDLE_LICENSE, BUNDLE_LOCALIZATION, BUNDLE_MANIFESTVERSION, BUNDLE_NAME, BUNDLE_NATIVECODE, BUNDLE_REQUIREDEXECUTIONENVIRONMENT, BUNDLE_SCM, BUNDLE_SPECIFIC_HEADERS, BUNDLE_SYMBOLIC_NAME_ATTRIBUTE, BUNDLE_SYMBOLICNAME, BUNDLE_UPDATELOCATION, BUNDLE_VENDOR, BUNDLE_VERSION, BUNDLE_VERSION_ATTRIBUTE, BUNDLEANNOTATIONS, CARDINALITY_DIRECTIVE, CDIANNOTATIONS, CHECK, CLASS_ATTRIBUTE, CLASSPATH, COMMAND_DIRECTIVE, COMPONENT_ACTIVATE, COMPONENT_CONFIGURATION_POLICY, COMPONENT_DEACTIVATE, COMPONENT_DESCRIPTORS, COMPONENT_DESIGNATE, COMPONENT_DESIGNATEFACTORY, COMPONENT_DIRECTIVES, COMPONENT_DIRECTIVES_1_1, COMPONENT_DIRECTIVES_1_2, COMPONENT_DYNAMIC, COMPONENT_ENABLED, COMPONENT_FACTORY, COMPONENT_GREEDY, COMPONENT_IMMEDIATE, COMPONENT_IMPLEMENTATION, COMPONENT_MODIFIED, COMPONENT_MULTIPLE, COMPONENT_NAME, COMPONENT_NAMESPACE, COMPONENT_OPTIONAL, COMPONENT_PROPERTIES, COMPONENT_PROVIDE, COMPONENT_SERVICEFACTORY, COMPONENT_VERSION, COMPRESSION, CONDITIONAL_PACKAGE, CONDITIONALPACKAGE, CONDUIT, CONNECTION_SETTINGS, CONSUMER_POLICY, CONTRACT, CREATED_BY, CURRENT_BUNDLESYMBOLICNAME, CURRENT_BUNDLEVERSION, CURRENT_PACKAGE, CURRENT_USES, CURRENT_VERSION, DEFAULT_BAR_EXTENSION, DEFAULT_BND_EXTENSION, DEFAULT_BNDRUN_EXTENSION, DEFAULT_CHARSET, DEFAULT_DO_NOT_COPY, DEFAULT_JAR_EXTENSION, DEFAULT_LAUNCHER_BSN, DEFAULT_PREPROCESSS_MATCHERS, DEFAULT_PROP_BIN_DIR, DEFAULT_PROP_SRC_DIR, DEFAULT_PROP_TARGET_DIR, DEFAULT_PROP_TESTBIN_DIR, DEFAULT_PROP_TESTSRC_DIR, DEFAULT_TESTER_BSN, DEFINE_CONTRACT, DEPENDSON, DEPLOY, DEPLOYREPO, DESCRIPTION_ATTRIBUTE, DIFFIGNORE, DIFFPACKAGES, DIGESTS, directives, DISTRO, DONOTCOPY, DSANNOTATIONS, DSANNOTATIONS_OPTIONS, DUPLICATE_MARKER, DYNAMICIMPORT_PACKAGE, EE_ATTRIBUTE, EEPROFILE, EEPROFILE_AUTO_ATTRIBUTE, EFFECTIVE_DIRECTIVE, EMBEDDED_REPO, EMPTY_HEADER, EXCLUDE_DIRECTIVE, EXECUTABLE, EXPORT, EXPORT_APIGUARDIAN, EXPORT_BSN, EXPORT_CONTENTS, EXPORT_NAME, EXPORT_PACKAGE, EXPORT_SERVICE, EXPORT_TYPE, EXPORT_VERSION, EXPORTS_ATTRIBUTE, EXPORTTYPE, EXTENSION, EXTENSION_DIRECTIVE, FAIL_OK, FILTER_DIRECTIVE, FIXUPMESSAGES, FIXUPMESSAGES_IS_DIRECTIVE, FIXUPMESSAGES_IS_ERROR, FIXUPMESSAGES_IS_IGNORE, FIXUPMESSAGES_IS_WARNING, FIXUPMESSAGES_REPLACE_DIRECTIVE, FIXUPMESSAGES_RESTRICT_DIRECTIVE, FRAGMENT_ATTACHMENT_DIRECTIVE, FRAGMENT_HOST, FROM_DIRECTIVE, GENERATE, GESTALT, GESTALT_BATCH, GESTALT_CI, GESTALT_INTERACTIVE, GESTALT_OFFLINE, GESTALT_SHELL, GROUPID, headers, IDENTITY_INITIAL_RESOURCE, IDENTITY_SYSTEM_RESOURCE, IGNORE_ATTRIBUTE, IGNORE_PACKAGE, IGNORE_STANDALONE, IMPORT_DIRECTIVE, IMPORT_PACKAGE, IMPORT_PRIVATE, IMPORT_REFERENCE, IMPORT_SERVICE, importDirectives, INCLUDE, INCLUDE_DIRECTIVE, INCLUDE_RESOURCE, INCLUDEPACKAGE, INCLUDERESOURCE, INIT, INTERNAL_BUNDLESYMBOLICNAME_DIRECTIVE, INTERNAL_BUNDLEVERSION_DIRECTIVE, INTERNAL_EXPORT_TO_MODULES_DIRECTIVE, INTERNAL_EXPORTED_DIRECTIVE, INTERNAL_MODULE_VERSION_DIRECTIVE, INTERNAL_OPEN_TO_MODULES_DIRECTIVE, INTERNAL_SOURCE_DIRECTIVE, INVALIDFILENAMES, JAVA, JAVA_DEBUG, JAVAAGENT, JAVAC, JAVAC_ENCODING, JAVAC_PROFILE, JAVAC_SOURCE, JAVAC_TARGET, JIDENTIFIER, JPMS_MODULE_INFO, JPMS_MODULE_INFO_OPTIONS, KEYSTORE_LOCATION_DIRECTIVE, KEYSTORE_PASSWORD_DIRECTIVE, KEYSTORE_PROVIDER_DIRECTIVE, LANGUAGE_ATTRIBUTE, LAUNCH_ACTIVATION_EAGER, LAUNCH_ACTIVATORS, LAUNCH_RUNBUNDLES_ATTRS, LAUNCH_STARTLEVEL_DEFAULT, LAUNCH_TRACE, LAUNCHER_PLUGIN, LIB_DIRECTIVE, LIBRARY, LINK_ATTRIBUTE, LITERAL_ATTRIBUTE, MAIN_CLASS, MAKE, MANDATORY_DIRECTIVE, MANIFEST, MANIFEST_NAME, MAVEN_DEPENDENCIES, MAVEN_RELEASE, MAVEN_SCOPE, META_PERSISTENCE, METAPACKAGES, METATYPE, METATYPE_ANNOTATIONS, METATYPE_ANNOTATIONS_OPTIONS, MIME_TYPE_BUNDLE, MIME_TYPE_JAR, MODULE_INFO_CLASS, MODULES_ATTRIBUTE, NAME_ATTRIBUTE, NAMESECTION, NAMESPACE_STEM, NO_IMPORT_DIRECTIVE, NOANNOTATIONS, NOBUILDINCACHE, NOBUNDLES, NOCLASSFORNAME, NODEFAULTVERSION, NOEE, NOEXTRAHEADERS, NOIMPORTJAVA, NOJUNIT, NOJUNITOSGI, NOMANIFEST, NONE, NOT_A_BUNDLE_S, NOUSES, OPTIONAL, options, OSGI_SYNTAX_HEADERS, OSNAME_ATTRIBUTE, OSVERSION_ATTRIBUTE, OUTPUT, OUTPUTMASK, PACKAGEINFOTYPE, PATH_DIRECTIVE, PEDANTIC, PLUGIN, PLUGINPATH, PLUGINPATH_SHA1_ATTR, PLUGINPATH_URL_ATTR, POM, PREPROCESSMATCHERS, PRESENCE_DIRECTIVE, PRIVATE_DIRECTIVE, PRIVATE_PACKAGE, PRIVATEPACKAGE, PROCESSOR_ATTRIBUTE, PROFILE, PROVIDE_CAPABILITY, PROVIDE_DIRECTIVE, PROVIDER_POLICY, PROVIDER_TYPE_DIRECTIVE, RELEASEREPO, REMOTEWORKSPACE, REMOVE_ATTRIBUTE_DIRECTIVE, REMOVEHEADERS, REPORTNEWER, REPOSITORIES, REPRODUCIBLE, REQUIRE_BND, REQUIRE_BUNDLE, REQUIRE_CAPABILITY, RESOLUTION, RESOLUTION_DIRECTIVE, RESOLUTION_DYNAMIC, RESOLVE, RESOLVE_EFFECTIVE, RESOLVE_EXCLUDESYSTEM, RESOLVE_PREFERENCES, RESOLVEDEBUG, RESOURCEONLY, RUNBLACKLIST, RUNBUILDS, RUNBUNDLES, RUNBUNDLES_STARTLEVEL_ATTRIBUTE, RUNEE, RUNENV, RUNFRAMEWORK, RUNFRAMEWORK_NONE, RUNFRAMEWORK_SERVICES, RUNFRAMEWORKRESTART, RUNFW, RUNJDB, RUNKEEP, RUNNOREFERENCES, RUNOPTIONS, RUNOPTIONS_EAGER, RUNPATH, RUNPROGRAMARGS, RUNPROPERTIES, RUNPROVIDEDCAPABILITIES, RUNREMOTE, RUNREPOS, RUNREQUIRES, RUNSTARTLEVEL, RUNSTARTLEVEL_BEGIN, RUNSTARTLEVEL_ORDER, RUNSTARTLEVEL_STEP, RUNSTORAGE, RUNSYSTEMCAPABILITIES, RUNSYSTEMPACKAGES, RUNTIMEOUT, RUNTRACE, RUNVM, SAVEMANIFEST, SELECTION_FILTER_ATTRIBUTE, SERVICE_COMPONENT, SERVICELOADER_NAMESPACE, SERVICELOADER_REGISTER_DIRECTIVE, SIGN, SIGN_PASSWORD_DIRECTIVE, SIGNATURE_TEST, SINGLETON_DIRECTIVE, SIZE_ATTRIBUTE, SNAPSHOT, SOURCEPATH, SOURCES, SPECIFICATION_VERSION, SPLIT_PACKAGE_DIRECTIVE, STALECHECK, STANDALONE, STATIC_ATTRIBUTE, STRICT, SUB, SUBSTITUTE_ATTRIBUTE, SYSTEMPROPERTIES, TESTCASES, TESTCONTINUOUS, TESTER, TESTER_PLUGIN, TESTPACKAGES, TESTPATH, TESTSOURCES, TESTTERMINATE, TESTUNRESOLVED, TOOL, TRANSITIVE_ATTRIBUTE, TSTAMP, UNDERTEST, UPTO, USES_DIRECTIVE, USES_USES, VALID_PROPERTY_TYPES, VERSION_ATTR_HASH, VERSION_ATTR_LATEST, VERSION_ATTR_PROJECT, VERSION_ATTR_SNAPSHOT, VERSION_ATTRIBUTE, VERSION_FILTER, VERSIONDEFAULTS, VISIBILITY_DIRECTIVE, WAB, WABLIB, WORKINGSET, WORKINGSET_MEMBER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidprivate booleanhasOverlap(Set<?> a, Set<?> b) static booleanisArgument(String arg) Verify the ARGUMENT_S syntaxstatic booleanprivate booleanstatic booleanisExtended(String key) Verify the EXTENDED_S syntaxstatic booleanbooleanstatic booleanisIdentifier(String value) static booleanstatic booleanstatic booleanVerify the QUOTEDSTRING syntaxstatic booleanThe -runvm header is often wrongly used as a space separated header instead of a properties.static booleanstatic booleanisVersionRange(String range) Verify the VERSION_RANGE_S syntaxprivate voidregisterActivatorErrorLocation(Reporter.SetLocation location, String activator, Verifier.ActivatorErrorType errorType) voidsetFrombuilder(boolean frombuilder) private ObjectshowUnicode(String key) static StringvalidateFilter(String value) voidverify()private voidprivate static booleanbooleanbooleanverifyActivationPolicy(String policy) private void(package private) voidverifyAttrs(String key, Attrs attrs) voidprivate voidvoidverifyChecksums(boolean all) Verify the checksums from the manifest against the real thing.private voidprivate voidverifyDirectives(String header, String directives, Pattern namePattern, String type) Verify if the header does not contain any other directivesprivate voidverifyDirectives(String header, Function<String, String> directives, Pattern namePattern, String type) Verify if the header does not contain any other directivesprivate voidDynamicImport-Package ::= dynamic-description ( ',' dynamic-description )* dynamic-description::= wildcard-names ( ';' parameter )* wildcard-names ::= wildcard-name ( ';' wildcard-name )* wildcard-name ::= package-name | ( package-name '.*' ) // See 1.4.2 | '*'private voidVerify that the exports only use versions.booleanverifyFilter(String value) static intverifyFilter(String expr, int index) filter ::= ’(’ filter-comp ’)’ filter-comp ::= and | or | not | operation and ::= ’&’ filter-list or ::= ’|’ filter-list not ::= ’!’ filter filter-list ::= filter | filter filter-list operation ::= simple | present | substring simple ::= attr filter-type value filter-type ::= equal | approx | greater | less equal ::= ’=’ approx ::= ’˜=’ greater ::= ’>=’ less ::= ’<=’ present ::= attr ’=*’ substring ::= attr ’=’ initial any final inital ::= () | value any ::= ’*’ star-value star-value ::= () | value ’*’ star-value final ::= () | value value ::= <see text>private static intverifyFilterOperation(String expr, int index) private booleanverifyHeader(String name, Pattern regex, boolean error) private voidprivate voidVerify that the imports properly use version ranges.private booleanverifyListHeader(String name, Pattern regex, boolean error) private voidvoidVerify the Meta-Persistence headerprivate voidverifyNamespace(String ns, String type) void(package private) voidVerify of the path names in the JAR are valid on all OS's (mainly windows)private voidprivate voidprivate voidverifyType(Attrs.Type type, String string) private voidCheck for unresolved imports.private voidVerify the use clausesMethods inherited from class aQute.bnd.osgi.Processor
_basedir, _fileuri, _findfile, _frange, _native_capability, _propertiesdir, _propertiesname, _random, _thisfile, _uri, addBasicPlugin, addClose, addExtensions, addIncluded, addProperties, addProperties, append, appendPath, begin, beginHandleErrors, check, clear, close, concat, customize, decorated, decorated, doAttrbutes, doIncludeFile, doIncludeFile, endHandleErrors, error, error, exception, exists, findHeader, findHeader, findHeader, forceRefresh, formatArrays, get, get, getBase, getBaseURI, getChecksum, getClass, getDuration, getErrors, getExecutor, getFile, getFile, getFlattenedProperties, getFlattenedProperties, getHeader, getHeader, getHeader, getHeader, getIncluded, getInfo, getInfo, getInstructions, getJarFromName, getJavaExecutable, getLine, getLoader, getLocation, getLogger, getMacroDomains, getManifestAsProperties, getMergedParameters, getParameters, getParent, getPlugin, getPlugins, getPlugins, getProfile, getPromiseFactory, getProperties, getPropertiesFile, getProperty, getProperty, getProperty, getPropertyKeys, getReplacer, getScheduledExecutor, getSelfAndAncestors, getSettings, getTop, getUnexpandedProperty, getUnprocessedProperty, getWarnings, is, isDuplicate, isExceptions, isFailOk, isInteractive, isMissingPlugin, isOk, isPedantic, isPerfect, isStrict, isTrace, isTrue, iterator, join, join, join, join, join, join, keySet, lastModified, loadProperties, loadProperties0, makePrintable, merge, mergeLocalProperties, mergeProperties, mergeProperties, mergeProperties, mergeProperties, newHashMap, newList, newList, newMap, newMap, newSet, newSet, normalize, normalize, parseHeader, parseHeader, printClause, printClauses, printClauses, printExceptionSummary, printStackTrace, progress, progress, propertiesChanged, quote, read, refresh, removeBasicPlugin, removeClose, removeDuplicateMarker, replaceAll, replaceExtension, report, report, set, setBase, setExceptions, setFileMustExist, setForceLocal, setLocation, setParent, setPedantic, setProperties, setProperties, setProperties, setProperties, setPropertiesFile, setProperty, setTrace, setTypeSpecificPlugins, signal, since, split, split, split, spliterator, stream, system, system, toFullHeaderPattern, toString, trace, tree, unsetProperty, updateModified, use, warningMethods inherited from class aQute.bnd.osgi.Domain
copyFrom, domain, domain, domain, domain, domain, domain, domain, getBundleActivator, getBundleCategory, getBundleClasspath, getBundleClassPath, getBundleContactAddress, getBundleCopyright, getBundleDescription, getBundleDocURL, getBundleName, getBundleNative, getBundleRequiredExecutionEnvironment, getBundleSymbolicName, getBundleVendor, getBundleVersion, getDynamicImportPackage, getExportContents, getExportPackage, getFragmentHost, getIcon, getImportPackage, getIncludeResource, getParameters, getParameters, getParameters, getParameters, getPrivatePackage, getProvideCapability, getRequireBundle, getRequireCapability, getRunblacklist, getRunee, isSources, normalizeKey, setAugment, setBundleActivator, setBundleClasspath, setBundleRequiredExecutionEnvironment, setBundleSymbolicName, setBundleVersion, setBundleVersion, setConditionalPackage, setExportContents, setExportPackage, setFailOk, setImportPackage, setIncludePackage, setIncludeResource, setPrivatePackage, setRunblacklist, setRunee, setRunfw, setRunRequires, setSources, setTranslation, translate, translate
-
Field Details
-
dot
-
manifest
-
main
-
r3
private boolean r3 -
usesRequire
private boolean usesRequire -
EENAME
-
EES
-
ReservedFileNames
-
CARDINALITY_PATTERN
-
RESOLUTION_PATTERN
-
BUNDLEMANIFESTVERSION
-
TOKEN
-
EXTENDED_S
- See Also:
-
EXTENDED_P
-
QUOTEDSTRING
- See Also:
-
QUOTEDSTRING_P
-
ARGUMENT_S
- See Also:
-
ARGUMENT_P
-
SYMBOLICNAME_STRING
- See Also:
-
SYMBOLICNAME
-
VERSION_STRING
- See Also:
-
VERSION_S
- See Also:
-
VERSION
-
VERSION_P
-
VERSIONRANGE
-
VERSION_RANGE_S
- See Also:
-
VERSIONRANGE_P
-
FILTEROP
-
FILE
-
WILDCARDPACKAGE
-
ISO639
-
HEADER_PATTERN
-
NUMBERPATTERN
-
FLOATPATTERN
-
BOOLEANPATTERN
-
PACKAGEPATTERN
-
PACKAGEPATTERN_OR_EMPTY
-
MULTIPACKAGEPATTERN
-
PATHPATTERN
-
FQNPATTERN
-
URLPATTERN
-
ANYPATTERN
-
FILTERPATTERN
-
TRUEORFALSEPATTERN
-
WILDCARDNAMEPATTERN
-
BUNDLE_ACTIVATIONPOLICYPATTERN
-
OSNAMES
-
PROCESSORNAMES
-
analyzer
-
dynamicImports
-
frombuilder
private boolean frombuilder
-
-
Constructor Details
-
Method Details
-
verifyHeaders
private void verifyHeaders() -
verifyNative
public void verifyNative() -
doNative
-
verifyFilter
-
validateFilter
-
verifyActivator
- Throws:
Exception
-
registerActivatorErrorLocation
private void registerActivatorErrorLocation(Reporter.SetLocation location, String activator, Verifier.ActivatorErrorType errorType) throws Exception - Throws:
Exception
-
verifyComponent
private void verifyComponent() -
verifyUnresolvedReferences
Check for unresolved imports. These are referrals that are not imported by the manifest and that are not part of our bundle class path. The are calculated by removing all the imported packages and contained from the referred packages.- Throws:
Exception
-
isDynamicImport
-
hasOverlap
-
verify
- Throws:
Exception
-
doVerifierPlugins
private void doVerifierPlugins() -
verifyPathNames
void verifyPathNames()Verify of the path names in the JAR are valid on all OS's (mainly windows) -
verifyImports
private void verifyImports()Verify that the imports properly use version ranges. -
verifyExports
private void verifyExports()Verify that the exports only use versions. -
showUnicode
-
verifyRequirements
- Throws:
IllegalArgumentExceptionException
-
verifyAttrs
- Parameters:
attrs-
-
verifyCapabilities
private void verifyCapabilities() -
verifyNamespace
-
verify
-
verifyType
-
verifyDirectives
private void verifyDirectives(String header, String directives, Pattern namePattern, String type) throws Exception Verify if the header does not contain any other directives- Parameters:
header-directives-namePattern-type-- Throws:
Exception
-
verifyDirectives
private void verifyDirectives(String header, Function<String, String> directives, Pattern namePattern, String type) throws ExceptionVerify if the header does not contain any other directives- Parameters:
header-directives-namePattern-type-- Throws:
Exception
-
verifyUses
private void verifyUses()Verify the use clauses -
verifyActivationPolicy
public boolean verifyActivationPolicy() -
verifyActivationPolicy
-
verifyBundleClasspath
public void verifyBundleClasspath() -
verifyDynamicImportPackage
private void verifyDynamicImportPackage()DynamicImport-Package ::= dynamic-description ( ',' dynamic-description )* dynamic-description::= wildcard-names ( ';' parameter )* wildcard-names ::= wildcard-name ( ';' wildcard-name )* wildcard-name ::= package-name | ( package-name '.*' ) // See 1.4.2 | '*' -
verifyManifestFirst
private void verifyManifestFirst() -
verifySymbolicName
private void verifySymbolicName() -
isBsn
- Parameters:
name- theStringto test- Returns:
trueif the givennamematches a Bundle Symbolic Name, otherwisefalse
-
verifyFilter
filter ::= ’(’ filter-comp ’)’ filter-comp ::= and | or | not | operation and ::= ’&’ filter-list or ::= ’|’ filter-list not ::= ’!’ filter filter-list ::= filter | filter filter-list operation ::= simple | present | substring simple ::= attr filter-type value filter-type ::= equal | approx | greater | less equal ::= ’=’ approx ::= ’˜=’ greater ::= ’>=’ less ::= ’<=’ present ::= attr ’=*’ substring ::= attr ’=’ initial any final inital ::= () | value any ::= ’*’ star-value star-value ::= () | value ’*’ star-value final ::= () | value value ::= <see text>- Parameters:
expr- theStringto testindex- the index withinexprto start with- Returns:
- the index of the last character within
exprthat was evaluated
-
verifyFilterOperation
-
verifyHeader
-
verify
-
verifyListHeader
-
isVersion
-
isIdentifier
-
isMember
-
isFQN
-
verifyChecksums
Verify the checksums from the manifest against the real thing.- Parameters:
all-trueif each resource must be digested, otherwisefalse- Throws:
Exception
-
isExtended
Verify the EXTENDED_S syntax- Parameters:
key- theStringto test- Returns:
trueif the givenStringmatches the EXTENDED_S syntax, otherwisefalse
-
isArgument
Verify the ARGUMENT_S syntax- Parameters:
arg- theStringto test- Returns:
trueif the givenStringmatches the ARGUMENT_S syntax, otherwisefalse
-
isQuotedString
Verify the QUOTEDSTRING syntax- Parameters:
s- theStringto test- Returns:
trueif the givenStringmatches the QUOTEDSTRING syntax, otherwisefalse
-
isVersionRange
Verify the VERSION_RANGE_S syntax- Parameters:
range- theStringto test- Returns:
trueif the givenStringmatches the VERSION_RANGE_S syntax, otherwisefalse
-
verifyMetaPersistence
Verify the Meta-Persistence header- Throws:
Exception
-
isFrombuilder
public boolean isFrombuilder()- Returns:
- the frombuilder
-
setFrombuilder
public void setFrombuilder(boolean frombuilder) - Parameters:
frombuilder- the frombuilder to set
-
isNumber
-
isSpaceSeparated
The -runvm header is often wrongly used as a space separated header instead of a properties. This checks if a header uses commas to separate the parts or spaces.- Parameters:
r- a header- Returns:
- true if spaces are used for separation, false if 1 parameter or commas used
-