/** * <p> * getLocalName * </p> * * @param arg0 * @return */ public String getLocalName( int arg0 ) { return attrs.getLocalName(arg0); } /**
/** * <p> * getLocalName * </p> * * @param arg0 * @return */ public String getLocalName( int arg0 ) { return attrs.getLocalName(arg0); } /**
public String getLocalName(int index) { return fAttributes.getLocalName(index); }
public String getLocalName(int index) { return fAttributes.getLocalName(index); }
attributes.getLocalName(i) : XMLSymbols.EMPTY_STRING);
} else { try { element.setAttribute(xmlAttributes.getLocalName(i), xmlAttributes .getValue(i)); } catch (DOMException e) { if (StringUtils.isNotBlank(xmlAttributes.getLocalName(j)) && StringUtils.isNotBlank(xmlAttributes.getValue(j))) { sb.append(' '); sb.append(xmlAttributes.getLocalName(j)); sb.append("=\""); sb.append(xmlAttributes.getValue(j)).append('\"');
private static void copyAttributes(final DomElement to, final XMLAttributes attrs) { final int length = attrs.getLength(); for (int i = 0; i < length; i++) { final String attrName = attrs.getLocalName(i).toLowerCase(Locale.ROOT); if (to.getAttributes().getNamedItem(attrName) == null) { to.setAttribute(attrName, attrs.getValue(i)); if (attrName.startsWith("on") && to.getScriptableObject() instanceof HTMLBodyElement) { final HTMLBodyElement jsBody = to.getScriptableObject(); jsBody.createEventHandlerFromAttribute(attrName, attrs.getValue(i)); } } } }
private boolean isInheritedAttributeOverridden(XMLAttributes attributes, XSAttributeDeclaration inhrAttrDecl) { boolean attrExists = false; for (int attrIndx = 0; attrIndx < attributes.getLength(); attrIndx++) { if ((attributes.getLocalName(attrIndx)).equals(inhrAttrDecl.getName()) && XS11TypeHelper.isURIEqual(attributes.getURI(attrIndx), inhrAttrDecl.getNamespace())) { attrExists = true; break; } } return attrExists; } // isInheritedAttributeOverridden
} else { try { element.setAttribute(xmlAttributes.getLocalName(i), xmlAttributes .getValue(i)); } catch (DOMException e) { if (StringUtils.isNotBlank(xmlAttributes.getLocalName(j)) && StringUtils.isNotBlank(xmlAttributes.getValue(j))) { sb.append(' '); sb.append(xmlAttributes.getLocalName(j)); sb.append("=\""); sb.append(xmlAttributes.getValue(j)).append('\"');
} else { try { element.setAttribute(xmlAttributes.getLocalName(i), xmlAttributes .getValue(i)); } catch (DOMException e) { if (StringUtils.isNotBlank(xmlAttributes.getLocalName(j)) && StringUtils.isNotBlank(xmlAttributes.getValue(j))) { sb.append(' '); sb.append(xmlAttributes.getLocalName(j)); sb.append("=\""); sb.append(xmlAttributes.getValue(j)).append('\"');
private static void copyAttributes(final DomElement to, final XMLAttributes attrs) { final int length = attrs.getLength(); for (int i = 0; i < length; i++) { final String attrName = attrs.getLocalName(i).toLowerCase(Locale.ROOT); if (to.getAttributes().getNamedItem(attrName) == null) { to.setAttribute(attrName, attrs.getValue(i)); if (attrName.startsWith("on") && to.getScriptableObject() instanceof HTMLBodyElement) { final HTMLBodyElement jsBody = to.getScriptableObject(); jsBody.createEventHandlerFromAttribute(attrName, attrs.getValue(i)); } } } }
/** * {@inheritDoc} */ public void ignoredStartElement(final QName elem, final XMLAttributes attrs, final Augmentations augs) { // when multiple body elements are encountered, the attributes of the discarded // elements are used when not previously defined if (body_ != null && "body".equalsIgnoreCase(elem.localpart) && attrs != null) { // add the attributes that don't already exist final int length = attrs.getLength(); for (int i = 0; i < length; ++i) { final String attrName = attrs.getLocalName(i).toLowerCase(); if (body_.getAttributes().getNamedItem(attrName) == null) { body_.setAttribute(attrName, attrs.getValue(i)); if (attrName.startsWith("on") && body_.getScriptObject() != null) { final HTMLBodyElement jsBody = (HTMLBodyElement) body_.getScriptObject(); jsBody.createEventHandlerFromAttribute(attrName, attrs.getValue(i)); } } } } } /**
/** * {@inheritDoc} */ public void ignoredStartElement(final QName elem, final XMLAttributes attrs, final Augmentations augs) { // when multiple body elements are encountered, the attributes of the discarded // elements are used when not previously defined if (body_ != null && "body".equalsIgnoreCase(elem.localpart) && attrs != null) { // add the attributes that don't already exist final int length = attrs.getLength(); for (int i = 0; i < length; ++i) { final String attrName = attrs.getLocalName(i).toLowerCase(); if (body_.getAttributes().getNamedItem(attrName) == null) { body_.setAttribute(attrName, attrs.getValue(i)); if (attrName.startsWith("on") && body_.getScriptObject() != null) { final HTMLBodyElement jsBody = (HTMLBodyElement) body_.getScriptObject(); jsBody.createEventHandlerFromAttribute(attrName, attrs.getValue(i)); } } } } } /**
/** * {@inheritDoc} */ public void ignoredStartElement(final QName elem, final XMLAttributes attrs, final Augmentations augs) { // when multiple body elements are encountered, the attributes of the discarded // elements are used when not previously defined if (body_ != null && "body".equalsIgnoreCase(elem.localpart) && attrs != null) { // add the attributes that don't already exist final int length = attrs.getLength(); for (int i = 0; i < length; ++i) { final String attrName = attrs.getLocalName(i).toLowerCase(); if (body_.getAttributes().getNamedItem(attrName) == null) { body_.setAttribute(attrName, attrs.getValue(i)); if (attrName.startsWith("on") && body_.getScriptObject() != null) { final HTMLBodyElement jsBody = (HTMLBodyElement) body_.getScriptObject(); jsBody.createEventHandlerFromAttribute(attrName, attrs.getValue(i)); } } } } } /**
String attrLocalName = attributes.getLocalName(attrIdx); String attrValue = attributes.getValue(attrIdx); if (SchemaSymbols.ATT_MINVERSION.equals(attrLocalName)) {
PSVIAttrNSImpl attrNode = new PSVIAttrNSImpl((PSVIDocumentImpl)fAssertDocument, attributes.getURI(attIndex), attributes.getQName(attIndex), attributes.getLocalName(attIndex)); attrNode.setNodeValue(attributes.getValue(attIndex));
attrs[i] = new AttrImpl(node, attributes.getPrefix(i), attributes.getLocalName(i), attributes.getQName(i), attributes.getURI(i),
String localpart = attributes.getLocalName(i); String prefix = attributes.getPrefix(i); continue; String alocalpart = attributes.getLocalName(i); for (int j = i + 1; j < attrCount; j++) { String blocalpart = attributes.getLocalName(j); String buri = attributes.getURI(j); if (alocalpart == blocalpart && auri == buri) {
String localpart = attributes.getLocalName(i); String prefix = attributes.getPrefix(i); continue; String alocalpart = attributes.getLocalName(i); for (int j = i + 1; j < attrCount; j++) { String blocalpart = attributes.getLocalName(j); String buri = attributes.getURI(j); if (alocalpart == blocalpart && auri == buri) {
String localpart = attributes.getLocalName(i); String prefix = attributes.getPrefix(i); continue; String alocalpart = attributes.getLocalName(i); for (int j = i + 1; j < attrCount; j++) { String blocalpart = attributes.getLocalName(j); String buri = attributes.getURI(j); if (alocalpart == blocalpart && auri == buri) {