public ObjectVariableBuilderImpl(Object value) { variableValue = new ObjectValueImpl(value); }
protected void updateTypedValue(ObjectValue value, String serializedStringValue) { String objectTypeName = getObjectTypeName(value, null); ObjectValueImpl objectValue =(ObjectValueImpl) value; objectValue.setObjectTypeName(objectTypeName); objectValue.setSerializedValue(serializedStringValue); objectValue.setSerializationDataFormat(serializationDataFormat); }
public Class<?> getObjectType() { Object value = getValue(); if(value == null) { return null; } else { return value.getClass(); } }
public SerializedObjectValueBuilder serializationDataFormat(String dataFormatName) { variableValue.setSerializationDataFormat(dataFormatName); return this; }
public SerializedObjectValueBuilder serializedValue(String value) { variableValue.setSerializedValue(value); return this; }
public SerializedObjectValueBuilder objectTypeName(String typeName) { variableValue.setObjectTypeName(typeName); return this; }
@Override public TypedValueBuilder<ObjectValue> setTransient(boolean isTransient) { variableValue.setTransient(isTransient); return this; }
public ObjectValueBuilder serializationDataFormat(String dataFormatName) { variableValue.setSerializationDataFormat(dataFormatName); return this; }
public SerializedObjectValueBuilder serializedValue(String value) { variableValue.setSerializedValue(value); return this; }
public SerializedObjectValueBuilder objectTypeName(String typeName) { variableValue.setObjectTypeName(typeName); return this; }
@Override public TypedValueBuilder<ObjectValue> setTransient(boolean isTransient) { variableValue.setTransient(isTransient); return this; }
protected void updateTypedValue(ObjectValue value, String serializedStringValue) { String objectTypeName = getObjectTypeName(value, null); ObjectValueImpl objectValue =(ObjectValueImpl) value; objectValue.setObjectTypeName(objectTypeName); objectValue.setSerializedValue(serializedStringValue); objectValue.setSerializationDataFormat(serializationDataFormat); }
public SerializedObjectValueBuilderImpl() { variableValue = new ObjectValueImpl(null, null, null, null, false); }
public SerializedObjectValueBuilder serializationDataFormat(String dataFormatName) { variableValue.setSerializationDataFormat(dataFormatName); return this; }
@SuppressWarnings("unchecked") public <T> T getValue(Class<T> type) { Object value = getValue(); if(type.isAssignableFrom(value.getClass())) { return (T) value; } else { throw new IllegalArgumentException("Value '"+value+"' is not of type '"+type+"'."); } }
@Override public TypedValueBuilder<ObjectValue> setTransient(boolean isTransient) { variableValue.setTransient(isTransient); return this; }
protected void updateTypedValue(ObjectValue value, String serializedStringValue) { String objectTypeName = getObjectTypeName(value, null); ObjectValueImpl objectValue =(ObjectValueImpl) value; objectValue.setObjectTypeName(objectTypeName); objectValue.setSerializedValue(serializedStringValue); objectValue.setSerializationDataFormat(serializationDataFormat); }
protected ObjectValue createSerializedValue(String serializedStringValue, ValueFields valueFields) { String objectTypeName = readObjectNameFromFields(valueFields); return new ObjectValueImpl(null, serializedStringValue, serializationDataFormat, objectTypeName, false); }
public ObjectValueBuilder serializationDataFormat(String dataFormatName) { variableValue.setSerializationDataFormat(dataFormatName); return this; }
public Class<?> getObjectType() { Object value = getValue(); if(value == null) { return null; } else { return value.getClass(); } }