NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); attributes.put(A_SOURCE, this.source); if (this.target != null) attributes.put(A_TARGET, this.target); if (this.title != null) attributes.put(A_TITLE, this.title); if (this.rend != null) attributes.put(A_RENDER, this.rend);
Namespace attributeNamespace = attributeMap.getNamespace(); if (attributeNamespace != null && !(attributeNamespace.URI.equals(elementNamespace.URI))) for (Map.Entry<String, String> attr : attributeMap.entrySet())
throws SAXException AttributeMap attributes = new AttributeMap(); attributes.setNamespace(WingConstants.I18N); .getDateInstance(DateFormat.DEFAULT); attributes.put(A_TYPE, TYPE_DATE); attributes.put(A_VALUE, dateFormater.format(date)); attributes.put(A_TYPE, TYPE_NUMBER); attributes.put(A_VALUE, String.valueOf(value)); attributes.put(A_TYPE, TYPE_NUMBER); attributes.put(A_VALUE, String.valueOf(value)); attributes.put(A_TYPE, TYPE_NUMBER); attributes.put(A_VALUE, String.valueOf(value)); attributes.put(A_TYPE, TYPE_NUMBER); attributes.put(A_VALUE, String.valueOf(value)); attributes.put(A_TYPE, TYPE_NUMBER); attributes.put(A_VALUE, String.valueOf(value));
/** * Another variation of the put method to convert boolean values into * strings. The values "yes" or "no" will be used in replacement of the * boolean value. * * @param key * @param value * @return */ public String put(String key, boolean value) { return this.put(key, (value ? "yes" : "no")); } }
/** * Another variation of the put method to convert integer values into * strings. * * @param key * The attribute's name. * @param value * The value of the attribute. * @return */ public String put(String key, int value) { return this.put(key, String.valueOf(value)); }
AttributeMap attributes = new AttributeMap(); attributes.put(A_OPERATIONS, operations); attributes.put(A_RETURN_VALUE, this.returnValue); attributes.put(A_SIZE, this.size); attributes.put(A_EVTBEHAVIOR, this.evtBehavior); attributes.put(A_MAX_LENGTH, this.maxlength); attributes.put(A_MULTIPLE, this.multiple); attributes.put(A_ROWS, this.rows); attributes.put(A_COLS, this.cols); attributes.put(A_AUTHORITY_CONTROLLED, this.authority); attributes.put(A_AUTHORITY_REQUIRED, this.authority_required); attributes.put(A_CHOICES, this.choices); attributes.put(A_CHOICES_PRESENTATION, this.presentation); attributes.put(A_CHOICES_CLOSED, true);
attributes = new AttributeMap(); if (dso instanceof Community) attributes.put("TYPE", "DSpace Community"); attributes.put("TYPE", "DSpace Collection"); attributes = new AttributeMap(); AttributeMap attributesXLINK = new AttributeMap(); attributesXLINK.setNamespace(XLINK); attributes.put("LOCTYPE", "URL"); attributesXLINK.put("href", "/metadata/handle/"+ dso.getHandle() +"/mets.xml"); startElement(METS,"mptr",attributes,attributesXLINK); endElement(METS,"mptr");
Namespace namespace = attributeMap.getNamespace(); String uri; if (namespace != null) for (Map.Entry<String, String> attr : attributeMap.entrySet())
AttributeMap divAttributes = new AttributeMap(); divAttributes.put(A_NAME, name); divAttributes.put(A_ID, context.generateID(E_DIVISION, name)); if (interactive) divAttributes.put(A_INTERACTIVE, "yes"); divAttributes.put(A_ACTION, action); divAttributes.put(A_METHOD, method); divAttributes.put(A_BEHAVIOR,"ajax"); divAttributes.put(A_BEHVIOR_SENSITIVE_FIELDS,behaviorSensitiveFields); divAttributes.put(A_PAGINATION, paginationType); if (previousPage != null) divAttributes.put(A_PREVIOUS_PAGE, previousPage); divAttributes.put(A_NEXT_PAGE, nextPage); divAttributes.put(A_ITEMS_TOTAL, itemsTotal); divAttributes.put(A_FIRST_ITEM_INDEX, firstItemIndex); divAttributes.put(A_LAST_ITEM_INDEX, lastItemIndex); divAttributes.put(A_PAGINATION, paginationType); divAttributes.put(A_ITEMS_TOTAL, itemsTotal); divAttributes.put(A_FIRST_ITEM_INDEX, firstItemIndex); divAttributes.put(A_LAST_ITEM_INDEX, lastItemIndex); divAttributes.put(A_CURRENT_PAGE, currentPage);
attributes = new AttributeMap(); attributes.put("ID", fileID); attributes.put("GROUPID",groupID); if (admID != null && admID.length()>0) attributes.put("ADMID", admID); attributes.put("MIMETYPE", mimeType); attributes.put("CHECKSUM", checksum); attributes.put("CHECKSUMTYPE", checksumType); attributes.put("SIZE", String.valueOf(size)); startElement(METS,"file",attributes); attributes = new AttributeMap(); AttributeMap attributesXLINK = new AttributeMap(); attributesXLINK.setNamespace(XLINK); attributes.put("LOCTYPE", "URL"); attributesXLINK.put("type","locator"); attributesXLINK.put("title", name); if (description != null) attributesXLINK.put("label", description); attributesXLINK.put("href", url); startElement(METS,"FLocat",attributes,attributesXLINK);
NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); attributes.put(A_ELEMENT, element); if (this.qualifier != null) attributes.put(A_QUALIFIER, qualifier); attributes.put(A_LANGUAGE, language);
AttributeMap attributes = new AttributeMap(); attributes.setNamespace(WingConstants.I18N); attributes.put(A_CATALOGUE, catalogue); E_TRANSLATE, null); AttributeMap attributes = new AttributeMap(); attributes.setNamespace(WingConstants.I18N); attributes.put(A_CATALOGUE, catalogue);
NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); if (name != null) attributes.put(A_NAME, name); attributes.put(A_ID, context.generateID(E_CELL, name)); attributes.put(A_ROLE, role); attributes.put(A_ROWS, rows); attributes.put(A_COLS, cols); attributes.put(A_RENDER, rend);
NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); attributes.put(A_REPOSITORY_ID, this.repository); attributes.put(A_URL, this.url); if (type != null) attributes.put(A_TYPE, type);
throws SAXException AttributeMap attributes = new AttributeMap(); attributes.put(A_TYPE, this.type); attributes.put(A_OPTION, this.option); attributes.put(A_CHECKED, this.checked); attributes.put(A_CONFIDENCE, this.confidence);
NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); attributes.put(A_TARGET, target); attributes.put(A_NAME, name); attributes.put(A_ID, context.generateID(E_XREF, name)); attributes.put(A_RENDER, this.rend);
NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); if (this.target != null) attributes.put(A_TARGET, target); attributes.put(A_RENDER, rend);
NamespaceSupport namespaces) throws SAXException AttributeMap attributes = new AttributeMap(); if (name != null) attributes.put(A_NAME, name); attributes.put(A_ID, context.generateID(E_ROW, name)); attributes.put(A_ROLE, role); attributes.put(A_RENDER, rend);
attributes = new AttributeMap(); attributes.put("TYPE", "LOGICAL"); attributes.put("LABEL", "DSpace"); startElement(METS,"structMap",attributes); attributes = new AttributeMap(); attributes.put("TYPE", "DSpace Repository"); attributes.put("DMDID", dmdSecIDS);