public final class ConfigurationProperty extends Object implements OriginProvider, Comparable<ConfigurationProperty>
ConfigurationPropertySource
consisting of a name
, value
and optional
origin
.Constructor and Description |
---|
ConfigurationProperty(ConfigurationPropertyName name,
Object value,
Origin origin) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConfigurationProperty other) |
boolean |
equals(Object obj) |
ConfigurationPropertyName |
getName()
Return the name of the configuration property.
|
Origin |
getOrigin()
Return the source origin or
null if the origin is not known. |
ConfigurationPropertySource |
getSource()
Return the
ConfigurationPropertySource that provided the property or
null if the source is unknown. |
Object |
getValue()
Return the value of the configuration property.
|
int |
hashCode() |
String |
toString() |
public ConfigurationProperty(ConfigurationPropertyName name, Object value, Origin origin)
public ConfigurationPropertySource getSource()
ConfigurationPropertySource
that provided the property or
null
if the source is unknown.public ConfigurationPropertyName getName()
public Object getValue()
public Origin getOrigin()
OriginProvider
null
if the origin is not known.getOrigin
in interface OriginProvider
null
public int compareTo(ConfigurationProperty other)
compareTo
in interface Comparable<ConfigurationProperty>