@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override public PropertyValue getPropertyValue(final PropertyDescriptor property) { final String configuredValue = properties.get(property); return new StandardPropertyValue(configuredValue == null ? property.getDefaultValue() : configuredValue); }
@Override public PropertyValue getPropertyValue(final String propertyName) { final PropertyDescriptor descriptor = component.getPropertyDescriptor(propertyName); if (descriptor == null) { return null; } final String setPropertyValue = getProperty(descriptor); final String propValue = (setPropertyValue == null) ? descriptor.getDefaultValue() : setPropertyValue; return new StandardPropertyValue(propValue); }
@Override public PropertyValue getPropertyValue(final String propertyName) { final PropertyDescriptor descriptor = component.getPropertyDescriptor(propertyName); if (descriptor == null) { return null; } final String setPropertyValue = getProperty(descriptor); final String propValue = (setPropertyValue == null) ? descriptor.getDefaultValue() : setPropertyValue; return new StandardPropertyValue(propValue); }
public static PropertyValue getInstance( final PropertyDescriptor descriptor, final String rawValue, final ControllerServiceLookup controllerServiceLookup, final VariableRegistry variableRegistry) { if (descriptor != null && descriptor.isExpressionLanguageSupported() && InterpreterEngine.isExpressionLanguage(rawValue)) { InterpreterEngine ie = InterpreterEngineFactory.get(); return new InterpretedPropertyValue(descriptor, rawValue, controllerServiceLookup, variableRegistry); } return new StandardPropertyValue(rawValue, controllerServiceLookup, variableRegistry); }