Refine search
@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonSubTypes({ @JsonSubTypes.Type(value = LineItemsTargetPredicate.class, name = "lineItems")}) public abstract class CartDiscountTargetPredicate { }
if (info.use() == JsonTypeInfo.Id.NONE) { return _constructNoTypeResolverBuilder(); idRes.init(baseType); b = b.init(info.use(), idRes); JsonTypeInfo.As inclusion = info.include(); if (inclusion == JsonTypeInfo.As.EXTERNAL_PROPERTY && (ann instanceof AnnotatedClass)) { inclusion = JsonTypeInfo.As.PROPERTY; b = b.typeProperty(info.property()); Class<?> defaultImpl = info.defaultImpl(); if (defaultImpl != JsonTypeInfo.None.class) { b = b.defaultImpl(defaultImpl);
@XmlElementRef(type = SnapshotRestful.class, name = "snapshots") @JsonSubTypes({@JsonSubTypes.Type(value = SnapshotRestful.class, name = "snapshots")}) @JsonTypeInfo(defaultImpl = SnapshotRestful.class, use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) @Override public Snapshot getSnapshots() { return snapshots; }
@JsonTypeInfo(use=Id.CLASS, defaultImpl=Object.class) public T getPayload() { return payload; }
JsonTypeInfo typeInfo = getAnnotation(JsonTypeInfo.class); if (typeInfo != null) { typeIdInclusion = typeInfo.include(); typeIdProperty = typeInfo.property(); if ("".equals(typeIdProperty)) { typeIdProperty = null; XmlElementRefs xmlElementRefs = getAnnotation(XmlElementRefs.class); if (subTypes != null && subTypes.value().length > 0) { for (final JsonSubTypes.Type element : subTypes.value()) { DecoratedTypeMirror choiceType = Annotations.mirrorOf(new Callable<Class<?>>() { @Override if ((choiceTypeId == null || "".equals(choiceTypeId)) && choiceTypeInfo != null && choiceTypeInfo.use() == JsonTypeInfo.Id.CLASS) { choiceTypeId = choiceElement.getQualifiedName().toString(); typeIdInclusion = choiceTypeInfo.include(); String choiceTypeId = elementRef.name();
if (jsonTypeInfo != null && jsonTypeInfo.include() == JsonTypeInfo.As.PROPERTY) { if (!containsProperty(properties, jsonTypeInfo.property())) { properties.add(new PropertyModel(jsonTypeInfo.property(), String.class, false, null, null, null)); for (JsonSubTypes.Type type : jsonSubTypes.value()) { addBeanToQueue(new SourceType<>(type.value(), sourceClass.type, "<subClass>"));
public JsonTypeInfo.As getTypeIdInclusion() { JsonTypeInfo.As inclusion = JsonTypeInfo.As.PROPERTY; JsonTypeInfo typeInfo = getAnnotation(JsonTypeInfo.class); if (typeInfo != null) { inclusion = typeInfo.include(); } return inclusion; }
public JsonTypeInfo.Id getTypeIdType() { JsonTypeInfo.Id typeIdType = JsonTypeInfo.Id.CLASS; JsonTypeInfo typeInfo = getAnnotation(JsonTypeInfo.class); if (typeInfo != null) { typeIdType = typeInfo.use(); } return typeIdType; }
@XmlElementRef(type = SnapshotRestful.class, name = "snapshots") @JsonSubTypes({@JsonSubTypes.Type(value = SnapshotRestful.class, name = "snapshots")}) @JsonTypeInfo(defaultImpl = SnapshotRestful.class, use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) @Override public Snapshot getSnapshots() { return snapshots; }
@SuppressWarnings("serial") @JsonTypeInfo(use = Id.CLASS, include = As.PROPERTY) public abstract class JsonRunVmParamsMixIn extends RunVmParams { @JsonIgnore public abstract Boolean getBootMenuEnabled(); }
JsonTypeInfo typeInfo = getAnnotation(JsonTypeInfo.class); if (typeInfo != null) { typeIdInclusion = typeInfo.include(); typeIdProperty = typeInfo.property(); if ("".equals(typeIdProperty)) { typeIdProperty = null; XmlElementRefs xmlElementRefs = getAnnotation(XmlElementRefs.class); if (subTypes != null && subTypes.value().length > 0) { for (final JsonSubTypes.Type element : subTypes.value()) { DecoratedTypeMirror choiceType = Annotations.mirrorOf(new Callable<Class<?>>() { @Override if ((choiceTypeId == null || "".equals(choiceTypeId)) && choiceTypeInfo != null && choiceTypeInfo.use() == JsonTypeInfo.Id.CLASS) { choiceTypeId = choiceElement.getQualifiedName().toString(); typeIdInclusion = choiceTypeInfo.include(); String choiceTypeId = elementRef.name();
public JsonTypeInfo.As getTypeIdInclusion() { JsonTypeInfo.As inclusion = JsonTypeInfo.As.PROPERTY; JsonTypeInfo typeInfo = getAnnotation(JsonTypeInfo.class); if (typeInfo != null) { inclusion = typeInfo.include(); } return inclusion; }
public JsonTypeInfo.Id getTypeIdType() { JsonTypeInfo.Id typeIdType = JsonTypeInfo.Id.CLASS; JsonTypeInfo typeInfo = getAnnotation(JsonTypeInfo.class); if (typeInfo != null) { typeIdType = typeInfo.use(); } return typeIdType; }
@Override @XmlElementRef(type = VendorRestful.class) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) @JsonSubTypes({@JsonSubTypes.Type(value = VendorRestful.class, name = "vendor")}) public Vendor getVendor() { return vendor; }
/** Calculated results for a facet, as part of {@link io.sphere.client.model.SearchResult}. */ @JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property="type") @JsonSubTypes({ @JsonSubTypes.Type(value = TermFacetResult.class, name = "terms"), @JsonSubTypes.Type(value = RangeFacetResultRaw.class, name = "range") }) public interface FacetResult { }
@JsonTypeInfo(use=Id.CLASS, defaultImpl=Object.class) public T getPayload() { return payload; }
if (info.use() == JsonTypeInfo.Id.NONE) { return _constructNoTypeResolverBuilder(); idRes.init(baseType); b = b.init(info.use(), idRes); JsonTypeInfo.As inclusion = info.include(); if (inclusion == JsonTypeInfo.As.EXTERNAL_PROPERTY && (ann instanceof AnnotatedClass)) { inclusion = JsonTypeInfo.As.PROPERTY; b = b.typeProperty(info.property()); Class<?> defaultImpl = info.defaultImpl(); if (defaultImpl != JsonTypeInfo.None.class) { b = b.defaultImpl(defaultImpl);