@Test public void checksIfShapeIdIsInPrelude() { assertTrue(Prelude.isPreludeShape(ShapeId.from("smithy.api#String"))); assertTrue(Prelude.isPreludeShape(ShapeId.from("smithy.api#PrimitiveLong"))); assertTrue(Prelude.isPreludeShape(ShapeId.from("smithy.api#Foo"))); assertFalse(Prelude.isPreludeShape(ShapeId.from("foo.baz#Bar"))); }
public static boolean isPreludeShape(ToShapeId id) { return id.toShapeId().getNamespace().equals(NAMESPACE); }
Prelude { public static boolean isPreludeShape(ToShapeId id) { return id.toShapeId().getNamespace().equals(NAMESPACE); } }
Prelude { public static boolean isPreludeShape(ToShapeId id) { return id.toShapeId().getNamespace().equals(NAMESPACE); } private  Prelude(); }
Prelude { public static boolean isPreludeShape(ToShapeId id) { return id.toShapeId().getNamespace().equals(NAMESPACE); } private  Prelude(); static boolean isPreludeShape(ToShapeId id); static boolean isPublicPreludeShape(ToShapeId id); }
Prelude { public static boolean isPreludeShape(ToShapeId id) { return id.toShapeId().getNamespace().equals(NAMESPACE); } private  Prelude(); static boolean isPreludeShape(ToShapeId id); static boolean isPublicPreludeShape(ToShapeId id); static final String NAMESPACE; }