@Test public void testEmpty() throws IOException { final MetaElement element = MetaElement.builder().creator("creator").date("date") .language(Locale.US.getLanguage()).build(); final String string = this.getString(element); DomTester.assertEquals( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<office:document-meta " + "xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\" " + "xmlns:xlink=\"http: "xmlns:dc=\"http: "xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\" " + "xmlns:ooo=\"http: "office:version=\"1.2\"><office:meta>" + "<dc:creator>creator</dc:creator>" + "<dc:date>date</dc:date>" + "<dc:language>en</dc:language>" + "<meta:generator>FastOds/0.7.3</meta:generator>" + "<meta:editing-cycles>1</meta:editing-cycles>" + "<meta:editing-duration>PT1M00S</meta:editing-duration>" + "</office:meta></office:document-meta>", string); }
public static MetaElementBuilder builder() { return new MetaElementBuilder(); }
MetaElement implements OdsElement { public static MetaElementBuilder builder() { return new MetaElementBuilder(); } }
MetaElement implements OdsElement { public static MetaElementBuilder builder() { return new MetaElementBuilder(); } MetaElement(final String creator, final String dateTime, final String description,
                       final String language, final String subject, final String title,
                       final String editingCycles, final String editingDuration,
                       final String initialCreator, final List<String> keyWords,
                       final List<UserDefined> userDefineds); }
MetaElement implements OdsElement { public static MetaElementBuilder builder() { return new MetaElementBuilder(); } MetaElement(final String creator, final String dateTime, final String description,
                       final String language, final String subject, final String title,
                       final String editingCycles, final String editingDuration,
                       final String initialCreator, final List<String> keyWords,
                       final List<UserDefined> userDefineds); static MetaElementBuilder builder(); static MetaElement create(); @Override void write(final XMLUtil util, final ZipUTF8Writer writer); }
MetaElement implements OdsElement { public static MetaElementBuilder builder() { return new MetaElementBuilder(); } MetaElement(final String creator, final String dateTime, final String description,
                       final String language, final String subject, final String title,
                       final String editingCycles, final String editingDuration,
                       final String initialCreator, final List<String> keyWords,
                       final List<UserDefined> userDefineds); static MetaElementBuilder builder(); static MetaElement create(); @Override void write(final XMLUtil util, final ZipUTF8Writer writer); static final String GENERATOR; static final String OFFICE_VERSION; static final Map<String, String> META_NAMESPACE_BY_PREFIX; }