javax.xml.bind.annotation.XmlEnum Java Examples
The following examples show how to use
javax.xml.bind.annotation.XmlEnum.
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: EnumLeafInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #2
Source File: EnumLeafInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #3
Source File: EnumLeafInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #4
Source File: EnumLeafInfoImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #5
Source File: EnumLeafInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #6
Source File: EnumLeafInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #7
Source File: EnumLeafInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #8
Source File: EnumLeafInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * @param clazz * @param type * clazz and type should both point to the enum class * that this {@link EnumLeafInfo} represents. * Because of the type parameterization we have to take them separately. */ public EnumLeafInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C clazz, T type ) { super(builder,upstream); this.clazz = clazz; this.type = type; elementName = parseElementName(clazz); // compute the type name // TODO: I guess it must be allowed for enums to have @XmlElement typeName = parseTypeName(clazz); // locate the base type. // this can be done eagerly because there shouldn't be no cycle. XmlEnum xe = builder.reader.getClassAnnotation(XmlEnum.class, clazz, this); if(xe!=null) { T base = builder.reader.getClassValue(xe, "value"); baseType = builder.getTypeInfo(base,this); } else { baseType = builder.getTypeInfo(builder.nav.ref(String.class),this); } }
Example #9
Source File: XmlEnumQuick.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #10
Source File: XmlEnumQuick.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }
Example #11
Source File: XmlEnumQuick.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #12
Source File: XmlEnumQuick.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }
Example #13
Source File: XmlEnumQuick.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #14
Source File: XmlEnumQuick.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #15
Source File: XmlEnumQuick.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #16
Source File: XmlEnumQuick.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }
Example #17
Source File: XmlEnumQuick.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #18
Source File: XmlEnumQuick.java From hottub with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #19
Source File: XmlEnumQuick.java From hottub with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }
Example #20
Source File: XmlEnumQuick.java From hottub with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #21
Source File: XmlEnumQuick.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #22
Source File: XmlEnumQuick.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #23
Source File: XmlEnumQuick.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }
Example #24
Source File: XmlEnumQuick.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #25
Source File: XmlEnumQuick.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #26
Source File: XmlEnumQuick.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public Class<XmlEnum> annotationType() { return XmlEnum.class; }
Example #27
Source File: XmlEnumQuick.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }
Example #28
Source File: XmlEnumQuick.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public XmlEnumQuick(Locatable upstream, XmlEnum core) { super(upstream); this.core = core; }
Example #29
Source File: JaxbEnumExtension.java From raml-java-tools with Apache License 2.0 | 4 votes |
@Override public TypeSpec.Builder classCreated(EnumerationPluginContext enumerationPluginContext, TypeDeclaration ramlType, TypeSpec.Builder incoming, EventType eventType) { return incoming.addAnnotation(AnnotationSpec.builder(XmlEnum.class).build()); }
Example #30
Source File: XmlEnumQuick.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlEnumQuick(upstream, ((XmlEnum) core)); }