public class PropertyInfo extends Object
| Constructor and Description |
|---|
PropertyInfo() |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getConfig() |
String |
getConfigValue(String key)
This is a convenience method for returning a named configuration value.
|
String[] |
getConfigValueArray(String key)
This is a convenience method for returning a named configuration value that is expected to be
a list of array elements delimited by commas.
|
String[] |
getConfigValueArray(String key,
String delimiter)
This is a convenience method for returning a named configuration value that is expected to be
a list of array elements.
|
Boolean |
getConfigValueBoolean(String key,
Boolean dflt)
This is a convenience method for returning a named configuration value that is expected to be
a Boolean value.
|
Double |
getConfigValueDouble(String key,
Double dflt)
This is a convenience method for returning a named configuration value that is expected to be
a double floating point number.
|
Integer |
getConfigValueInt(String key,
Integer dflt)
This is a convenience method for returning a named configuration value that is expected to be
an integer.
|
String |
getDefault()
Returns the default value for this property.
|
String |
getDescription() |
String |
getGetter() |
String |
getId() |
String |
getName() |
PropertyType |
getPropertyType() |
Object |
getPropertyValue(Object instance)
Returns the property value for a specified object instance.
|
String |
getSetter() |
String |
getType() |
boolean |
isEditable()
Returns whether the property's value is editable.
|
boolean |
isSerializable()
Returns whether the property is serializable.
|
void |
setConfig(Properties config) |
void |
setConfig(String config) |
void |
setDefault(String dflt)
Sets the default value for this property.
|
void |
setDescription(String description) |
void |
setEditable(boolean editable)
Sets whether the object is editable.
|
void |
setGetter(String getter) |
void |
setId(String id) |
void |
setName(String name) |
void |
setPropertyValue(Object instance,
Object value)
Sets the property value for a specified object instance.
|
void |
setSerializable(boolean serializable)
Sets whether the object is serializable.
|
void |
setSetter(String setter) |
void |
setType(String type) |
public String getName()
public void setName(String name)
public String getId()
public void setId(String id)
public String getGetter()
public void setGetter(String getter)
public String getSetter()
public void setSetter(String setter)
public PropertyType getPropertyType()
public String getType()
public void setType(String type)
public String getDescription()
public void setDescription(String description)
public Properties getConfig()
public void setConfig(String config)
public void setConfig(Properties config)
public Object getPropertyValue(Object instance) throws Exception
instance - The object instance.Exception - Unspecified exception.public void setPropertyValue(Object instance, Object value) throws Exception
instance - The object instance.value - The value to assign.Exception - Unspecified exception.public boolean isSerializable()
public void setSerializable(boolean serializable)
serializable - True if the property is serializable.public boolean isEditable()
public void setEditable(boolean editable)
editable - True if the property is editable.public String getConfigValue(String key)
key - The configuration value's key.public Integer getConfigValueInt(String key, Integer dflt)
key - The configuration value's key.dflt - Default value.public Double getConfigValueDouble(String key, Double dflt)
key - The configuration value's key.dflt - Default value.public Boolean getConfigValueBoolean(String key, Boolean dflt)
key - The configuration value's key.dflt - Default value.public String[] getConfigValueArray(String key)
key - The configuration value's key.public String[] getConfigValueArray(String key, String delimiter)
key - The configuration value's key.delimiter - The delimiter separating array elements.public String getDefault()
public void setDefault(String dflt)
dflt - The default value.Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.