Class CollectionShape
java.lang.Object
software.amazon.smithy.model.shapes.Shape
software.amazon.smithy.model.shapes.CollectionShape
- All Implemented Interfaces:
Comparable<Shape>
,FromSourceLocation
,ToShapeId
,software.amazon.smithy.utils.Tagged
- Direct Known Subclasses:
ListShape
Abstract class representing Set and List shapes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
CollectionShape.Builder<B extends CollectionShape.Builder<B,
S>, S extends CollectionShape> Builder used to create a List or Set shape. -
Method Summary
Modifier and TypeMethodDescriptionfinal Map<String,
MemberShape> Gets the members of the shape, including mixin members.final MemberShape
Get the member shape of the collection.Get a specific member by name.Methods inherited from class software.amazon.smithy.model.shapes.Shape
accept, asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asEnumShape, asFloatShape, asIntegerShape, asIntEnumShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, equals, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getIntroducedTraits, getMemberNames, getMemberTrait, getMixins, getRequiredMembers, getSourceLocation, getTags, getTrait, getType, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isEnumShape, isFloatShape, isIntegerShape, isIntEnumShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, members, shapeToBuilder, toShapeId, toString, validateMemberShapeIds, validateMixins
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.utils.Tagged
hasTag
-
Method Details
-
getMember
Get the member shape of the collection.- Returns:
- Returns the member shape.
-
getMember
Description copied from class:Shape
Get a specific member by name.Shapes with no members return an empty Optional.
-
getAllMembers
Description copied from class:Shape
Gets the members of the shape, including mixin members.- Overrides:
getAllMembers
in classShape
- Returns:
- Returns the immutable member map.
-