public final class TargetDefinitionFile extends java.lang.Object implements TargetDefinition
| Modifier and Type | Class and Description |
|---|---|
class |
TargetDefinitionFile.IULocation |
static class |
TargetDefinitionFile.OtherLocation |
static class |
TargetDefinitionFile.Repository |
static class |
TargetDefinitionFile.Unit |
TargetDefinition.IncludeMode, TargetDefinition.InstallableUnitLocation, TargetDefinition.Location| Modifier and Type | Field and Description |
|---|---|
private de.pdark.decentxml.Document |
document |
private de.pdark.decentxml.Element |
dom |
private byte[] |
fileContentHash |
(package private) IncludeSourceMode |
includeSourceMode |
private java.io.File |
origin |
private static de.pdark.decentxml.XMLParser |
parser |
| Modifier | Constructor and Description |
|---|---|
private |
TargetDefinitionFile(java.io.File source,
IncludeSourceMode includeSourceMode) |
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
computeFileContentHash(java.io.File source) |
private static byte[] |
computeMD5Digest(java.io.FileInputStream in) |
boolean |
equals(java.lang.Object obj) |
java.util.List<? extends TargetDefinition.Location> |
getLocations() |
java.lang.String |
getOrigin()
Returns the origin of the target definition, e.g.
|
int |
hashCode() |
boolean |
hasIncludedBundles()
Returns
true if the target definition specifies an explicit list of bundles to
include (i.e. |
private static java.security.MessageDigest |
newMD5Digest() |
static TargetDefinitionFile |
read(java.io.File file,
IncludeSourceMode includeSourceMode) |
static void |
write(TargetDefinitionFile target,
java.io.File file) |
private static de.pdark.decentxml.XMLParser parser
private final java.io.File origin
private final byte[] fileContentHash
private final de.pdark.decentxml.Element dom
private final de.pdark.decentxml.Document document
final IncludeSourceMode includeSourceMode
private TargetDefinitionFile(java.io.File source,
IncludeSourceMode includeSourceMode)
throws TargetDefinitionSyntaxException
TargetDefinitionSyntaxExceptionpublic java.util.List<? extends TargetDefinition.Location> getLocations()
getLocations in interface TargetDefinitionpublic boolean hasIncludedBundles()
TargetDefinitiontrue if the target definition specifies an explicit list of bundles to
include (i.e. an <includeBundles> in target definition files).hasIncludedBundles in interface TargetDefinitionpublic java.lang.String getOrigin()
TargetDefinitiongetOrigin in interface TargetDefinitionpublic static TargetDefinitionFile read(java.io.File file, IncludeSourceMode includeSourceMode)
public static void write(TargetDefinitionFile target, java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in interface TargetDefinitionhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface TargetDefinitionequals in class java.lang.Objectprivate static byte[] computeFileContentHash(java.io.File source)
private static byte[] computeMD5Digest(java.io.FileInputStream in)
throws java.io.IOException
java.io.IOExceptionprivate static java.security.MessageDigest newMD5Digest()