public String getURI(int index) { if (fAttributes != null) { Node node = (Node) fAttributes.getItem(index); String namespace = node.getNamespaceURI(); namespace = (namespace != null) ? fSymbolTable.addSymbol(namespace) : null; return namespace; } return null; }
public String getQName(int index) { if (fAttributes != null) { Node node = (Node) fAttributes.getItem(index); String rawname = fSymbolTable.addSymbol(node.getNodeName()); return rawname; } return null; }
public void getName(int attrIndex, QName attrName) { if (fAttributes != null) { updateQName((Node)fAttributes.getItem(attrIndex), attrName); } }
public String getPrefix(int index) { if (fAttributes != null) { Node node = (Node) fAttributes.getItem(index); String prefix = node.getPrefix(); prefix = (prefix != null && prefix.length() != 0) ? fSymbolTable.addSymbol(prefix) : null; return prefix; } return null; }
public String getLocalName(int index) { if (fAttributes != null) { Node node = (Node) fAttributes.getItem(index); String localName = node.getLocalName(); localName = (localName != null) ? fSymbolTable.addSymbol(localName) : null; return localName; } return null; }
public void setSpecified(int attrIndex, boolean specified){ AttrImpl attr = (AttrImpl)fAttributes.getItem(attrIndex); attr.setSpecified(specified); }
public boolean isSpecified(int attrIndex){ return((Attr)fAttributes.getItem(attrIndex)).getSpecified(); }
public void setValue(int attrIndex, String attrValue) { // REVISIT: is this desired behaviour? // The values are updated in the case datatype-normalization is turned on // in this case we need to make sure that specified attributes stay specified if (fAttributes != null){ AttrImpl attr = (AttrImpl)fAttributes.getItem(attrIndex); boolean specified = attr.getSpecified(); attr.setValue(attrValue); attr.setSpecified(specified); } }
Attr att = (Attr)attributes.getItem(i); if (XMLSymbols.PREFIX_XMLNS.equals(att.getPrefix()) || XMLSymbols.PREFIX_XMLNS.equals(att.getName())) {
Attr attr = (Attr)attributes.getItem(k); uri = attr.getNamespaceURI(); if (uri != null && uri.equals(NamespaceContext.XMLNS_URI)) {