@Plugin(name="property", category="Core", printObject=true) public final class Property extends Object
Modifier and Type | Method and Description |
---|---|
static Property |
createProperty(String name,
String value)
Creates a Property.
|
String |
getName()
Returns the property name.
|
String |
getValue()
Returns the property value.
|
boolean |
isValueNeedsLookup()
Returns
true if the value contains a substitutable property that requires a lookup to be resolved. |
String |
toString() |
public String getName()
public 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") String name, @PluginValue(value="value") String value)
name
- The key.value
- The value.Copyright © 1999-2017 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.