Java Code Examples for com.sun.org.apache.xerces.internal.impl.xs.SchemaSymbols#FORM_QUALIFIED
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.xs.SchemaSymbols#FORM_QUALIFIED .
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: XSDocumentInfo.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 2
Source File: XSDocumentInfo.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 3
Source File: XSDocumentInfo.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 4
Source File: XSDocumentInfo.java From JDKSourceCode1.8 with MIT License | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 5
Source File: XSDocumentInfo.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 6
Source File: XSDocumentInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 7
Source File: XSDocumentInfo.java From Bytecoder with Apache License 2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 8
Source File: XSDocumentInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 9
Source File: XSDocumentInfo.java From hottub with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 10
Source File: XSDocumentInfo.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }
Example 11
Source File: XSDocumentInfo.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
XSDocumentInfo (Element schemaRoot, XSAttributeChecker attrChecker, SymbolTable symbolTable) throws XMLSchemaException { fSchemaElement = schemaRoot; initNamespaceSupport(schemaRoot); fIsChameleonSchema = false; fSymbolTable = symbolTable; fAttrChecker = attrChecker; if (schemaRoot != null) { Element root = schemaRoot; fSchemaAttrs = attrChecker.checkAttributes(root, true, this); // schemaAttrs == null means it's not an <xsd:schema> element // throw an exception, but we don't know the document systemId, // so we leave that to the caller. if (fSchemaAttrs == null) { throw new XMLSchemaException(null, null); } fAreLocalAttributesQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_AFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fAreLocalElementsQualified = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_EFORMDEFAULT]).intValue() == SchemaSymbols.FORM_QUALIFIED; fBlockDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_BLOCKDEFAULT]).shortValue(); fFinalDefault = ((XInt)fSchemaAttrs[XSAttributeChecker.ATTIDX_FINALDEFAULT]).shortValue(); fTargetNamespace = (String)fSchemaAttrs[XSAttributeChecker.ATTIDX_TARGETNAMESPACE]; if (fTargetNamespace != null) fTargetNamespace = symbolTable.addSymbol(fTargetNamespace); fNamespaceSupportRoot = new SchemaNamespaceSupport(fNamespaceSupport); //set namespace support fValidationContext.setNamespaceSupport(fNamespaceSupport); fValidationContext.setSymbolTable(symbolTable); // pass null as the schema document, so that the namespace // context is not popped. // don't return the attribute array yet! //attrChecker.returnAttrArray(schemaAttrs, null); } }