com.sun.org.apache.xerces.internal.impl.xs.XSAttributeGroupDecl Java Examples
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.xs.XSAttributeGroupDecl.
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: XSDComplexTypeTraverser.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #2
Source File: XSDComplexTypeTraverser.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #3
Source File: XSDComplexTypeTraverser.java From JDKSourceCode1.8 with MIT License | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #4
Source File: XSDComplexTypeTraverser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #5
Source File: XSDComplexTypeTraverser.java From Bytecoder with Apache License 2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #6
Source File: XSDComplexTypeTraverser.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #7
Source File: XSDComplexTypeTraverser.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #8
Source File: XSDComplexTypeTraverser.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #9
Source File: XSDComplexTypeTraverser.java From hottub with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #10
Source File: XSDComplexTypeTraverser.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #11
Source File: XSDComplexTypeTraverser.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
private void contentRestore() { fAnnotations = (XSAnnotationImpl [])fGlobalStore[--fGlobalStorePos]; fXSSimpleType = (XSSimpleType)fGlobalStore[--fGlobalStorePos]; fParticle = (XSParticleDecl)fGlobalStore[--fGlobalStorePos]; fAttrGrp = (XSAttributeGroupDecl)fGlobalStore[--fGlobalStorePos]; fBaseType = (XSTypeDefinition)fGlobalStore[--fGlobalStorePos]; int i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fBlock = (short)(i >> 16); fContentType = (short)i; i = ((Integer)(fGlobalStore[--fGlobalStorePos])).intValue(); fDerivedBy = (short)(i >> 16); fFinal = (short)i; fTargetNamespace = (String)fGlobalStore[--fGlobalStorePos]; fName = (String)fGlobalStore[--fGlobalStorePos]; fIsAbstract = ((Boolean)fGlobalStore[--fGlobalStorePos]).booleanValue(); fComplexTypeDecl = (XSComplexTypeDecl)fGlobalStore[--fGlobalStorePos]; }
Example #12
Source File: XSDHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #13
Source File: XSDHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #14
Source File: XSDHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #15
Source File: XSDHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #16
Source File: XSDHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #17
Source File: XSDHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #18
Source File: XSDHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #19
Source File: XSDHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #20
Source File: XSDHandler.java From JDKSourceCode1.8 with MIT License | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #21
Source File: XSDHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
Example #22
Source File: XSDHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
private XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declKey) { return (XSAttributeGroupDecl)fGlobalAttrGrpDecls.get(declKey); }
Example #23
Source File: XSDHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declKey) { return (XSAttributeGroupDecl)fGlobalAttrGrpDecls.get(declKey); }
Example #24
Source File: XSDHandler.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void addGlobalComponent(XSObject component, XSDDescription desc) { final String namespace = component.getNamespace(); desc.setNamespace(namespace); final SchemaGrammar sg = getSchemaGrammar(desc); short componentType = component.getType(); final String name = component.getName(); switch (componentType) { case XSConstants.TYPE_DEFINITION : if (!((XSTypeDefinition) component).getAnonymous()) { if (sg.getGlobalTypeDecl(name) == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalTypeDecl(name, "") == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component, ""); } } break; case XSConstants.ATTRIBUTE_DECLARATION : if (((XSAttributeDecl) component).getScope() == XSAttributeDecl.SCOPE_GLOBAL) { if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component, ""); } } break; case XSConstants.ATTRIBUTE_GROUP : if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component, ""); } break; case XSConstants.ELEMENT_DECLARATION : if (((XSElementDecl) component).getScope() == XSElementDecl.SCOPE_GLOBAL) { sg.addGlobalElementDeclAll((XSElementDecl) component); if (sg.getGlobalElementDecl(name) == null) { sg.addGlobalElementDecl((XSElementDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalElementDecl(name, "") == null) { sg.addGlobalElementDecl((XSElementDecl) component, ""); } } break; case XSConstants.MODEL_GROUP_DEFINITION : if (sg.getGlobalGroupDecl(name) == null) { sg.addGlobalGroupDecl((XSGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalGroupDecl(name, "") == null) { sg.addGlobalGroupDecl((XSGroupDecl) component, ""); } break; case XSConstants.NOTATION_DECLARATION : if (sg.getGlobalNotationDecl(name) == null) { sg.addGlobalNotationDecl((XSNotationDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalNotationDecl(name, "") == null) { sg.addGlobalNotationDecl((XSNotationDecl) component, ""); } break; case XSConstants.IDENTITY_CONSTRAINT : case XSConstants.ATTRIBUTE_USE : default : break; } }
Example #25
Source File: XSDHandler.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declKey) { return (XSAttributeGroupDecl)fGlobalAttrGrpDecls.get(declKey); }
Example #26
Source File: XSDHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
private void addGlobalComponent(XSObject component, XSDDescription desc) { final String namespace = component.getNamespace(); desc.setNamespace(namespace); final SchemaGrammar sg = getSchemaGrammar(desc); short componentType = component.getType(); final String name = component.getName(); switch (componentType) { case XSConstants.TYPE_DEFINITION : if (!((XSTypeDefinition) component).getAnonymous()) { if (sg.getGlobalTypeDecl(name) == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalTypeDecl(name, "") == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component, ""); } } break; case XSConstants.ATTRIBUTE_DECLARATION : if (((XSAttributeDecl) component).getScope() == XSAttributeDecl.SCOPE_GLOBAL) { if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component, ""); } } break; case XSConstants.ATTRIBUTE_GROUP : if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component, ""); } break; case XSConstants.ELEMENT_DECLARATION : if (((XSElementDecl) component).getScope() == XSElementDecl.SCOPE_GLOBAL) { sg.addGlobalElementDeclAll((XSElementDecl) component); if (sg.getGlobalElementDecl(name) == null) { sg.addGlobalElementDecl((XSElementDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalElementDecl(name, "") == null) { sg.addGlobalElementDecl((XSElementDecl) component, ""); } } break; case XSConstants.MODEL_GROUP_DEFINITION : if (sg.getGlobalGroupDecl(name) == null) { sg.addGlobalGroupDecl((XSGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalGroupDecl(name, "") == null) { sg.addGlobalGroupDecl((XSGroupDecl) component, ""); } break; case XSConstants.NOTATION_DECLARATION : if (sg.getGlobalNotationDecl(name) == null) { sg.addGlobalNotationDecl((XSNotationDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalNotationDecl(name, "") == null) { sg.addGlobalNotationDecl((XSNotationDecl) component, ""); } break; case XSConstants.IDENTITY_CONSTRAINT : case XSConstants.ATTRIBUTE_USE : default : break; } }
Example #27
Source File: XSDHandler.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void addGlobalComponent(XSObject component, XSDDescription desc) { final String namespace = component.getNamespace(); desc.setNamespace(namespace); final SchemaGrammar sg = getSchemaGrammar(desc); short componentType = component.getType(); final String name = component.getName(); switch (componentType) { case XSConstants.TYPE_DEFINITION : if (!((XSTypeDefinition) component).getAnonymous()) { if (sg.getGlobalTypeDecl(name) == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalTypeDecl(name, "") == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component, ""); } } break; case XSConstants.ATTRIBUTE_DECLARATION : if (((XSAttributeDecl) component).getScope() == XSAttributeDecl.SCOPE_GLOBAL) { if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component, ""); } } break; case XSConstants.ATTRIBUTE_GROUP : if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component, ""); } break; case XSConstants.ELEMENT_DECLARATION : if (((XSElementDecl) component).getScope() == XSElementDecl.SCOPE_GLOBAL) { sg.addGlobalElementDeclAll((XSElementDecl) component); if (sg.getGlobalElementDecl(name) == null) { sg.addGlobalElementDecl((XSElementDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalElementDecl(name, "") == null) { sg.addGlobalElementDecl((XSElementDecl) component, ""); } } break; case XSConstants.MODEL_GROUP_DEFINITION : if (sg.getGlobalGroupDecl(name) == null) { sg.addGlobalGroupDecl((XSGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalGroupDecl(name, "") == null) { sg.addGlobalGroupDecl((XSGroupDecl) component, ""); } break; case XSConstants.NOTATION_DECLARATION : if (sg.getGlobalNotationDecl(name) == null) { sg.addGlobalNotationDecl((XSNotationDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalNotationDecl(name, "") == null) { sg.addGlobalNotationDecl((XSNotationDecl) component, ""); } break; case XSConstants.IDENTITY_CONSTRAINT : case XSConstants.ATTRIBUTE_USE : default : break; } }
Example #28
Source File: XSDHandler.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declKey) { return (XSAttributeGroupDecl)fGlobalAttrGrpDecls.get(declKey); }
Example #29
Source File: XSDHandler.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declKey) { return (XSAttributeGroupDecl)fGlobalAttrGrpDecls.get(declKey); }
Example #30
Source File: XSDHandler.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void addGlobalComponent(XSObject component, XSDDescription desc) { final String namespace = component.getNamespace(); desc.setNamespace(namespace); final SchemaGrammar sg = getSchemaGrammar(desc); short componentType = component.getType(); final String name = component.getName(); switch (componentType) { case XSConstants.TYPE_DEFINITION : if (!((XSTypeDefinition) component).getAnonymous()) { if (sg.getGlobalTypeDecl(name) == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalTypeDecl(name, "") == null) { sg.addGlobalTypeDecl((XSTypeDefinition) component, ""); } } break; case XSConstants.ATTRIBUTE_DECLARATION : if (((XSAttributeDecl) component).getScope() == XSAttributeDecl.SCOPE_GLOBAL) { if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component, ""); } } break; case XSConstants.ATTRIBUTE_GROUP : if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component, ""); } break; case XSConstants.ELEMENT_DECLARATION : if (((XSElementDecl) component).getScope() == XSElementDecl.SCOPE_GLOBAL) { sg.addGlobalElementDeclAll((XSElementDecl) component); if (sg.getGlobalElementDecl(name) == null) { sg.addGlobalElementDecl((XSElementDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalElementDecl(name, "") == null) { sg.addGlobalElementDecl((XSElementDecl) component, ""); } } break; case XSConstants.MODEL_GROUP_DEFINITION : if (sg.getGlobalGroupDecl(name) == null) { sg.addGlobalGroupDecl((XSGroupDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalGroupDecl(name, "") == null) { sg.addGlobalGroupDecl((XSGroupDecl) component, ""); } break; case XSConstants.NOTATION_DECLARATION : if (sg.getGlobalNotationDecl(name) == null) { sg.addGlobalNotationDecl((XSNotationDecl) component); } // store the declaration in the extended map, using an empty location if (sg.getGlobalNotationDecl(name, "") == null) { sg.addGlobalNotationDecl((XSNotationDecl) component, ""); } break; case XSConstants.IDENTITY_CONSTRAINT : case XSConstants.ATTRIBUTE_USE : default : break; } }