Java Code Examples for com.sun.xml.internal.bind.v2.schemagen.xmlschema.SimpleTypeHost#simpleType()
The following examples show how to use
com.sun.xml.internal.bind.v2.schemagen.xmlschema.SimpleTypeHost#simpleType() .
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 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 2
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 3
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 4
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 5
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 6
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 7
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 8
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(); }