public SType<I> with(AtrRef<?, ?, ?> attribute, Object value) { setAttributeValue((AtrRef<?, ?, Object>) attribute, value); return this; }
public SType<I> with(AtrRef<?, ?, ?> attribute, Object value) { setAttributeValue((AtrRef<?, ?, Object>) attribute, value); return this; }
public SType<I> with(String attributePath, Object value) { setAttributeValue(attributePath, value); return this; }
public AtrFormula set(Supplier<Object> supplier) { getType().setAttributeValue(SPackageBasic.ATR_FORMULA, null); return this; }
public AtrFormula set(Supplier<Object> supplier) { getTipo().setAttributeValue(SPackageBasic.ATR_FORMULA, null); return this; }
@SuppressWarnings("rawtypes") public <T extends SType<?>, V> void addAttribute(Class<? extends SType> typeClass, AtrRef<T, ?, V> atr, V attributeValue) { SType<?> targetType = getType(typeClass); SType<?> attribute = addAttributeInternal(targetType, atr); targetType.setAttributeValue(attribute, attributeValue); }
private static void readAttribute(ContextUnarchive ctx, SType<?> newType, SIPersistenceAttribute attribute) { if (!attribute.isLambdaValue()){ newType.setAttributeValue(attribute.getAttrType(), attribute.getAttrValue()); } else { newType.setAttributeValue(attribute.getAttrType(), null); } }
@SuppressWarnings("rawtypes") public <T extends SType<?>, V> void addAttribute(Class<? extends SType> typeClass, AtrRef<T, ?, V> atr, V attributeValue) { SType<?> targetType = getType(typeClass); SType<?> attribute = addAttributeInternal(targetType, atr); targetType.setAttributeValue(attribute, attributeValue); }