Methods Summary |
---|
public void | cdata(org.w3c.dom.CDATASection node)
|
public void | characters(com.sun.org.apache.xerces.internal.xni.XMLString text, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
if (!fIgnoreChars) {
final Element currentElement = (Element) fDOMValidatorHelper.getCurrentElement();
currentElement.appendChild(fDocument.createTextNode(text.toString()));
}
|
public void | characters(org.w3c.dom.Text node)
|
public void | comment(com.sun.org.apache.xerces.internal.xni.XMLString text, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | comment(org.w3c.dom.Comment node)
|
public void | doctypeDecl(java.lang.String rootElement, java.lang.String publicId, java.lang.String systemId, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | doctypeDecl(org.w3c.dom.DocumentType node)
|
public void | emptyElement(com.sun.org.apache.xerces.internal.xni.QName element, com.sun.org.apache.xerces.internal.xni.XMLAttributes attributes, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
startElement(element, attributes, augs);
endElement(element, augs);
|
public void | endCDATA(com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | endDocument(com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | endElement(com.sun.org.apache.xerces.internal.xni.QName element, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
final Node currentElement = fDOMValidatorHelper.getCurrentElement();
// Write type information to this element
if (augs != null && fDocumentImpl != null) {
ElementPSVI elementPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI);
if (elementPSVI != null) {
if (fStorePSVI) {
((PSVIElementNSImpl) currentElement).setPSVI(elementPSVI);
}
XSTypeDefinition type = elementPSVI.getMemberTypeDefinition();
if (type == null) {
type = elementPSVI.getTypeDefinition();
}
((ElementNSImpl) currentElement).setType(type);
}
}
|
public void | endGeneralEntity(java.lang.String name, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource | getDocumentSource()
return null;
|
public void | ignorableWhitespace(com.sun.org.apache.xerces.internal.xni.XMLString text, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
characters(text, augs);
|
private boolean | processAttributePSVI(com.sun.org.apache.xerces.internal.dom.AttrImpl attr, com.sun.org.apache.xerces.internal.xs.AttributePSVI attrPSVI)Returns whether the given attribute is an ID type.
if (fStorePSVI) {
((PSVIAttrNSImpl) attr).setPSVI (attrPSVI);
}
Object type = attrPSVI.getMemberTypeDefinition ();
if (type == null) {
type = attrPSVI.getTypeDefinition ();
if (type != null) {
attr.setType(type);
return ((XSSimpleType) type).isIDType();
}
}
else {
attr.setType(type);
return ((XSSimpleType) type).isIDType();
}
return false;
|
public void | processingInstruction(java.lang.String target, com.sun.org.apache.xerces.internal.xni.XMLString data, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | processingInstruction(org.w3c.dom.ProcessingInstruction node)
|
public void | setDOMResult(javax.xml.transform.dom.DOMResult result)
fIgnoreChars = false;
if (result != null) {
final Node target = result.getNode();
fDocument = (target.getNodeType() == Node.DOCUMENT_NODE) ? (Document) target : target.getOwnerDocument();
fDocumentImpl = (fDocument instanceof CoreDocumentImpl) ? (CoreDocumentImpl) fDocument : null;
fStorePSVI = (fDocument instanceof PSVIDocumentImpl);
return;
}
fDocument = null;
fDocumentImpl = null;
fStorePSVI = false;
|
public void | setDocumentSource(com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource source)
|
public void | setIgnoringCharacters(boolean ignore)
fIgnoreChars = ignore;
|
public void | startCDATA(com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | startDocument(com.sun.org.apache.xerces.internal.xni.XMLLocator locator, java.lang.String encoding, com.sun.org.apache.xerces.internal.xni.NamespaceContext namespaceContext, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | startElement(com.sun.org.apache.xerces.internal.xni.QName element, com.sun.org.apache.xerces.internal.xni.XMLAttributes attributes, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
final Element currentElement = (Element) fDOMValidatorHelper.getCurrentElement();
final NamedNodeMap attrMap = currentElement.getAttributes();
final int oldLength = attrMap.getLength();
// If it's a Xerces DOM store type information for attributes, set idness, etc..
if (fDocumentImpl != null) {
AttrImpl attr;
for (int i = 0; i < oldLength; ++i) {
attr = (AttrImpl) attrMap.item(i);
// write type information to this attribute
AttributePSVI attrPSVI = (AttributePSVI) attributes.getAugmentations(i).getItem (Constants.ATTRIBUTE_PSVI);
if (attrPSVI != null) {
if (processAttributePSVI(attr, attrPSVI)) {
((ElementImpl) currentElement).setIdAttributeNode (attr, true);
}
}
}
}
final int newLength = attributes.getLength();
// Add default/fixed attributes
if (newLength > oldLength) {
if (fDocumentImpl == null) {
for (int i = oldLength; i < newLength; ++i) {
attributes.getName(i, fAttributeQName);
currentElement.setAttributeNS(fAttributeQName.uri, fAttributeQName.rawname, attributes.getValue(i));
}
}
// If it's a Xerces DOM store type information for attributes, set idness, etc..
else {
for (int i = oldLength; i < newLength; ++i) {
attributes.getName(i, fAttributeQName);
AttrImpl attr = (AttrImpl) fDocumentImpl.createAttributeNS(fAttributeQName.uri,
fAttributeQName.rawname, fAttributeQName.localpart);
attr.setValue(attributes.getValue(i));
// write type information to this attribute
AttributePSVI attrPSVI = (AttributePSVI) attributes.getAugmentations(i).getItem (Constants.ATTRIBUTE_PSVI);
if (attrPSVI != null) {
if (processAttributePSVI(attr, attrPSVI)) {
((ElementImpl) currentElement).setIdAttributeNode (attr, true);
}
}
attr.setSpecified(false);
currentElement.setAttributeNode(attr);
}
}
}
|
public void | startGeneralEntity(java.lang.String name, com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier identifier, java.lang.String encoding, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | textDecl(java.lang.String version, java.lang.String encoding, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|
public void | xmlDecl(java.lang.String version, java.lang.String encoding, java.lang.String standalone, com.sun.org.apache.xerces.internal.xni.Augmentations augs)
|