public class SubPackageHandling
extends java.lang.Object
SubPackageHandling.Entry
s that
match against a given PackageId
. The version of the package id is
ignored.
The sub package handling can be specified in the package properties as a string of the following format:
subPackageHandling := instruction { "," instruction }; instruction := packageIdFilter { ";" option } packageIdFilter := packageNameFilter | groupNameFilter ":" packageNameFilter; groupNameFilter := "*" | groupName; packageNameFilter := "*" | packageName; option := "install" | "extract" | "add" | "ignore";Note that 'ignore' is currently not really supported as sub packages are part of the normal package content and behaves the same as 'add'. Future implementations will transport the sub packages outside of the normal package content, e.g. in a META-INF/vault/subpackages/ folder (see JCRVLT-33).
The sub package handling is being specified in the package properties xml within property PackageProperties.NAME_SUB_PACKAGE_HANDLING
.
PackageProperties
Modifier and Type | Class and Description |
---|---|
static class |
SubPackageHandling.Entry |
static class |
SubPackageHandling.Option
The sub package option
|
Modifier and Type | Field and Description |
---|---|
static SubPackageHandling |
DEFAULT
The default handling
|
Constructor and Description |
---|
SubPackageHandling() |
Modifier and Type | Method and Description |
---|---|
static SubPackageHandling |
fromString(java.lang.String str)
Parses a options string as described above and returns a new SubPackageHandling instance.
|
java.util.List<SubPackageHandling.Entry> |
getEntries()
Returns the modifiable list of entries.
|
SubPackageHandling.Option |
getOption(PackageId id)
Gets the option from the entries list that matches the package last.
|
java.lang.String |
getString()
Returns the parseable string representation of this configuration.
|
public static final SubPackageHandling DEFAULT
public static SubPackageHandling fromString(java.lang.String str)
str
- the string to parsenull
if the string is malformed.public SubPackageHandling.Option getOption(PackageId id)
SubPackageHandling.Option.INSTALL
id
- the package id to matchpublic java.util.List<SubPackageHandling.Entry> getEntries()
public java.lang.String getString()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"