@Override public boolean isValid(PatchingArtifactValidationContext context) { if (target == null) { context.getErrorHandler().addMissing(PatchingArtifacts.PATCH_CONTENTS, this); } return true; }
@Override public boolean isValid(PatchingArtifactValidationContext context) { if (target == null) { context.getErrorHandler().addMissing(PatchingArtifacts.PATCH_CONTENTS, this); } return true; }
@Override public boolean isValid(PatchingArtifactValidationContext context) { if (file == null) { context.getErrorHandler().addError(artifact, this); return false; } else if (!file.exists()) { context.getErrorHandler().addMissing(artifact, this); return false; } return validate0(context); }
@Override public boolean isValid(PatchingArtifactValidationContext context) { if (file == null) { context.getErrorHandler().addError(artifact, this); return false; } else if (!file.exists()) { context.getErrorHandler().addMissing(artifact, this); return false; } return validate0(context); }
@Override public boolean process(PatchingXmlArtifact.XmlArtifactState<RollbackPatch> parent, PatchingArtifactProcessor processor) { final RollbackPatch patch = parent.getPatch(); final PatchingArtifacts.PatchID patchID = processor.getParentArtifact(PatchingArtifacts.HISTORY_RECORD); final InstalledIdentity identity = patch.getIdentityState(); processor.getValidationContext().setCurrentPatchIdentity(identity); final State state = new State(identity, patchID); if (identity == null) { processor.getValidationContext().getErrorHandler().addMissing(PatchingArtifacts.ROLLBACK_TARGET, state); return false; } else { return processor.process(this, state); } }
@Override public boolean process(PatchingXmlArtifact.XmlArtifactState<RollbackPatch> parent, PatchingArtifactProcessor processor) { final RollbackPatch patch = parent.getPatch(); final PatchingArtifacts.PatchID patchID = processor.getParentArtifact(PatchingArtifacts.HISTORY_RECORD); final InstalledIdentity identity = patch.getIdentityState(); processor.getValidationContext().setCurrentPatchIdentity(identity); final State state = new State(identity, patchID); if (identity == null) { processor.getValidationContext().getErrorHandler().addMissing(PatchingArtifacts.ROLLBACK_TARGET, state); return false; } else { return processor.process(this, state); } }