/** * Return the value of the specified attribute. * * @param The attribute's index. * @return The attribute's value. */ public String getValue (int i) { return qAtts.getValue(i); }
/** * Look up the value of an attribute by qualified (prefixed) name. * * @param qName The qualified name. * @return The attribute's value. */ public String getValue (String qName) { return qAtts.getValue(qName); }
/** * Scans an attribute list for the <code>id</code> attribute and * stores a reference to the target object in the project if an * id is found. * <p> * This method was moved out of the configure method to allow * it to be executed at parse time. * * @see #configure(Object,AttributeList,Project) */ private void configureId(Object target, AttributeList attr) { String id = attr.getValue("id"); if (id != null) { project.addReference(id, target); } } }
/** * Sets the attributes for the wrapped element. * * @param attributes List of attributes defined in the XML for this * element. May be <code>null</code>. * @deprecated since 1.6.x. */ @Deprecated public synchronized void setAttributes(AttributeList attributes) { this.attributes = new AttributeListImpl(attributes); for (int i = 0; i < attributes.getLength(); i++) { setAttribute(attributes.getName(i), attributes.getValue(i)); } }
String value = replaceProperties(project, attrs.getValue(i), project.getProperties()); try { ih.setAttribute(project, target, attrs.getName(i).toLowerCase(Locale.ENGLISH), value);
/** * Set the attribute list, discarding previous contents. * * <p>This method allows an application writer to reuse an * attribute list easily.</p> * * @param atts The attribute list to copy. */ public void setAttributeList (AttributeList atts) { int count = atts.getLength(); clear(); for (int i = 0; i < count; i++) { addAttribute(atts.getName(i), atts.getType(i), atts.getValue(i)); } }
String value = attrs.getValue(i); switch (key) { case "name":
String value = attrs.getValue(i); switch (key) { case "default":
/** * Return the value of the specified attribute. * * @param The attribute's index. * @return The attribute's value. */ public String getValue (int i) { return qAtts.getValue(i); }
/** * Look up the value of an attribute by qualified (prefixed) name. * * @param qName The qualified name. * @return The attribute's value. */ public String getValue (String qName) { return qAtts.getValue(qName); }
/** * Return the value of the specified attribute. * * @param The attribute's index. * @return The attribute's value. */ public String getValue (int i) { return qAtts.getValue(i); }
/** * Look up the value of an attribute by qualified (prefixed) name. * * @param qName The qualified name. * @return The attribute's value. */ public String getValue (String qName) { return qAtts.getValue(qName); }
/** * Return the value of the specified attribute. * * @param The attribute's index. * @return The attribute's value. */ public String getValue (int i) { return qAtts.getValue(i); }
/** * Return the value of the specified attribute. * * @param The attribute's index. * @return The attribute's value. */ public String getValue (int i) { return qAtts.getValue(i); }
/** * Return the value of the specified attribute. * * @param The attribute's index. * @return The attribute's value. */ public String getValue (int i) { return qAtts.getValue(i); }
/** * Look up the value of an attribute by qualified (prefixed) name. * * @param qName The qualified name. * @return The attribute's value. */ public String getValue (String qName) { return qAtts.getValue(qName); }
public void startElement(String name, AttributeList atts) { if (level > 0) indent(); // Write start tag write(writer, '<'); write(writer, name); if (atts != null) { for (int i = 0; i < atts.getLength(); i++) { write(writer, ' '); write(writer, atts.getName(i)); write(writer, "=\""); escapeAttrValue(atts.getValue(i), writer); write(writer, "\""); } } write(writer, '>'); level++; // check arrays are still of right size if (offset + level*2 > startline.length) makeStartLineBuffer((offset + level*2) * 2); if (level >= subelements.length) makeSubelements(level * 2); // Set sub element flag on parent element to true if (level > 0) subelements[level - 1] = true; // Set sub element flag on this element to false subelements[level] = false; }
private final void handleBevelBorder (org.xml.sax.AttributeList atts) { String key = atts.getValue (KEY_ATTR); int i = BevelBorder.LOWERED; String type = atts.getValue (TYPE_ATTR); if (type != null) i = type.equals (TYPE_LOWERED) ? BevelBorder.LOWERED : BevelBorder.RAISED; BorderUIResource.BevelBorderUIResource resource = new BorderUIResource.BevelBorderUIResource (i); defaults.put (key, resource); }