@Plugin(name="property", category="Core", printObject=true) public final class Property extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
private java.lang.String |
name |
private java.lang.String |
value |
private boolean |
valueNeedsLookup |
Modifier | Constructor and Description |
---|---|
private |
Property(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
static Property |
createProperty(java.lang.String name,
java.lang.String value)
Creates a Property.
|
java.lang.String |
getName()
Returns the property name.
|
java.lang.String |
getValue()
Returns the property value.
|
boolean |
isValueNeedsLookup()
Returns
true if the value contains a substitutable property that requires a lookup to be resolved. |
java.lang.String |
toString() |
private static final Logger LOGGER
private final java.lang.String name
private final java.lang.String value
private final boolean valueNeedsLookup
public java.lang.String getName()
public java.lang.String getValue()
public boolean isValueNeedsLookup()
true
if the value contains a substitutable property that requires a lookup to be resolved.true
if the value contains "${"}, {@code false} otherwise@PluginFactory public static Property createProperty(@PluginAttribute(value="name") java.lang.String name, @PluginValue(value="value") java.lang.String value)
name
- The key.value
- The value.public java.lang.String toString()
toString
in class java.lang.Object