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,Property<?>> maps)
Constructor with full set of feature.
|
InMemoryPropertyStore(String fileName)
Constructor with configuration fileName.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty current property store.
|
<T> void |
createProperty(Property<T> value)
Create new property within store.
|
void |
deleteProperty(String name)
Delete current property.
|
boolean |
existProperty(String name)
Check existence of target property.
|
String |
getFileName()
Getter accessor for attribute 'fileName'.
|
Set<String> |
listPropertyNames()
List all property names.
|
Map<String,Property<?>> |
readAllProperties()
Retrieve all properties from store.
|
Property<?> |
readProperty(String name)
Read property value.
|
void |
setFileName(String fileName)
Setter accessor for attribute 'fileName'.
|
void |
setLocation(String locations)
Setter accessor for attribute 'locations'.
|
void |
setProperties(Map<String,Property<?>> properties)
Setter accessor for attribute 'properties'.
|
assertPropertyExist, assertPropertyNotExist, assertPropertyNotNull, createSchema, importProperties, importPropertiesFromXmlFile, isEmpty, readProperty, toJson, updateProperty, updatePropertypublic 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 boolean existProperty(String name)
name - target namepublic <T> void createProperty(Property<T> value)
value - target valuepublic Property<?> readProperty(String name)
name - target property namepublic void deleteProperty(String name)
name - target namepublic void clear()
public Map<String,Property<?>> readAllProperties()
public void setProperties(Map<String,Property<?>> 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–2017 FF4J. All rights reserved.