@Test public void loadsTrait() { TraitFactory provider = TraitFactory.createServiceFactory(); ObjectNode node = Node.objectNode() .withMember("uri", Node.from("https: Optional<Trait> trait = provider.createTrait( ShapeId.from("smithy.api#xmlNamespace"), ShapeId.from("ns.qux#foo"), node); assertTrue(trait.isPresent()); assertThat(trait.get(), instanceOf(XmlNamespaceTrait.class)); XmlNamespaceTrait xmlNamespace = (XmlNamespaceTrait) trait.get(); assertThat(xmlNamespace.getUri(), equalTo("https: }
public String getUri() { return uri; }
XmlNamespaceTrait extends AbstractTrait implements ToSmithyBuilder<XmlNamespaceTrait> { public String getUri() { return uri; } }
XmlNamespaceTrait extends AbstractTrait implements ToSmithyBuilder<XmlNamespaceTrait> { public String getUri() { return uri; } private  XmlNamespaceTrait(Builder builder); }
XmlNamespaceTrait extends AbstractTrait implements ToSmithyBuilder<XmlNamespaceTrait> { public String getUri() { return uri; } private  XmlNamespaceTrait(Builder builder); String getUri(); Optional<String> getPrefix(); static Builder builder(); @Override Builder toBuilder(); }
XmlNamespaceTrait extends AbstractTrait implements ToSmithyBuilder<XmlNamespaceTrait> { public String getUri() { return uri; } private  XmlNamespaceTrait(Builder builder); String getUri(); Optional<String> getPrefix(); static Builder builder(); @Override Builder toBuilder(); static final ShapeId ID; }