public String getQName(int index) { return fAttributes.getQName(index); }
/** * <p> * getQName * </p> * * @param arg0 * @return */ public String getQName( int arg0 ) { return attrs.getQName(arg0); } /**
/** * <p> * getQName * </p> * * @param arg0 * @return */ public String getQName( int arg0 ) { return attrs.getQName(arg0); } /**
public String getQName(int index) { return fAttributes.getQName(index); }
public String getName(int i) { return fAttributes.getQName(i); }
public String getName(int i) { return fAttributes.getQName(i); }
protected String[] getAttributeNames(XMLAttributes attrs) { int length = attrs != null ? attrs.getLength() : 0 ; String[] names = length > 0 ? new String[ length ] : null ; for( int i = 0, limit = length;i<limit;i++) { names[i] = attrs.getQName(i) ; } return names ; }
protected String[] getAttributeNames(XMLAttributes attrs) { int length = attrs != null ? attrs.getLength() : 0 ; String[] names = length > 0 ? new String[ length ] : null ; for( int i = 0, limit = length;i<limit;i++) { names[i] = attrs.getQName(i) ; } return names ; }
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) { 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; }
/** Start element. */ public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException { Element elementNode = fDocument.createElement(element.rawname); int count = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < count; i++) { String aname = attrs.getQName(i); String avalue = attrs.getValue(i); if (XMLChar.isValidName(aname)) { elementNode.setAttribute(aname, avalue); } } fCurrentNode.appendChild(elementNode); fCurrentNode = elementNode; } // startElement(QName,XMLAttributes,Augmentations)
/** Start element. */ public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException { Element elementNode = fDocument.createElement(element.rawname); int count = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < count; i++) { String aname = attrs.getQName(i); String avalue = attrs.getValue(i); if (XMLChar.isValidName(aname)) { elementNode.setAttribute(aname, avalue); } } fCurrentNode.appendChild(elementNode); fCurrentNode = elementNode; } // startElement(QName,XMLAttributes,Augmentations)
/** Start element. */ @Override public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException { final Element elementNode = fDocument.createElement(element.rawname); if (attrs != null) { final int count = attrs.getLength(); for (int i = 0; i < count; i++) { final String aname = attrs.getQName(i); final String avalue = attrs.getValue(i); if (XMLChar.isValidName(aname)) { elementNode.setAttribute(aname, avalue); } } } fCurrentNode.appendChild(elementNode); fCurrentNode = elementNode; }
/** * Start element. */ public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException { Element elementNode = fDocument.createElement(element.rawname); int count = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < count; i++) { String aname = attrs.getQName(i); String avalue = attrs.getValue(i); if (XMLChar.isValidName(aname)) { elementNode.setAttribute(aname, avalue); } } fCurrentNode.appendChild(elementNode); fCurrentNode = elementNode; } // startElement(QName,XMLAttributes,Augmentations)
/** * Start element. */ public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException { Element elementNode = fDocument.createElement(element.rawname); int count = attrs != null ? attrs.getLength() : 0; for (int i = 0; i < count; i++) { String aname = attrs.getQName(i); String avalue = attrs.getValue(i); if (XMLChar.isValidName(aname)) { elementNode.setAttribute(aname, avalue); } } fCurrentNode.appendChild(elementNode); fCurrentNode = elementNode; } // startElement(QName,XMLAttributes,Augmentations)
/** * @param attributes * @return */ private boolean hasNonSchemaAttributes(QName element, XMLAttributes attributes) { final int length = attributes.getLength(); for (int i = 0; i < length; ++i) { String uri = attributes.getURI(i); if (uri != null && uri != SchemaSymbols.URI_SCHEMAFORSCHEMA && uri != NamespaceContext.XMLNS_URI && !(uri == NamespaceContext.XML_URI && attributes.getQName(i) == SchemaSymbols.ATT_XML_LANG && element.localpart == SchemaSymbols.ELT_SCHEMA)) { return true; } } return false; }