public abstract static class InventoryStructure.AbstractBuilder<This extends InventoryStructure.AbstractBuilder<?>> extends Object
| Modifier and Type | Method and Description |
|---|---|
This |
addChild(Entity.Blueprint child)
Adds a new child to this entity without the possibility to add further grand-children to the child.
|
This |
addChild(Entity.Blueprint child,
Object attachment) |
Entity.Blueprint |
getBlueprint() |
InventoryStructure.ChildBuilder<This> |
getChild(Path.Segment childPath)
Returns a child builder of a pre-existing child.
|
Set<Path.Segment> |
getChildrenPaths() |
InventoryStructure.FullNode |
getNode() |
RelativePath |
getPath() |
This |
removeAllChildren() |
This |
removeChild(Path.Segment childPath) |
This |
replace(Entity.Blueprint blueprint) |
This |
replace(Entity.Blueprint blueprint,
Object attachment)
Replaces the blueprint on this position in the structure with another.
|
InventoryStructure.ChildBuilder<This> |
startChild(Entity.Blueprint child)
Equivalent to calling
startChilld(child, null). |
InventoryStructure.ChildBuilder<This> |
startChild(Entity.Blueprint child,
Object childAttachment)
Starts building a new child of the currently built entity.
|
public InventoryStructure.ChildBuilder<This> startChild(Entity.Blueprint child)
startChilld(child, null).startChild(Entity.Blueprint, Object)public InventoryStructure.ChildBuilder<This> startChild(Entity.Blueprint child, Object childAttachment)
child - the child entity blueprintchildAttachment - the attachment to store along with the childIllegalArgumentException - if the provided child cannot be contained in the currently built entity
(i.e. a resource type cannot be contained in a resource for example).public RelativePath getPath()
public Entity.Blueprint getBlueprint()
public InventoryStructure.FullNode getNode()
public InventoryStructure.ChildBuilder<This> getChild(Path.Segment childPath)
childPath - the path to the childpublic This removeChild(Path.Segment childPath)
public Set<Path.Segment> getChildrenPaths()
public This removeAllChildren()
public This replace(Entity.Blueprint blueprint)
public This replace(Entity.Blueprint blueprint, Object attachment)
blueprint - the blueprint to replace the current withattachment - the object to attach to the entity blueprintpublic This addChild(Entity.Blueprint child)
child - the child to add to this entityIllegalArgumentException - if the provided child cannot be contained in the currently built entity
(i.e. a resource type cannot be contained in a resource for example).public This addChild(Entity.Blueprint child, Object attachment)
Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.