public final class TargetDefinitionFile extends java.lang.Object implements TargetDefinition
Modifier and Type | Class and Description |
---|---|
private class |
TargetDefinitionFile.AbstractPathLocation |
class |
TargetDefinitionFile.DirectoryTargetLocation |
class |
TargetDefinitionFile.FeatureTargetPlatformLocation |
class |
TargetDefinitionFile.IULocation |
static class |
TargetDefinitionFile.OtherLocation |
class |
TargetDefinitionFile.ProfileTargetPlatformLocation |
static class |
TargetDefinitionFile.Repository |
static class |
TargetDefinitionFile.Unit |
TargetDefinition.DirectoryLocation, TargetDefinition.FeaturePlatformLocation, TargetDefinition.IncludeMode, TargetDefinition.InstallableUnitLocation, TargetDefinition.Location, TargetDefinition.PathLocation, TargetDefinition.ProfilePlatformLocation
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
TargetDefinitionSyntaxException
public java.util.List<? extends TargetDefinition.Location> getLocations()
getLocations
in interface TargetDefinition
public boolean hasIncludedBundles()
TargetDefinition
true
if the target definition specifies an explicit list of bundles to
include (i.e. an <includeBundles> in target definition files).hasIncludedBundles
in interface TargetDefinition
public java.lang.String getOrigin()
TargetDefinition
getOrigin
in interface TargetDefinition
public 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.IOException
public int hashCode()
hashCode
in interface TargetDefinition
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface TargetDefinition
equals
in class java.lang.Object
private static byte[] computeFileContentHash(java.io.File source)
private static byte[] computeMD5Digest(java.io.FileInputStream in) throws java.io.IOException
java.io.IOException
private static java.security.MessageDigest newMD5Digest()