/** * <p> * getType * </p> * * @param arg0 * @return */ public String getType( int arg0 ) { return attrs.getType(arg0); } /**
/** * <p> * getType * </p> * * @param arg0 * @return */ public String getType( int arg0 ) { return attrs.getType(arg0); } /**
public String getType(String name) { return fAttributes.getType(name); }
public String getType(int i) { return fAttributes.getType(i); }
public String getType(String name) { return fAttributes.getType(name); }
public String getType(int i) { return fAttributes.getType(i); }
for (int i = 0; i < length; i++) { attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i);
/** * <p> * getType * </p> * * @param arg0 * @return */ public String getType( String qName ) { return attrs.getType(asNekoAttributeName(qName)); } /**
/** * <p> * getType * </p> * * @param arg0 * @return */ public String getType( String qName ) { return attrs.getType(asNekoAttributeName(qName)); } /**
/** * <p> * getType * </p> * * @param arg0 * @param arg1 * @return */ public String getType( String uri, String localName ) { return attrs.getType(uri, asNekoAttributeName(localName)); } /**
/** * Rerturns the DTD determine-ID * * @param attributes * @param index * @return String * @throws XNIException */ public String getDTDDeterminedID(XMLAttributes attributes, int index) throws XNIException { if (attributes.getType(index).equals("ID")) { return attributes.getValue(index); } return null; }
/** * <p> * getType * </p> * * @param arg0 * @param arg1 * @return */ public String getType( String uri, String localName ) { return attrs.getType(uri, asNekoAttributeName(localName)); } /**
private XMLAttributes getAttributesForCTA(XMLAttributes attributes, Vector inheritableAttrList) { XMLAttributes ctaAttributes = new XMLAttributesImpl(); // copy attributes from the original list of attributes for (int attrIndx = 0; attrIndx < attributes.getLength(); attrIndx++) { QName attrQName = new QName(); attributes.getName(attrIndx, attrQName); ctaAttributes.addAttribute(attrQName, attributes.getType(attrIndx), attributes.getValue(attrIndx)); } // add inherited attributes to the CTA attributes list for (int elemIndx = inheritableAttrList.size() - 1; elemIndx > -1; elemIndx--) { AttributePSVI inhAttrPsvi = (AttributePSVI) inheritableAttrList.elementAt(elemIndx); XSAttributeDeclaration inhrAttrDecl = inhAttrPsvi.getAttributeDeclaration(); // if an inherited attribute is not overridden by the current element, add it to the CTA attributes list if (!isInheritedAttributeOverridden(ctaAttributes, inhrAttrDecl)) { QName attrQName = new QName(); attrQName.setValues(null, inhrAttrDecl.getName(), inhrAttrDecl.getName(), inhrAttrDecl.getNamespace()); ctaAttributes.addAttribute(attrQName, null, inhAttrPsvi.getSchemaValue().getNormalizedValue()); } } return ctaAttributes; } // getAttributesForCTA
for (int i = 0; i < length; i++) { attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i);
for (int i = 0; i < length; i++) { attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i);
/** * Creates an element information object. * <p> * <strong>Note:</strong> This constructor makes a copy of the element information. * * @param element The element qualified name. * @param attributes The element attributes. */ public Info(HTMLElements.Element element, QName qname, XMLAttributes attributes) { this.element = element; this.qname = new QName(qname); if (attributes != null) { int length = attributes.getLength(); if (length > 0) { QName aqname = new QName(); XMLAttributes newattrs = new XMLAttributesImpl(); for (int i = 0; i < length; i++) { attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i); boolean specified = attributes.isSpecified(i); newattrs.addAttribute(aqname, type, value); newattrs.setNonNormalizedValue(i, nonNormalizedValue); newattrs.setSpecified(i, specified); } this.attributes = newattrs; } } } // <init>(HTMLElements.Element,QName,XMLAttributes)
for (int i = 0; i < length; i++) { attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i);
/** * Creates an element information object. * <p> * <strong>Note:</strong> This constructor makes a copy of the element information. * * @param element The element qualified name. * @param attributes The element attributes. */ public Info(HTMLElements.Element element, QName qname, XMLAttributes attributes) { this.element = element; this.qname = new QName(qname); if (attributes != null) { int length = attributes.getLength(); if (length > 0) { QName aqname = new QName(); XMLAttributes newattrs = new XMLAttributesImpl(); for (int i = 0; i < length; i++) { attributes.getName(i, aqname); String type = attributes.getType(i); String value = attributes.getValue(i); String nonNormalizedValue = attributes.getNonNormalizedValue(i); boolean specified = attributes.isSpecified(i); newattrs.addAttribute(aqname, type, value); newattrs.setNonNormalizedValue(i, nonNormalizedValue); newattrs.setSpecified(i, specified); } this.attributes = newattrs; } } } // <init>(HTMLElements.Element,QName,XMLAttributes)