|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.config.domain.Property
public class Property
Stores information of a property.
Constructor Summary | |
---|---|
protected |
Property(Property property) Copy-constructor. |
|
Property(PropertyLocation source, String name, Object value) Convenience constructor that translates the value to a String. |
|
Property(PropertyLocation source, String name, String value) Default constructor. |
|
Property(String source, String name, Object value) Convenience constructor that translates the value to a String. |
Method Summary | |
---|---|
int |
compareTo(Property o) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
String |
getName() Returns the name of the property. |
PropertyLocation |
getSource() Returns the optional source where the property value has been defined. |
String |
getValue() Returns the value of the property. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Property(PropertyLocation source, String name, String value) throws NullPointerException, IllegalArgumentException
source
- the optional source where the property value has been defined.
name
- the name of the property.
value
- the value of the property.
NullPointerException
- if
source
is
null
.
IllegalArgumentException
- if
name
is blank.
public Property(PropertyLocation source, String name, Object value) throws IllegalArgumentException
source
- the optional source where the property value has been defined.
name
- the name of the property.
value
- the value of the property.
IllegalArgumentException
- if
name
is blank.
public Property(String source, String name, Object value) throws IllegalArgumentException
source
- the optional source where the property value has been defined.
name
- the name of the property.
value
- the value of the property.
IllegalArgumentException
- if
name
is blank.
protected Property(Property property)
property
- the property to copy.
Method Detail |
---|
public final PropertyLocation getSource()
public final String getName()
public final String getValue()
null
.
public final int compareTo(Property o)
compareTo
in interface
Comparable<Property>
Comparable.compareTo(java.lang.Object)
public final int hashCode()
hashCode
in class
Object
public final boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |