public final class PackId extends Object implements Serializable, Comparable<PackId>
Modifier and Type | Field and Description |
---|---|
static Pattern |
PID_PATTERN |
static String |
PROP_GROUP |
static String |
PROP_NAME |
static String |
PROP_PATH |
static String |
PROP_VERSION |
static String |
PROPERTIES_ENTRY |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PackId o) |
static PackId |
createPackId(String group,
String name,
String version) |
boolean |
equals(Object o) |
String |
getGroup() |
String |
getInstallationPath() |
String |
getName() |
String |
getVersion() |
int |
hashCode() |
static PackId |
identifyPackage(File file)
Attempt to identify a file as a valid CRX content package.
|
static PackId |
identifyPackage(File file,
boolean strict)
Attempt to identify a file as a valid CRX content package.
|
static PackId |
identifyProperties(Properties props) |
static PackId |
parsePid(String pid) |
String |
toString() |
public static final Pattern PID_PATTERN
public static final String PROPERTIES_ENTRY
public static final String PROP_GROUP
public static final String PROP_NAME
public static final String PROP_VERSION
public static final String PROP_PATH
public String getGroup()
public String getName()
public String getVersion()
public String getInstallationPath()
public int compareTo(PackId o)
compareTo
in interface Comparable<PackId>
public static PackId identifyPackage(File file) throws IOException
file
- the alleged content package file to identifyIOException
- if package file cannot be openedpublic static PackId identifyPackage(File file, boolean strict) throws IOException
file
- the alleged content package file to identifystrict
- set to true to require a META-INF/vault/properties.xml file.IOException
- if package file cannot be openedpublic static PackId identifyProperties(Properties props)
Copyright © 2013-2017. All Rights Reserved.