public class PatchElementBuilder extends ModificationBuilderTarget<PatchElementBuilder> implements PatchBuilder.PatchElementHolder, RequiresCallback, IncompatibleWithCallback
Modifier | Constructor and Description |
---|---|
protected |
PatchElementBuilder(String patchId,
String layerName,
boolean addOn,
PatchBuilder parent) |
Modifier and Type | Method and Description |
---|---|
PatchElement |
createElement(Patch.PatchType patchType) |
PatchBuilder |
getParent() |
IncompatibleWithCallback |
incompatibleWith(String patchID) |
protected PatchElementBuilder |
internalAddModification(ContentModification modification) |
PatchElementBuilder |
oneOffPatch() |
PatchElementBuilder |
require(String id) |
protected PatchElementBuilder |
returnThis() |
PatchElementBuilder |
setDescription(String description) |
PatchElementBuilder |
upgrade() |
addBundle, addContentModification, addFile, addFile, addModule, createBundleItem, createContentModification, createContentModification, createMiscItem, createModuleItem, modifyBundle, modifyFile, modifyFile, modifyModule, removeBundle, removeFile, removeFile, removeModule, setContentItemFilter
protected PatchElementBuilder(String patchId, String layerName, boolean addOn, PatchBuilder parent)
public PatchElementBuilder setDescription(String description)
protected PatchElementBuilder internalAddModification(ContentModification modification)
internalAddModification
in class ModificationBuilderTarget<PatchElementBuilder>
public IncompatibleWithCallback incompatibleWith(String patchID)
incompatibleWith
in interface IncompatibleWithCallback
public PatchElementBuilder require(String id)
require
in interface RequiresCallback
public PatchElementBuilder upgrade()
public PatchElementBuilder oneOffPatch()
public PatchElement createElement(Patch.PatchType patchType)
createElement
in interface PatchBuilder.PatchElementHolder
public PatchBuilder getParent()
protected PatchElementBuilder returnThis()
returnThis
in class ModificationBuilderTarget<PatchElementBuilder>
Copyright © 2023 JBoss by Red Hat. All rights reserved.