protected void rewriteAttribute( String attrName, XMLAttributes attributes ) { String uri = attributes.getValue(attrName); if (uri != null) { // attributes.setValue(attributes.getIndex(attrName), urlGenerator.createUrl(uri)); } } /**
protected void rewriteAttribute( String attrName, XMLAttributes attributes ) { String uri = attributes.getValue(attrName); if (uri != null) { // attributes.setValue(attributes.getIndex(attrName), urlGenerator.createUrl(uri)); } } /**
public String getValue(String name) { return fAttributes.getValue(name); }
private String getScriptLanguage( XMLAttributes attrs ) { return attrs == null ? null : attrs.getValue( "language" ); }
/** * <p> * getValue * </p> * * @param arg0 * @return */ public String getValue( int arg0 ) { return attrs.getValue(arg0); } /**
public boolean evaluate(QName element, XMLAttributes attributes, NamespaceContext nsContext) throws Exception { String attrValue = attributes.getValue(name.uri, name.localpart); if (attrValue == null || attrValue.length() == 0) { return false; } return true; }
attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i); boolean specified = attributes.isSpecified(i);
public Object getValue(XMLAttributes attributes, NamespaceContext nsContext) throws Exception { String attrValue = attributes.getValue(name.uri, name.localpart); if (attrValue == null) { throw new XPathException("Attribute value is null"); } return attrValue; }
/** * Search for a xml:lang attribute, and if one is found, put the new * [language] into effect. */ protected void processXMLLangAttributes(XMLAttributes attributes) { String language = attributes.getValue(NamespaceContext.XML_URI, "lang"); if (language != null) { fCurrentLanguage = language; saveLanguage(fCurrentLanguage); } }
/** * <p> * getValue * </p> * * @param arg0 * @return */ public String getValue( String qName ) { return attrs.getValue(asNekoAttributeName(qName)); } /**
void startAnnotationElement(String elemRawName, XMLAttributes attributes) { fAnnotationBuffer.append("<").append(elemRawName); for(int i=0; i<attributes.getLength(); i++) { String aValue = attributes.getValue(i); fAnnotationBuffer.append(" ").append(attributes.getQName(i)).append("=\"").append(processAttValue(aValue)).append("\""); } fAnnotationBuffer.append(">"); }
/** * Returns the value of the specified attribute, ignoring case. */ protected static String getValue(XMLAttributes attrs, String aname) { int length = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < length; i++) { if (attrs.getQName(i).equalsIgnoreCase(aname)) { return attrs.getValue(i); } } return null; } // getValue(XMLAttributes,String):String
/** Returns the value of the specified attribute, ignoring case. */ protected static String getValue(XMLAttributes attrs, String aname) { int length = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < length; i++) { if (attrs.getQName(i).equalsIgnoreCase(aname)) { return attrs.getValue(i); } } return null; } // getValue(XMLAttributes,String):String
/** Returns the value of the specified attribute, ignoring case. */ protected static String getValue(XMLAttributes attrs, String aname) { if (attrs != null) { final int length = attrs.getLength(); for (int i = 0; i < length; i++) { if (attrs.getQName(i).equalsIgnoreCase(aname)) { return attrs.getValue(i); } } } return null; }
/** Returns the value of the specified attribute, ignoring case. */ protected static String getValue(XMLAttributes attrs, String aname) { int length = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < length; i++) { if (attrs.getQName(i).equalsIgnoreCase(aname)) { return attrs.getValue(i); } } return null; } // getValue(XMLAttributes,String):String
/** * Returns the value of the specified attribute, ignoring case. */ protected static String getValue(XMLAttributes attrs, String aname) { int length = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < length; i++) { if (attrs.getQName(i).equalsIgnoreCase(aname)) { return attrs.getValue(i); } } return null; } // getValue(XMLAttributes,String):String
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)); } } } }
public Object next() { if (!hasNext()) { throw new NoSuchElementException(); } fAttributes.getName(fIndex, fAttrName); return fEventFactory.createAttribute(fAttrName.prefix, fAttrName.uri != null ? fAttrName.uri : "", fAttrName.localpart, fAttributes.getValue(fIndex++)); }