@Plugin(name="property", category="Core", printObject=true) public final class Property extends Object
Modifier and Type | Method and Description |
---|---|
static Property |
createProperty(String key,
String value)
Create a Property.
|
String |
getName()
Returns the property name.
|
String |
getValue()
Returns the property value.
|
String |
toString() |
public String getName()
public String getValue()
@PluginFactory public static Property createProperty(@PluginAttribute(value="name") String key, @PluginValue(value="value") String value)
key
- The key.value
- The value.Copyright © 1999-2015 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.