@Test public void getFormat() { ctx.currentResource("/content/metadata"); final Metadata metadata = ctx.request().adaptTo(Metadata.class); assertNull(metadata.getFormat()); }
@Override public String getFormat() { if (type == null) { getType(); } switch (type) { case DATE: return formatDate; case NUMBER: return formatNumber; default: return null; } }
MetadataImpl extends AbstractEmptyTextComponent implements Metadata { @Override public String getFormat() { if (type == null) { getType(); } switch (type) { case DATE: return formatDate; case NUMBER: return formatNumber; default: return null; } } }
MetadataImpl extends AbstractEmptyTextComponent implements Metadata { @Override public String getFormat() { if (type == null) { getType(); } switch (type) { case DATE: return formatDate; case NUMBER: return formatNumber; default: return null; } }  }
MetadataImpl extends AbstractEmptyTextComponent implements Metadata { @Override public String getFormat() { if (type == null) { getType(); } switch (type) { case DATE: return formatDate; case NUMBER: return formatNumber; default: return null; } }  @PostConstruct void init(); @Override DataType getType(); @Override String getLocale(); @Override String getFormat(); @Override ValueMap getProperties(); @Override AssetModel getAsset(); @Override String getPropertyName(); @Override boolean isEmpty(); @Override boolean isReady(); @Nonnull @Override String getExportedType(); }
MetadataImpl extends AbstractEmptyTextComponent implements Metadata { @Override public String getFormat() { if (type == null) { getType(); } switch (type) { case DATE: return formatDate; case NUMBER: return formatNumber; default: return null; } }  @PostConstruct void init(); @Override DataType getType(); @Override String getLocale(); @Override String getFormat(); @Override ValueMap getProperties(); @Override AssetModel getAsset(); @Override String getPropertyName(); @Override boolean isEmpty(); @Override boolean isReady(); @Nonnull @Override String getExportedType();  }