public class PropertiesImpl extends AbstractExtensionData implements Properties
Constructor and Description |
---|
PropertiesImpl()
Constructor.
|
PropertiesImpl(Collection<PropertyData<?>> properties)
Constructor.
|
PropertiesImpl(Properties properties)
Shallow copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addProperties(Collection<PropertyData<?>> properties) |
void |
addProperty(PropertyData<?> property)
Adds a property.
|
Map<String,PropertyData<?>> |
getProperties()
Returns a map of properties (property id => property).
|
List<PropertyData<?>> |
getPropertyList()
Returns the list of properties.
|
void |
removeProperty(String id)
Removes a property.
|
void |
replaceProperty(PropertyData<?> property)
Replaces a property.
|
String |
toString() |
getExtensions, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, setExtensions
public PropertiesImpl()
public PropertiesImpl(Collection<PropertyData<?>> properties)
properties
- initial collection of propertiespublic PropertiesImpl(Properties properties)
public Map<String,PropertyData<?>> getProperties()
Properties
getProperties
in interface Properties
public List<PropertyData<?>> getPropertyList()
Properties
getPropertyList
in interface Properties
protected void addProperties(Collection<PropertyData<?>> properties)
public void addProperty(PropertyData<?> property)
property
- the propertypublic void replaceProperty(PropertyData<?> property)
property
- the propertypublic void removeProperty(String id)
id
- the property idpublic String toString()
toString
in class AbstractExtensionData
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.