/** * Get the index of an attribute (by name). * * @param uri The namespace uri of the attribute. * @param localname The local name of the attribute. * @return The index position of the attribute, or -1 if absent */ public int getIndex(String uri, String localname) { return findByName(uri, localname); }
/** * Get the index of an attribute (by name). * * @param uri The namespace uri of the attribute. * @param localname The local name of the attribute. * @return The index position of the attribute, or -1 if absent */ public int getIndex(String uri, String localname) { return findByName(uri, localname); }
/** * Get the type of an attribute (by name). * * @param uri The namespace uri of the attribute. * @param localname The local name of the attribute. * @return The index position of the attribute */ /*@Nullable*/ public String getType(String uri, String localname) { int index = findByName(uri, localname); return (index < 0 ? null : getType(index)); }
/** * Get the value of an attribute (by name). * * @param uri The namespace uri of the attribute. * @param localname The local name of the attribute. * @return The index position of the attribute */ /*@Nullable*/ public String getValue(String uri, String localname) { int index = findByName(uri, localname); return (index < 0 ? null : getValue(index)); }
/** * Get the type of an attribute (by name). * * @param uri The namespace uri of the attribute. * @param localname The local name of the attribute. * @return The index position of the attribute */ /*@Nullable*/ public String getType(String uri, String localname) { int index = findByName(uri, localname); return (index < 0 ? null : getType(index)); }
/** * Get the value of an attribute (by name). * * @param uri The namespace uri of the attribute. * @param localname The local name of the attribute. * @return The index position of the attribute */ /*@Nullable*/ public String getValue(String uri, String localname) { int index = findByName(uri, localname); return (index < 0 ? null : getValue(index)); }
return findByName("", qname); return findByName("", qname); } else { String localName = parts[1];
return findByName("", qname); return findByName("", qname); } else { String localName = parts[1];
/** * Find an attribute by node name * * @param nodeName the name of the required attribute * @return the index of the attribute, or -1 if absent */ public int findByNodeName(/*@NotNull*/ NodeName nodeName) { if (props == null || config == null) { return -1; } if (nodeName.hasFingerprint()) { return findByFingerprint(nodeName.getFingerprint()); } else { return findByName(nodeName.getURI(), nodeName.getLocalPart()); } }
/** * Find an attribute by node name * * @param nodeName the name of the required attribute * @return the index of the attribute, or -1 if absent */ public int findByNodeName(/*@NotNull*/ NodeName nodeName) { if (props == null || config == null) { return -1; } if (nodeName.hasFingerprint()) { return findByFingerprint(nodeName.getFingerprint()); } else { return findByName(nodeName.getURI(), nodeName.getLocalPart()); } }