B - Concrete builder type.S - Shape type being created.public abstract static class EntityShape.Builder<B extends EntityShape.Builder<B,S>,S extends EntityShape> extends AbstractShapeBuilder<B,S>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
B |
addOperation(java.lang.String id) |
B |
addOperation(ToShapeId id) |
B |
addResource(java.lang.String id) |
B |
addResource(ToShapeId id) |
B |
clearOperations() |
B |
clearResources() |
B |
flattenMixins()
Removes mixins from a shape and flattens them into the shape.
|
B |
operations(java.util.Collection<ShapeId> ids) |
B |
removeOperation(ToShapeId id) |
B |
removeResource(ToShapeId id) |
B |
resources(java.util.Collection<ShapeId> ids) |
addMember, addMixin, addTrait, addTraits, clearMembers, clearMixins, clearTraits, getAllTraits, getId, getMember, getShapeType, getSourceLocation, id, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparepublic B addOperation(java.lang.String id)
public B clearOperations()
public B addResource(java.lang.String id)
public B clearResources()
public B flattenMixins()
AbstractShapeBuilderFlattening a mixin into a shape copies the traits and members of a mixin onto the shape, effectively resulting in the same shape but with no trace of the mixin relationship.
flattenMixins in class AbstractShapeBuilder<B extends EntityShape.Builder<B,S>,S extends EntityShape>