public class FakeProxyFeature extends ProxyFeature
ProxyProperty
s and ProxyFeature
s. These should be passed to a
FakeParaViewWebClient
so that, when queried, it can populate a
response based on each added fake property.ProxyFeature.ColorByLocation, ProxyFeature.ColorByMode
ProxyProperty.PropertyType
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.String> |
allowedValues |
java.lang.String |
initialValue |
java.lang.String |
propertyName |
index, name
Constructor and Description |
---|
FakeProxyFeature(java.lang.String name,
int index) |
FakeProxyFeature(java.lang.String name,
int index,
ProxyProperty.PropertyType type) |
FakeProxyFeature(java.lang.String name,
int index,
ProxyProperty.PropertyType type,
ProxyFeature.ColorByMode mode,
ProxyFeature.ColorByLocation location) |
Modifier and Type | Method and Description |
---|---|
ProxyProperty.PropertyType |
getPropertyType()
Exposes the property type for testing purposes.
|
void |
setAllowedValues(java.lang.String... values)
Sets the allowed values.
|
getAllowedValues, getValue, getValues, setConnection, setValue, setValues, valueAllowed
public final java.util.List<java.lang.String> allowedValues
public java.lang.String initialValue
public java.lang.String propertyName
public FakeProxyFeature(java.lang.String name, int index)
public FakeProxyFeature(java.lang.String name, int index, ProxyProperty.PropertyType type)
public FakeProxyFeature(java.lang.String name, int index, ProxyProperty.PropertyType type, ProxyFeature.ColorByMode mode, ProxyFeature.ColorByLocation location)
public void setAllowedValues(java.lang.String... values)
FakeParaViewWebClient
when generating a response to a query.values
- The allowed values.public ProxyProperty.PropertyType getPropertyType()