public Map<String, Object> getAttributeMap(String referencePath) { String namespace = getReferenceNamespacePath(referencePath); String prefix = getFullNamespacePrefix(namespace); int prefixLen = prefix.length(); Map<String, Object> attributesMap = this.namespaceAttributesMap.get(prefix); if (attributesMap == null) { attributesMap = new HashMap<String, Object>(); for (Enumeration attributeNames = super.getAttributeNames(); attributeNames.hasMoreElements(); ) { String encodedAttributeName = (String) attributeNames.nextElement(); if (encodedAttributeName.startsWith(prefix)) { String attributeName = encodedAttributeName.substring(prefixLen); Object attributeValue = super.getAttribute(encodedAttributeName); attributesMap.put(attributeName, attributeValue); } } this.namespaceAttributesMap.put(prefix, attributesMap); } return attributesMap; }
public Map<String, Object> getAttributeMap(String referencePath) { String namespace = getReferenceNamespacePath(referencePath); String prefix = getFullNamespacePrefix(namespace); int prefixLen = prefix.length(); Map<String, Object> attributesMap = this.namespaceAttributesMap.get(prefix); if (attributesMap == null) { attributesMap = new HashMap<String, Object>(); for (Enumeration attributeNames = super.getAttributeNames(); attributeNames.hasMoreElements(); ) { String encodedAttributeName = (String) attributeNames.nextElement(); if (encodedAttributeName.startsWith(prefix)) { String attributeName = encodedAttributeName.substring(prefixLen); Object attributeValue = super.getAttribute(encodedAttributeName); attributesMap.put(attributeName, attributeValue); } } this.namespaceAttributesMap.put(prefix, attributesMap); } return attributesMap; }
Map<String, String []> parameterMap; String namespace = getReferenceNamespacePath(referencePath); String prefix = getFullNamespacePrefix(namespace);
public Map<String, String []> getParameterMap(String referencePath) { Map<String, String []> parameterMap = null; String namespace = getReferenceNamespacePath(referencePath); String prefix = getFullNamespacePrefix(namespace);