/** * Get the value of a given attribute of this node * * @param uri the namespace URI of the attribute name, or "" if the attribute is not in a namepsace * @param localName the local part of the attribute name * @return the attribute value if it exists or null if not */ /*@Nullable*/ public String getAttributeValue(/*@NotNull*/ String uri, /*@NotNull*/ String localName) { return attributeList == null ? null : attributeList.getValue(uri, localName); }
/** * Get the value of a given attribute of this node * @param uri the namespace URI of the attribute name, or "" if the attribute is not in a namepsace * @param localName the local part of the attribute name * @return the attribute value if it exists or null if not */ public String getAttributeValue(String uri, String localName) { return (attributeList == null ? null : attributeList.getValue(uri, localName)); } }
/** * Get the value of a given attribute of this node * * @param uri the namespace URI of the attribute name, or "" if the attribute is not in a namepsace * @param localName the local part of the attribute name * @return the attribute value if it exists or null if not */ /*@Nullable*/ public String getAttributeValue(/*@NotNull*/ String uri, /*@NotNull*/ String localName) { return attributeList == null ? null : attributeList.getValue(uri, localName); }
public String getAttributeValue(String uri, String local) { try { return provider.getAttributes().getValue(uri, local); } catch (XPathException e) { pendingException = e; return ""; } }
public String getAttributeValue(int i) { try { return provider.getAttributes().getValue(i); } catch (XPathException e) { pendingException = e; return "error"; } }
public String getAttributeValue(String uri, String local) { try { return provider.getAttributes().getValue(uri, local); } catch (XPathException e) { pendingException = e; return ""; } }
public String getAttributeValue(int i) { try { return provider.getAttributes().getValue(i); } catch (XPathException e) { pendingException = e; return "error"; } }
/** * Return the character value of the node. * * @return the attribute value */ public String getStringValue() { return ((ElementImpl) getRawParent()).getAttributeList().getValue(getSiblingPosition()); }
/** * Return the character value of the node. * * @return the attribute value */ public String getStringValue() { return ((ElementImpl) getRawParent()).getAttributeList().getValue(getSiblingPosition()); }
/** * Construct an Attribute node for the n'th attribute of a given element * @param element The element containing the relevant attribute * @param index The index position of the attribute starting at zero */ public AttributeImpl(ElementImpl element, int index) { parent = element; this.index = index; AttributeCollection atts = element.getAttributeList(); this.nameCode = atts.getNameCode(index); this.value = atts.getValue(index); this.typeCode = atts.getTypeAnnotation(index); }
/** * Construct an Attribute node for the n'th attribute of a given element * @param element The element containing the relevant attribute * @param index The index position of the attribute starting at zero */ public AttributeImpl(ElementImpl element, int index) { parent = element; this.index = index; AttributeCollection atts = element.getAttributeList(); this.nameCode = atts.getNameCode(index); this.value = atts.getValue(index); this.typeCode = atts.getTypeAnnotation(index); }
public void prepareAttributes() throws XPathException { String selectAtt = null; AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
public void prepareAttributes() throws XPathException { String selectAtt = null; AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
public void prepareAttributes() throws XPathException { AttributeCollection atts = getAttributeList(); String selectAtt = null; for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
public void prepareAttributes() throws XPathException { String selectAtt = null; AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
public void prepareAttributes() throws XPathException { String selectAtt = null; AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
public void prepareAttributes() throws XPathException { String selectAtt = null; AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
public void prepareAttributes() throws XPathException { String selectAtt = null; AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { String f = atts.getQName(a); if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else { checkUnknownAttribute(atts.getNodeName(a)); } } }
private AttributeCollectionImpl copyAttributeCollection(AttributeCollection in) { AttributeCollectionImpl out = new AttributeCollectionImpl(getNamePool()); for (int i = 0; i < in.getLength(); i++) { out.addAttribute(in.getNameCode(i), in.getTypeAnnotation(i), in.getValue(i), in.getLocationId(i), in.getProperties(i)); } return out; }
private AttributeCollectionImpl copyAttributeCollection(AttributeCollection in) { AttributeCollectionImpl out = new AttributeCollectionImpl(getPipelineConfiguration().getConfiguration()); for (int i = 0; i < in.getLength(); i++) { out.addAttribute(in.getNameCode(i), in.getTypeAnnotation(i), in.getValue(i), in.getLocationId(i), in.getProperties(i)); } return out; }