com.sun.org.apache.xerces.internal.util.AugmentationsImpl Java Examples
The following examples show how to use
com.sun.org.apache.xerces.internal.util.AugmentationsImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DOMNormalizer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #2
Source File: DOMNormalizer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #3
Source File: DOMNormalizer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #4
Source File: DOMNormalizer.java From JDKSourceCode1.8 with MIT License | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #5
Source File: DOMNormalizer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #6
Source File: DOMNormalizer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #7
Source File: DOMNormalizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #8
Source File: DOMNormalizer.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #9
Source File: DOMNormalizer.java From Bytecoder with Apache License 2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fDTDTypes.setSize(length); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fDTDTypes.setSize(0); fAugmentations.setSize(0); } }
Example #10
Source File: DOMNormalizer.java From hottub with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #11
Source File: DOMNormalizer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem) { fDocument = doc; fAttributes = attributes; fElement = elem; if (attributes != null) { int length = attributes.getLength(); fAugmentations.setSize(length); // REVISIT: this implementation does not store any value in augmentations // and basically not keeping augs in parallel to attributes map // untill all attributes are added (default attributes) for (int i = 0; i < length; i++) { fAugmentations.setElementAt(new AugmentationsImpl(), i); } } else { fAugmentations.setSize(0); } }
Example #12
Source File: DOMNormalizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #13
Source File: DOMNormalizer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #14
Source File: DOMNormalizer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #15
Source File: DOMNormalizer.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #16
Source File: DOMNormalizer.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #17
Source File: DOMNormalizer.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fDTDTypes.insertElementAt(attrType, index); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #18
Source File: DOMNormalizer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #19
Source File: DOMNormalizer.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #20
Source File: DOMNormalizer.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #21
Source File: DOMNormalizer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }
Example #22
Source File: DOMNormalizer.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * This method adds default declarations * @see com.sun.org.apache.xerces.internal.xni.XMLAttributes#addAttribute(QName, String, String) */ public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table attr.setNodeValue(attrValue); index = fElement.setXercesAttributeNode(attr); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; }