/** * * @param metadata * The metadata to attach to this property */ public ThumbnailType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
public LayerType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
private void loadAttributes(AbstractField sp, Element element) { NamedNodeMap nnm = element.getAttributes(); for (int i = 0; i < nnm.getLength(); i++) { Attr attr = (Attr) nnm.item(i); if (XMLConstants.XMLNS_ATTRIBUTE.equals(attr.getPrefix())) { // do nothing } else if (XmpConstants.DEFAULT_RDF_PREFIX.equals(attr.getPrefix()) && XmpConstants.ABOUT_NAME.equals(attr.getLocalName())) { // set about if (sp instanceof XMPSchema) { ((XMPSchema) sp).setAboutAsSimple(attr.getValue()); } } else { Attribute attribute = new Attribute(XMLConstants.XML_NS_URI, attr.getLocalName(), attr.getValue()); sp.setAttribute(attribute); } } }
/** * Set the RDF 'about' attribute. Passing in null will clear this attribute. * * @param about * The new RFD about value. */ public void setAboutAsSimple(String about) { if (about == null) { removeAttribute(XmpConstants.ABOUT_NAME); } else { setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, XmpConstants.ABOUT_NAME, about)); } }
langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); reorganizeAltOrder(arrayProp.getContainer()); langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); addProperty(arrayProp);
public LayerType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
/** * * @param metadata * The metadata to attach to this property */ public ThumbnailType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
public LayerType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
/** * * @param metadata * The metadata to attach to this property */ public ThumbnailType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
private void loadAttributes(AbstractField sp, Element element) { NamedNodeMap nnm = element.getAttributes(); for (int i = 0; i < nnm.getLength(); i++) { Attr attr = (Attr) nnm.item(i); if (XMLConstants.XMLNS_ATTRIBUTE.equals(attr.getPrefix())) { // do nothing } else if (XmpConstants.DEFAULT_RDF_PREFIX.equals(attr.getPrefix()) && XmpConstants.ABOUT_NAME.equals(attr.getLocalName())) { // set about if (sp instanceof XMPSchema) { ((XMPSchema) sp).setAboutAsSimple(attr.getValue()); } } else { Attribute attribute = new Attribute(XMLConstants.XML_NS_URI, attr.getLocalName(), attr.getValue()); sp.setAttribute(attribute); } } }
private void loadAttributes(AbstractField sp, Element element) { NamedNodeMap nnm = element.getAttributes(); for (int i = 0; i < nnm.getLength(); i++) { Attr attr = (Attr) nnm.item(i); if (XMLConstants.XMLNS_ATTRIBUTE.equals(attr.getPrefix())) { // do nothing } else if (XmpConstants.DEFAULT_RDF_PREFIX.equals(attr.getPrefix()) && XmpConstants.ABOUT_NAME.equals(attr.getLocalName())) { // set about if (sp instanceof XMPSchema) { ((XMPSchema) sp).setAboutAsSimple(attr.getValue()); } } else { Attribute attribute = new Attribute(XMLConstants.XML_NS_URI, attr.getLocalName(), attr.getValue()); sp.setAttribute(attribute); } } }
/** * Set the RDF 'about' attribute. Passing in null will clear this attribute. * * @param about * The new RFD about value. */ public void setAboutAsSimple(String about) { if (about == null) { removeAttribute(XmpConstants.ABOUT_NAME); } else { setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, XmpConstants.ABOUT_NAME, about)); } }
/** * Set the RDF 'about' attribute. Passing in null will clear this attribute. * * @param about * The new RFD about value. */ public void setAboutAsSimple(String about) { if (about == null) { removeAttribute(XmpConstants.ABOUT_NAME); } else { setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, XmpConstants.ABOUT_NAME, about)); } }
langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); reorganizeAltOrder(arrayProp.getContainer()); langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); addProperty(arrayProp);
langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); reorganizeAltOrder(arrayProp.getContainer()); langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language)); arrayProp.getContainer().addProperty(langValue); addProperty(arrayProp);
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; }
DefinedStructuredType li = new DefinedStructuredType(metadata, getNamespace(), getPrefix(), XmpConstants.LIST_NAME); li.setAttribute(new Attribute(getNamespace(), XmpConstants.PARSE_TYPE, XmpConstants.RESOURCE_NAME)); newBag.addProperty(li); addProperty(newBag);