com.sun.xml.internal.bind.v2.model.core.EnumLeafInfo Java Examples
The following examples show how to use
com.sun.xml.internal.bind.v2.model.core.EnumLeafInfo.
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: XmlSchemaGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #2
Source File: XmlSchemaGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #3
Source File: XmlSchemaGenerator.java From hottub with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #4
Source File: XmlSchemaGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #5
Source File: XmlSchemaGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #6
Source File: XmlSchemaGenerator.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #7
Source File: XmlSchemaGenerator.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #8
Source File: XmlSchemaGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) { this.navigator = navigator; this.types = types; this.stringType = types.getTypeInfo(navigator.ref(String.class)); this.anyType = types.getAnyTypeInfo(); // populate the object for( ClassInfo<T,C> ci : types.beans().values() ) add(ci); for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() ) add(ei1); for( EnumLeafInfo<T,C> ei : types.enums().values() ) add(ei); for( ArrayInfo<T,C> a : types.arrays().values()) add(a); }
Example #9
Source File: XmlSchemaGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #10
Source File: XmlSchemaGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #11
Source File: XmlSchemaGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #12
Source File: XmlSchemaGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #13
Source File: XmlSchemaGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #14
Source File: XmlSchemaGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #15
Source File: XmlSchemaGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #16
Source File: XmlSchemaGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #17
Source File: XmlSchemaGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #18
Source File: XmlSchemaGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #19
Source File: XmlSchemaGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #20
Source File: XmlSchemaGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #21
Source File: XmlSchemaGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #22
Source File: XmlSchemaGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #23
Source File: XmlSchemaGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void add( EnumLeafInfo<T,C> envm ) { assert envm!=null; String nsUri = null; if(envm.isElement()) { // put element -> type reference nsUri = envm.getElementName().getNamespaceURI(); Namespace ns = getNamespace(nsUri); ns.enums.add(envm); ns.addDependencyTo(envm.getTypeName()); // schedule writing this global element add(envm.getElementName(),false,envm); } final QName typeName = envm.getTypeName(); if (typeName != null) { nsUri = typeName.getNamespaceURI(); } else { if(nsUri==null) return; // anonymous type } Namespace n = getNamespace(nsUri); n.enums.add(envm); // search for foreign namespace references n.addDependencyTo(envm.getBaseType().getTypeName()); }
Example #24
Source File: XmlSchemaGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * writes the schema definition for the specified type-safe enum in the given TypeHost */ private void writeEnum(EnumLeafInfo<T, C> e, SimpleTypeHost th) { SimpleType st = th.simpleType(); writeName(e,st); SimpleRestrictionModel base = st.restriction(); writeTypeRef(base, e.getBaseType(), "base"); for (EnumConstant c : e.getConstants()) { base.enumeration().value(c.getLexicalValue()); } st.commit(); }
Example #25
Source File: EnumConstantImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public EnumLeafInfo<T,C> getEnclosingClass() { return owner; }
Example #26
Source File: EnumConstantImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public EnumLeafInfo<T,C> getEnclosingClass() { return owner; }
Example #27
Source File: EnumConstantImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public EnumLeafInfo<T,C> getEnclosingClass() { return owner; }
Example #28
Source File: EnumConstantImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public EnumLeafInfo<T,C> getEnclosingClass() { return owner; }
Example #29
Source File: EnumConstantImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public EnumLeafInfo<T,C> getEnclosingClass() { return owner; }
Example #30
Source File: EnumConstantImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public EnumLeafInfo<T,C> getEnclosingClass() { return owner; }