Class SubPackageHandling
- java.lang.Object
- 
- org.apache.jackrabbit.vault.packaging.SubPackageHandling
 
- 
 public class SubPackageHandling extends Object The sub package handling specifies how sub package are handled during recursive package installation. This configuration consists of a list ofSubPackageHandling.Entrys that match against a givenPackageId. 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" | "force_install" | "force_extract";Note that 'ignore' is currently not really supported as sub packages are part of the normal package content and behaves the same as 'add'. The default option if not explicitly specified is "install". 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_HANDLINGand is parsed viafromString(String).- See Also:
- PackageProperties
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSubPackageHandling.Entrystatic classSubPackageHandling.OptionThe sub package option
 - 
Field SummaryFields Modifier and Type Field Description static SubPackageHandlingDEFAULTThe default handling
 - 
Constructor SummaryConstructors Constructor Description SubPackageHandling()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubPackageHandlingfromString(String str)Parses a options string as described above and returns a new SubPackageHandling instance.List<SubPackageHandling.Entry>getEntries()Returns the modifiable list of entries.SubPackageHandling.OptiongetOption(PackageId id)Gets the option from the entries list that matches the package last.StringgetString()Returns the parseable string representation of this configuration.
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final SubPackageHandling DEFAULT The default handling
 
- 
 - 
Method Detail- 
fromStringpublic static SubPackageHandling fromString(String str) Parses a options string as described above and returns a new SubPackageHandling instance.- Parameters:
- str- the string to parse
- Returns:
- the configuration or nullif the string is malformed.
 
 - 
getOptionpublic SubPackageHandling.Option getOption(PackageId id) Gets the option from the entries list that matches the package last. If no entry match, it returnsSubPackageHandling.Option.INSTALL- Parameters:
- id- the package id to match
- Returns:
- the option.
 
 - 
getEntriespublic List<SubPackageHandling.Entry> getEntries() Returns the modifiable list of entries.- Returns:
- the list of entries
 
 - 
getStringpublic String getString() Returns the parseable string representation of this configuration.- Returns:
- the string representation.
 
 
- 
 
-