if (ast != null) array.addProperty(ast);
public void addAlternatePath(String value) { ArrayProperty seq = (ArrayProperty) getFirstEquivalentProperty(ALTERNATE_PATHS, ArrayProperty.class); if (seq == null) { seq = getMetadata().getTypeMapping().createArrayProperty(null, getPreferedPrefix(), ALTERNATE_PATHS, Cardinality.Seq); addProperty(seq); } TypeMapping tm = getMetadata().getTypeMapping(); TextType tt = (TextType) tm.instanciateSimpleProperty(null, "rdf", "li", value, Types.Text); seq.addProperty(tt); }
if (ast2 != null) array.addProperty(ast2);
if (ast != null) array.addProperty(ast);
if (ast != null) array.addProperty(ast);
public void addAlternatePath(String value) { ArrayProperty seq = (ArrayProperty) getFirstEquivalentProperty(ALTERNATE_PATHS, ArrayProperty.class); if (seq == null) { seq = getMetadata().getTypeMapping().createArrayProperty(null, getPreferedPrefix(), ALTERNATE_PATHS, Cardinality.Seq); addProperty(seq); } TypeMapping tm = getMetadata().getTypeMapping(); TextType tt = (TextType) tm.instanciateSimpleProperty(null, "rdf", "li", value, Types.Text); seq.addProperty(tt); }
public void addAlternatePath(String value) { ArrayProperty seq = (ArrayProperty) getFirstEquivalentProperty(ALTERNATE_PATHS, ArrayProperty.class); if (seq == null) { seq = getMetadata().getTypeMapping().createArrayProperty(null, getPreferedPrefix(), ALTERNATE_PATHS, Cardinality.Seq); addProperty(seq); } TypeMapping tm = getMetadata().getTypeMapping(); TextType tt = (TextType) tm.instanciateSimpleProperty(null, "rdf", "li", value, Types.Text); seq.addProperty(tt); }
if (ast2 != null) array.addProperty(ast2);
if (ast2 != null) array.addProperty(ast2);
private DefinedStructuredType addProperty(ArrayProperty parent, String name, String type, String category, String description) { XMPMetadata metadata = getMetadata(); DefinedStructuredType li = new DefinedStructuredType(metadata, getNamespace(), getPrefix(), XmpConstants.LIST_NAME); li.setAttribute(new Attribute(getNamespace(), XmpConstants.PARSE_TYPE, XmpConstants.RESOURCE_NAME)); ChoiceType pdfa2 = new ChoiceType(metadata, xmlns_pdfaProperty, prefix_pdfaProperty, PDFAPropertyType.NAME, name); li.addProperty(pdfa2); pdfa2 = new ChoiceType(metadata, xmlns_pdfaProperty, prefix_pdfaProperty, PDFAPropertyType.VALUETYPE, type); li.addProperty(pdfa2); pdfa2 = new ChoiceType(metadata, xmlns_pdfaProperty, prefix_pdfaProperty, PDFAPropertyType.CATEGORY, category); li.addProperty(pdfa2); pdfa2 = new ChoiceType(metadata, xmlns_pdfaProperty, prefix_pdfaProperty, PDFAPropertyType.DESCRIPTION, description); li.addProperty(pdfa2); parent.addProperty(li); return li; }
XmpConstants.LIST_NAME); li.setAttribute(new Attribute(getNamespace(), XmpConstants.PARSE_TYPE, XmpConstants.RESOURCE_NAME)); newBag.addProperty(li); addProperty(newBag); if (withZF) {