public class MapTestPropertyHolder extends Object implements MutableTestPropertyHolder
Modifier and Type | Class and Description |
---|---|
class |
MapTestPropertyHolder.InternalTestProperty
Internal property class
|
Constructor and Description |
---|
MapTestPropertyHolder(ModelItem modelItem) |
Modifier and Type | Method and Description |
---|---|
int |
addPropertiesFromFile(String propFile) |
TestProperty |
addProperty(String name) |
void |
addTestPropertyListener(TestPropertyListener listener) |
ModelItem |
getModelItem() |
Map<String,TestProperty> |
getProperties() |
String |
getPropertiesLabel() |
TestProperty |
getProperty(String name) |
TestProperty |
getPropertyAt(int index) |
int |
getPropertyCount() |
List<TestProperty> |
getPropertyList() |
String[] |
getPropertyNames() |
String |
getPropertyValue(String name) |
boolean |
hasProperty(String name) |
void |
moveProperty(String propertyName,
int targetIndex) |
TestProperty |
removeProperty(String propertyName) |
void |
removeTestPropertyListener(TestPropertyListener listener) |
boolean |
renameProperty(String name,
String newName) |
void |
saveTo(Properties props) |
void |
setPropertiesLabel(String propertiesLabel) |
void |
setPropertyValue(String name,
String value) |
public ModelItem modelItem
public MapTestPropertyHolder(ModelItem modelItem)
public TestProperty addProperty(String name)
addProperty
in interface MutableTestPropertyHolder
public void addTestPropertyListener(TestPropertyListener listener)
addTestPropertyListener
in interface TestPropertyHolder
public TestProperty getProperty(String name)
getProperty
in interface TestPropertyHolder
public String[] getPropertyNames()
getPropertyNames
in interface TestPropertyHolder
public List<TestProperty> getPropertyList()
getPropertyList
in interface TestPropertyHolder
public String getPropertyValue(String name)
getPropertyValue
in interface TestPropertyHolder
public TestProperty removeProperty(String propertyName)
removeProperty
in interface MutableTestPropertyHolder
public void removeTestPropertyListener(TestPropertyListener listener)
removeTestPropertyListener
in interface TestPropertyHolder
public void setPropertyValue(String name, String value)
setPropertyValue
in interface TestPropertyHolder
public boolean renameProperty(String name, String newName)
renameProperty
in interface MutableTestPropertyHolder
public void saveTo(Properties props)
public Map<String,TestProperty> getProperties()
getProperties
in interface TestPropertyHolder
public boolean hasProperty(String name)
hasProperty
in interface TestPropertyHolder
public int addPropertiesFromFile(String propFile)
public ModelItem getModelItem()
getModelItem
in interface TestPropertyHolder
public void moveProperty(String propertyName, int targetIndex)
moveProperty
in interface MutableTestPropertyHolder
public TestProperty getPropertyAt(int index)
getPropertyAt
in interface TestPropertyHolder
public int getPropertyCount()
getPropertyCount
in interface TestPropertyHolder
public void setPropertiesLabel(String propertiesLabel)
public String getPropertiesLabel()
getPropertiesLabel
in interface TestPropertyHolder
Copyright © 2019. All Rights Reserved.