@Test public void getText() { final Address address = new Address().addLine( "Lower Road 20" ).addLine( "Apartment 19" ) .setCity( "Freetown" ).setState( "Other State" ).setCountry( "Sierra Leone" ).setText( "Summary Address" ); Assert.assertEquals( "Summary Address", utils.getText( address ) ); }
@Nullable @Override public String getText( @Nullable ICompositeType address ) { final Address convertedAddress = (Address) address; return (convertedAddress == null) ? null : convertedAddress.getText(); }
Dstu3AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public String getText( @Nullable ICompositeType address ) { final Address convertedAddress = (Address) address; return (convertedAddress == null) ? null : convertedAddress.getText(); } }
Dstu3AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public String getText( @Nullable ICompositeType address ) { final Address convertedAddress = (Address) address; return (convertedAddress == null) ? null : convertedAddress.getText(); } Dstu3AddressFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull Dstu3DateTimeFhirToDhisTransformerUtils dateTimeTransformerUtils ); }
Dstu3AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public String getText( @Nullable ICompositeType address ) { final Address convertedAddress = (Address) address; return (convertedAddress == null) ? null : convertedAddress.getText(); } Dstu3AddressFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull Dstu3DateTimeFhirToDhisTransformerUtils dateTimeTransformerUtils ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ); @Nullable @Override String getSingleLine( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getConstructedText( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getText( @Nullable ICompositeType address ); }
Dstu3AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public String getText( @Nullable ICompositeType address ) { final Address convertedAddress = (Address) address; return (convertedAddress == null) ? null : convertedAddress.getText(); } Dstu3AddressFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull Dstu3DateTimeFhirToDhisTransformerUtils dateTimeTransformerUtils ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ); @Nullable @Override String getSingleLine( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getConstructedText( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getText( @Nullable ICompositeType address );  }