Java Code Examples for com.sun.org.apache.xerces.internal.xs.ElementPSVI#getMemberTypeDefinition()
The following examples show how to use
com.sun.org.apache.xerces.internal.xs.ElementPSVI#getMemberTypeDefinition() .
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: DOMResultAugmentor.java From JDKSourceCode1.8 with MIT License | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 2
Source File: DOMResultAugmentor.java From Bytecoder with Apache License 2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 3
Source File: DOMResultBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { // 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)fCurrentNode).setPSVI(elementPSVI); } XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl)fCurrentNode).setType(type); } } // adjust current node reference if (fCurrentNode == fFragmentRoot) { fCurrentNode = null; fFragmentRoot = null; return; } fCurrentNode = fCurrentNode.getParentNode(); }
Example 4
Source File: DOMResultAugmentor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 5
Source File: DOMResultAugmentor.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 6
Source File: PSVIElementNSImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Copy PSVI properties from another psvi item. * * @param attr the source of attribute PSVI items */ public void setPSVI(ElementPSVI elem) { this.fDeclaration = elem.getElementDeclaration(); this.fNotation = elem.getNotation(); this.fValidationContext = elem.getValidationContext(); this.fTypeDecl = elem.getTypeDefinition(); this.fSchemaInformation = elem.getSchemaInformation(); this.fValidity = elem.getValidity(); this.fValidationAttempted = elem.getValidationAttempted(); this.fErrorCodes = elem.getErrorCodes(); this.fNormalizedValue = elem.getSchemaNormalizedValue(); this.fActualValue = elem.getActualNormalizedValue(); this.fActualValueType = elem.getActualNormalizedValueType(); this.fItemValueTypes = elem.getItemValueTypes(); this.fMemberType = elem.getMemberTypeDefinition(); this.fSpecified = elem.getIsSchemaSpecified(); this.fNil = elem.getNil(); }
Example 7
Source File: DOMResultAugmentor.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 8
Source File: PSVIElementNSImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Copy PSVI properties from another psvi item. * * @param attr the source of attribute PSVI items */ public void setPSVI(ElementPSVI elem) { this.fDeclaration = elem.getElementDeclaration(); this.fNotation = elem.getNotation(); this.fValidationContext = elem.getValidationContext(); this.fTypeDecl = elem.getTypeDefinition(); this.fSchemaInformation = elem.getSchemaInformation(); this.fValidity = elem.getValidity(); this.fValidationAttempted = elem.getValidationAttempted(); this.fErrorCodes = elem.getErrorCodes(); this.fNormalizedValue = elem.getSchemaNormalizedValue(); this.fActualValue = elem.getActualNormalizedValue(); this.fActualValueType = elem.getActualNormalizedValueType(); this.fItemValueTypes = elem.getItemValueTypes(); this.fMemberType = elem.getMemberTypeDefinition(); this.fSpecified = elem.getIsSchemaSpecified(); this.fNil = elem.getNil(); }
Example 9
Source File: DOMResultBuilder.java From JDKSourceCode1.8 with MIT License | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { // 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)fCurrentNode).setPSVI(elementPSVI); } XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl)fCurrentNode).setType(type); } } // adjust current node reference if (fCurrentNode == fFragmentRoot) { fCurrentNode = null; fFragmentRoot = null; return; } fCurrentNode = fCurrentNode.getParentNode(); }
Example 10
Source File: PSVIElementNSImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Copy PSVI properties from another psvi item. * * @param attr the source of attribute PSVI items */ public void setPSVI(ElementPSVI elem) { this.fDeclaration = elem.getElementDeclaration(); this.fNotation = elem.getNotation(); this.fValidationContext = elem.getValidationContext(); this.fTypeDecl = elem.getTypeDefinition(); this.fSchemaInformation = elem.getSchemaInformation(); this.fValidity = elem.getValidity(); this.fValidationAttempted = elem.getValidationAttempted(); this.fErrorCodes = elem.getErrorCodes(); this.fNormalizedValue = elem.getSchemaNormalizedValue(); this.fActualValue = elem.getActualNormalizedValue(); this.fActualValueType = elem.getActualNormalizedValueType(); this.fItemValueTypes = elem.getItemValueTypes(); this.fMemberType = elem.getMemberTypeDefinition(); this.fSpecified = elem.getIsSchemaSpecified(); this.fNil = elem.getNil(); }
Example 11
Source File: PSVIElementNSImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Copy PSVI properties from another psvi item. * * @param attr the source of attribute PSVI items */ public void setPSVI(ElementPSVI elem) { this.fDeclaration = elem.getElementDeclaration(); this.fNotation = elem.getNotation(); this.fValidationContext = elem.getValidationContext(); this.fTypeDecl = elem.getTypeDefinition(); this.fSchemaInformation = elem.getSchemaInformation(); this.fValidity = elem.getValidity(); this.fValidationAttempted = elem.getValidationAttempted(); this.fErrorCodes = elem.getErrorCodes(); this.fNormalizedValue = elem.getSchemaNormalizedValue(); this.fActualValue = elem.getActualNormalizedValue(); this.fActualValueType = elem.getActualNormalizedValueType(); this.fItemValueTypes = elem.getItemValueTypes(); this.fMemberType = elem.getMemberTypeDefinition(); this.fSpecified = elem.getIsSchemaSpecified(); this.fNil = elem.getNil(); }
Example 12
Source File: DOMResultAugmentor.java From hottub with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 13
Source File: DOMResultAugmentor.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 14
Source File: DOMResultBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { // 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)fCurrentNode).setPSVI(elementPSVI); } XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl)fCurrentNode).setType(type); } } // adjust current node reference if (fCurrentNode == fFragmentRoot) { fCurrentNode = null; fFragmentRoot = null; return; } fCurrentNode = fCurrentNode.getParentNode(); }
Example 15
Source File: DOMResultBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { // 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)fCurrentNode).setPSVI(elementPSVI); } XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl)fCurrentNode).setType(type); } } // adjust current node reference if (fCurrentNode == fFragmentRoot) { fCurrentNode = null; fFragmentRoot = null; return; } fCurrentNode = fCurrentNode.getParentNode(); }
Example 16
Source File: DOMResultAugmentor.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { 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); } } }
Example 17
Source File: PSVIElementNSImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Copy PSVI properties from another psvi item. * * @param attr the source of attribute PSVI items */ public void setPSVI(ElementPSVI elem) { this.fDeclaration = elem.getElementDeclaration(); this.fNotation = elem.getNotation(); this.fValidationContext = elem.getValidationContext(); this.fTypeDecl = elem.getTypeDefinition(); this.fSchemaInformation = elem.getSchemaInformation(); this.fValidity = elem.getValidity(); this.fValidationAttempted = elem.getValidationAttempted(); this.fErrorCodes = elem.getErrorCodes(); this.fNormalizedValue = elem.getSchemaNormalizedValue(); this.fActualValue = elem.getActualNormalizedValue(); this.fActualValueType = elem.getActualNormalizedValueType(); this.fItemValueTypes = elem.getItemValueTypes(); this.fMemberType = elem.getMemberTypeDefinition(); this.fSpecified = elem.getIsSchemaSpecified(); this.fNil = elem.getNil(); }
Example 18
Source File: DOMResultBuilder.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { // 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)fCurrentNode).setPSVI(elementPSVI); } XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl)fCurrentNode).setType(type); } } // adjust current node reference if (fCurrentNode == fFragmentRoot) { fCurrentNode = null; fFragmentRoot = null; return; } fCurrentNode = fCurrentNode.getParentNode(); }
Example 19
Source File: DOMResultBuilder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void endElement(QName element, Augmentations augs) throws XNIException { // 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)fCurrentNode).setPSVI(elementPSVI); } XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl)fCurrentNode).setType(type); } } // adjust current node reference if (fCurrentNode == fFragmentRoot) { fCurrentNode = null; fFragmentRoot = null; return; } fCurrentNode = fCurrentNode.getParentNode(); }
Example 20
Source File: DOMNormalizer.java From Bytecoder with Apache License 2.0 | 4 votes |
/** * The end of an element. * * @param element The name of the element. * @param augs Additional information that may include infoset augmentations * * @exception XNIException * Thrown by handler to signal an error. */ public void endElement(QName element, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>endElement: " + element); } if (augs != null) { ElementPSVI elementPSVI = (ElementPSVI) augs.getItem(Constants.ELEMENT_PSVI); if (elementPSVI != null) { ElementImpl elementNode = (ElementImpl) fCurrentNode; if (fPSVI) { ((PSVIElementNSImpl) fCurrentNode).setPSVI(elementPSVI); } // Updating the TypeInfo for this element. if (elementNode instanceof ElementNSImpl) { XSTypeDefinition type = elementPSVI.getMemberTypeDefinition(); if (type == null) { type = elementPSVI.getTypeDefinition(); } ((ElementNSImpl) elementNode).setType(type); } // include element default content (if one is available) String normalizedValue = elementPSVI.getSchemaValue().getNormalizedValue(); if ((fConfiguration.features & DOMConfigurationImpl.DTNORMALIZATION) != 0) { if (normalizedValue !=null) elementNode.setTextContent(normalizedValue); } else { // NOTE: this is a hack: it is possible that DOM had an empty element // and validator sent default value using characters(), which we don't // implement. Thus, here we attempt to add the default value. String text = elementNode.getTextContent(); if (text.length() == 0) { // default content could be provided if (normalizedValue !=null) elementNode.setTextContent(normalizedValue); } } return; } } // DTD; elements have no type. if (fCurrentNode instanceof ElementNSImpl) { ((ElementNSImpl) fCurrentNode).setType(null); } }