/** * The base type for this simple type, or null if none exists. * * @return The base type for this simple type. */ public JsonType getBaseType() { Value value = getValue(); if (value != null) { return value.getJsonType(); } return null; }
/** * Whether this QName accessor references a QName enum type. * * @return Whether this QName accessor references a QName enum type. */ public boolean isReferencesQNameEnum() { return getAnnotation(XmlQNameEnumRef.class) != null; }
/** * The map of constant declarations (simple names) to their enum constant values. * * @return The map of constant declarations to their enum constant values. */ public List<EnumValue> getEnumValues() { if (this.enumValues == null) { this.enumValues = loadEnumValues(); } return this.enumValues; }
/** * The bare (i.e. unwrapped) type of the accessor. * * @return The bare type of the accessor. */ public DecoratedTypeMirror getBareAccessorType() { return isCollectionType() ? getCollectionItemType() : getAccessorType(); }
@Override public TypeMirror getClientConvertibleType() { return getAccessorType(); }
@Override public Set<Facet> getFacets() { return this.member.getFacets(); }
public EnumTypeDefinition(TypeElement delegate, EnunciateJackson1Context context) { super(delegate, context); this.baseType = loadBaseType(delegate); }
@Override public Set<Facet> getFacets() { return this.typeDefinition.getFacets(); }
@Override public boolean isAbstract() { return this.typeDefinition.isAbstract(); }
@Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { return this.typeDefinition.getAnnotation(annotationType); }
@Override public Map<String, AnnotationMirror> getAnnotations() { return this.typeDefinition.getAnnotations(); }
@Override public String getName() { return this.member.getName(); }
@Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { return this.member.getAnnotation(annotationType); }
@Override public boolean isRequired() { return member.isRequired(); }
/** * The bare (i.e. unwrapped) type of the accessor. * * @return The bare type of the accessor. */ public DecoratedTypeMirror getBareAccessorType() { return isCollectionType() ? getCollectionItemType() : getAccessorType(); }
/** * The base type for this simple type, or null if none exists. * * @return The base type for this simple type. */ public JsonType getBaseType() { Value value = getValue(); if (value != null) { return value.getJsonType(); } return null; }
/** * Whether this QName accessor references a QName enum type. * * @return Whether this QName accessor references a QName enum type. */ public boolean isReferencesQNameEnum() { return getAnnotation(XmlQNameEnumRef.class) != null; }
/** * The map of constant declarations (simple names) to their enum constant values. * * @return The map of constant declarations to their enum constant values. */ public List<EnumValue> getEnumValues() { if (this.enumValues == null) { this.enumValues = loadEnumValues(); } return this.enumValues; }
@Override public Set<Facet> getFacets() { return this.member.getFacets(); }
public EnumTypeDefinition(TypeElement delegate, EnunciateJackson1Context context) { super(delegate, context); this.baseType = loadBaseType(delegate); }