public class InMemoryPropertyStore extends AbstractPropertyStore
PropertyStore to keep properties in memory.| Constructor and Description |
|---|
InMemoryPropertyStore()
Default Constructor
|
InMemoryPropertyStore(InputStream xmlIN)
Constructor with inputstream fileName.
|
InMemoryPropertyStore(Map<String,AbstractProperty<?>> maps)
Constructor with full set of feature.
|
InMemoryPropertyStore(String fileName)
Constructor with configuration fileName.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
create(AbstractProperty<T> value)
Create new property within store.
|
void |
delete(String name)
Delete current property.
|
boolean |
exist(String name)
Check existence of target property.
|
String |
getFileName()
Getter accessor for attribute 'fileName'.
|
AbstractProperty<?> |
read(String name)
Read property value.
|
Map<String,AbstractProperty<?>> |
readAllProperties()
Retrieve all properties from store.
|
void |
setFileName(String fileName)
Setter accessor for attribute 'fileName'.
|
void |
setLocation(String locations)
Setter accessor for attribute 'locations'.
|
void |
setProperties(Map<String,AbstractProperty<?>> properties)
Setter accessor for attribute 'properties'.
|
<T> void |
update(AbstractProperty<T> newValue)
Update existing property.
|
void |
update(String name,
String newValue)
Update existing property.
|
importPropertiesFromXmlFile, toJsonpublic InMemoryPropertyStore()
public InMemoryPropertyStore(String fileName)
fileName - fileName present in classPath or on fileSystem.public InMemoryPropertyStore(InputStream xmlIN)
fileName - fileName present in classPath or on fileSystem.public InMemoryPropertyStore(Map<String,AbstractProperty<?>> maps)
maps - public boolean exist(String name)
name - target namepublic <T> void create(AbstractProperty<T> value)
value - target valuepublic AbstractProperty<?> read(String name)
name - target property namepublic <T> void update(AbstractProperty<T> newValue)
public void update(String name, String newValue)
name - target namenewValue - new valuepublic void delete(String name)
name - target namepublic Map<String,AbstractProperty<?>> readAllProperties()
public void setProperties(Map<String,AbstractProperty<?>> properties)
properties - new value for 'properties 'public void setLocation(String locations)
locations - new value for 'locations 'public String getFileName()
public void setFileName(String fileName)
fileName - new value for 'fileName 'Copyright © 2013–2015 FF4J. All rights reserved.